- Isometric canvas renderer (depth-sorted, FOV/fog, additive lighting) - 3 classes x 20 skills, 4 acts x 4 floors + boss lairs, torment I-X - Diablo-style loot: rarities, affix tiers, 14 legendaries, vendor, stash - Rogue camp with 6 NPCs: Charsi/Akara/Kashya/Cain/Gheed/storage - NPC quest chain (accept -> hunt -> turn in) with rewards & gating - Procedural WebAudio SFX + generative music, EN/VI localization - Saves, settings, waypoints, hardcore mode, PWA manifest - 93-assertion headless suite + browser E2E via CDP
685 lines
26 KiB
CSS
685 lines
26 KiB
CSS
/* ============================================================
|
|
Diablo2D — style.css : gothic ARPG theme
|
|
============================================================ */
|
|
|
|
:root {
|
|
--bg: #070605;
|
|
--panel: rgba(24, 18, 12, 0.96);
|
|
--panel-soft: rgba(32, 24, 16, 0.92);
|
|
--border: #5a4426;
|
|
--border-hi: #8a6c3c;
|
|
--gold: #c8a35a;
|
|
--gold-hi: #efd28e;
|
|
--text: #d8cbb3;
|
|
--text-dim: #93876f;
|
|
--red: #a32c22;
|
|
--red-hi: #d84b37;
|
|
--blue-orb: #2456a8;
|
|
|
|
--rarity-common: #c8c8c8;
|
|
--rarity-magic: #7c9cf5;
|
|
--rarity-rare: #f2e34c;
|
|
--rarity-legendary: #ef8f34;
|
|
--rarity-quest: #4ade80;
|
|
|
|
--slot-bg: rgba(10, 8, 6, 0.85);
|
|
--font-serif: Georgia, 'Times New Roman', serif;
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
html, body {
|
|
width: 100%; height: 100%;
|
|
overflow: hidden;
|
|
background: var(--bg);
|
|
font-family: var(--font-serif);
|
|
color: var(--text);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
#app { position: fixed; inset: 0; }
|
|
|
|
canvas#game-canvas {
|
|
position: absolute; inset: 0;
|
|
width: 100%; height: 100%;
|
|
display: block;
|
|
cursor: crosshair;
|
|
image-rendering: auto;
|
|
}
|
|
|
|
.hidden { display: none !important; }
|
|
|
|
/* ============ shared gothic chrome ============ */
|
|
|
|
.panel-gothic {
|
|
background: linear-gradient(160deg, rgba(36,27,18,.97), rgba(20,14,9,.97));
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
box-shadow: 0 0 0 1px rgba(0,0,0,.8), 0 12px 40px rgba(0,0,0,.75),
|
|
inset 0 0 60px rgba(0,0,0,.45);
|
|
}
|
|
|
|
.panel-title {
|
|
font-size: 15px; letter-spacing: 3px; text-transform: uppercase;
|
|
color: var(--gold); text-align: center;
|
|
padding: 10px 0 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
text-shadow: 0 0 12px rgba(200,163,90,.35);
|
|
user-select: none;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
font-family: var(--font-serif);
|
|
font-size: 15px; letter-spacing: 1px;
|
|
color: var(--text);
|
|
background: linear-gradient(180deg, #33261a, #201710);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 8px 22px;
|
|
cursor: pointer;
|
|
transition: all .12s ease;
|
|
text-shadow: 0 1px 2px #000;
|
|
user-select: none;
|
|
}
|
|
.btn:hover { color: var(--gold-hi); border-color: var(--border-hi); box-shadow: 0 0 14px rgba(200,163,90,.25); }
|
|
.btn:active { transform: translateY(1px); }
|
|
.btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
|
|
.btn-primary { color: var(--gold-hi); border-color: var(--gold); background: linear-gradient(180deg, #4a3418, #2a1c0e); }
|
|
.btn-danger { color: var(--red-hi); }
|
|
.btn-danger:hover { box-shadow: 0 0 14px rgba(216,75,55,.35); }
|
|
|
|
::-webkit-scrollbar { width: 10px; height: 10px; }
|
|
::-webkit-scrollbar-track { background: #14100b; }
|
|
::-webkit-scrollbar-thumb { background: #3d2f1e; border-radius: 5px; border: 1px solid #000; }
|
|
::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }
|
|
|
|
/* ============ screens ============ */
|
|
|
|
.screen {
|
|
position: absolute; inset: 0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
z-index: 50;
|
|
background:
|
|
radial-gradient(ellipse at 50% 30%, rgba(120,40,20,.14), transparent 55%),
|
|
radial-gradient(ellipse at center, rgba(10,7,5,.55), #050403 78%);
|
|
}
|
|
|
|
.game-logo {
|
|
font-size: clamp(48px, 9vw, 110px);
|
|
letter-spacing: 12px;
|
|
color: #b83a26;
|
|
text-shadow: 0 0 30px rgba(190,60,30,.55), 0 2px 0 #300b06, 0 6px 24px #000;
|
|
font-weight: bold;
|
|
}
|
|
.game-logo span { color: var(--gold); font-size: .45em; vertical-align: super; letter-spacing: 4px; }
|
|
|
|
.loading-inner { text-align: center; }
|
|
.loading-sub {
|
|
margin-top: 6px;
|
|
letter-spacing: 6px; text-transform: uppercase;
|
|
color: var(--text-dim); font-size: 14px;
|
|
}
|
|
.loading-bar {
|
|
width: 320px; height: 6px; margin: 34px auto 12px;
|
|
background: #171008; border: 1px solid var(--border); border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
#loading-progress {
|
|
height: 100%; width: 0%;
|
|
background: linear-gradient(90deg, var(--red), #e0763a);
|
|
box-shadow: 0 0 12px rgba(224,118,58,.8);
|
|
transition: width .2s ease;
|
|
}
|
|
#loading-tip { color: var(--text-dim); font-style: italic; font-size: 13px; min-height: 18px; }
|
|
|
|
/* title menu */
|
|
.title-menu { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 42px; }
|
|
.title-menu .btn { min-width: 280px; font-size: 17px; letter-spacing: 2px; padding: 11px 0; }
|
|
.title-savecard {
|
|
margin-top: 26px; padding: 10px 26px; text-align: center;
|
|
color: var(--text-dim); font-size: 13px;
|
|
border-top: 1px solid rgba(90,68,38,.35);
|
|
}
|
|
.title-savecard b { color: var(--gold); letter-spacing: 1px; }
|
|
.title-footer {
|
|
position: absolute; bottom: 18px; width: 100%;
|
|
text-align: center; color: #565043; font-size: 12px; letter-spacing: 1px;
|
|
}
|
|
|
|
/* class select */
|
|
.class-grid { display: flex; gap: 26px; padding: 30px; }
|
|
.class-card {
|
|
width: 250px; padding: 18px 16px 20px; cursor: pointer;
|
|
background: linear-gradient(170deg, rgba(38,28,19,.95), rgba(17,12,8,.95));
|
|
border: 1px solid var(--border); border-radius: 8px;
|
|
text-align: center;
|
|
transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
|
|
}
|
|
.class-card:hover { transform: translateY(-6px); border-color: var(--border-hi); box-shadow: 0 14px 34px rgba(0,0,0,.6); }
|
|
.class-card.selected { border-color: var(--gold); box-shadow: 0 0 26px rgba(200,163,90,.35); }
|
|
.class-card canvas { width: 150px; height: 150px; margin-bottom: 8px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.7)); }
|
|
.class-card h3 { color: var(--gold-hi); letter-spacing: 2px; font-size: 18px; margin-bottom: 8px; }
|
|
.class-card p { font-size: 13px; line-height: 1.5; color: var(--text-dim); min-height: 78px; }
|
|
.class-card .class-stats { margin-top: 10px; font-size: 12px; color: var(--text); }
|
|
.class-card .class-stats span { display: inline-block; margin: 2px 6px; opacity: .85; }
|
|
|
|
.screen-center-col { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 900px; padding: 20px; }
|
|
|
|
/* settings rows */
|
|
.settings-panel { width: min(560px, 92vw); padding-bottom: 18px; }
|
|
.settings-body { padding: 18px 26px 6px; display: flex; flex-direction: column; gap: 13px; }
|
|
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 15px; }
|
|
.setting-row label { color: var(--text); letter-spacing: .5px; }
|
|
input[type="range"] {
|
|
-webkit-appearance: none; appearance: none;
|
|
width: 210px; height: 6px; border-radius: 3px;
|
|
background: linear-gradient(90deg, #4a3418, #1c140c);
|
|
outline: none; border: 1px solid var(--border); cursor: pointer;
|
|
}
|
|
input[type="range"]::-webkit-slider-thumb {
|
|
-webkit-appearance: none; appearance: none;
|
|
width: 16px; height: 16px; border-radius: 50%;
|
|
background: radial-gradient(circle at 35% 35%, var(--gold-hi), #7a5a24);
|
|
border: 1px solid #000;
|
|
box-shadow: 0 0 8px rgba(239,210,142,.5);
|
|
}
|
|
.toggle-switch {
|
|
position: relative; width: 52px; height: 24px;
|
|
background: #171008; border: 1px solid var(--border); border-radius: 12px;
|
|
cursor: pointer; transition: background .15s;
|
|
}
|
|
.toggle-switch::after {
|
|
content: ''; position: absolute; top: 2px; left: 2px;
|
|
width: 18px; height: 18px; border-radius: 50%;
|
|
background: radial-gradient(circle at 35% 35%, #caa, #63302a);
|
|
transition: left .15s ease, background .15s;
|
|
}
|
|
.toggle-switch.on { background: #3d2a12; }
|
|
.toggle-switch.on::after { left: 30px; background: radial-gradient(circle at 35% 35%, var(--gold-hi), #7a5a24); box-shadow: 0 0 10px rgba(239,210,142,.6); }
|
|
select.gothiselect {
|
|
font-family: var(--font-serif); font-size: 14px;
|
|
background: #201710; color: var(--text);
|
|
border: 1px solid var(--border); border-radius: 4px; padding: 5px 10px;
|
|
}
|
|
textarea.savecode {
|
|
width: 100%; height: 74px; resize: none;
|
|
background: #120d08; color: var(--text-dim);
|
|
border: 1px solid var(--border); border-radius: 4px;
|
|
font-family: monospace; font-size: 10px; padding: 6px;
|
|
}
|
|
|
|
/* help screen */
|
|
.help-panel { width: min(720px, 94vw); padding-bottom: 16px; }
|
|
.help-body { padding: 16px 30px 6px; font-size: 14px; line-height: 1.75; color: var(--text); }
|
|
.help-body h4 { color: var(--gold); margin: 10px 0 4px; letter-spacing: 1px; }
|
|
.help-keys { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin-top: 6px; }
|
|
.key-cap {
|
|
display: inline-block; min-width: 26px; text-align: center;
|
|
background: #241a10; border: 1px solid var(--border-hi); border-bottom-width: 3px;
|
|
border-radius: 4px; padding: 1px 7px; font-size: 12px; color: var(--gold-hi);
|
|
}
|
|
|
|
/* death & victory */
|
|
.death-title {
|
|
font-size: clamp(40px, 7vw, 84px); letter-spacing: 14px;
|
|
color: var(--red-hi);
|
|
text-shadow: 0 0 40px rgba(180,30,20,.7), 0 3px 0 #1a0503;
|
|
animation: deathPulse 2.6s ease-in-out infinite;
|
|
}
|
|
@keyframes deathPulse { 50% { text-shadow: 0 0 64px rgba(220,50,30,.9), 0 3px 0 #1a0503; } }
|
|
.victory-title {
|
|
font-size: clamp(30px, 5vw, 60px); letter-spacing: 8px;
|
|
color: var(--gold-hi);
|
|
text-shadow: 0 0 44px rgba(239,210,142,.65), 0 3px 0 #241503;
|
|
}
|
|
.screen-subtitle { margin-top: 14px; color: var(--text-dim); font-style: italic; font-size: 16px; text-align: center; max-width: 520px; }
|
|
.victory-stats { margin-top: 22px; font-size: 14px; color: var(--text); text-align: center; line-height: 1.9; }
|
|
.victory-stats b { color: var(--gold); }
|
|
|
|
/* ============ pause overlay ============ */
|
|
#pause-overlay {
|
|
position: absolute; inset: 0; z-index: 40;
|
|
background: rgba(4, 3, 2, .72);
|
|
backdrop-filter: blur(2px) brightness(.7);
|
|
display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.pause-menu { display: flex; flex-direction: column; gap: 10px; padding: 26px 34px; min-width: 320px; }
|
|
.pause-menu h2 { text-align: center; color: var(--gold); letter-spacing: 4px; margin-bottom: 10px; font-weight: normal; }
|
|
.pause-menu .btn { width: 100%; }
|
|
|
|
/* ============ HUD ============ */
|
|
|
|
#hud { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
|
|
#hud > * { pointer-events: auto; }
|
|
|
|
.hud-corner {
|
|
position: absolute; top: 12px; left: 12px;
|
|
max-width: 330px; font-size: 13px; line-height: 1.5;
|
|
color: var(--text); text-shadow: 0 1px 3px #000, 0 0 8px #000;
|
|
pointer-events: none !important;
|
|
}
|
|
#quest-tracker .quest-line { margin-bottom: 6px; }
|
|
#quest-tracker .quest-done { color: #7fc97f; text-decoration: line-through; opacity: .8; }
|
|
#quest-tracker .quest-header { color: var(--gold); letter-spacing: 1px; font-size: 12px; text-transform: uppercase; }
|
|
|
|
.hud-panel {
|
|
background: var(--panel-soft);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
box-shadow: 0 6px 20px rgba(0,0,0,.55), inset 0 0 24px rgba(0,0,0,.4);
|
|
}
|
|
|
|
#minimap-box { position: absolute; top: 12px; right: 12px; padding: 5px; }
|
|
#minimap { display: block; border-radius: 3px; }
|
|
#minimap-label {
|
|
text-align: center; font-size: 11px; letter-spacing: 1px;
|
|
color: var(--gold); padding-top: 4px; text-transform: uppercase;
|
|
}
|
|
|
|
#buff-bar {
|
|
position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
|
|
display: flex; gap: 6px; pointer-events: none;
|
|
}
|
|
.buff-icon {
|
|
width: 40px; height: 40px; border-radius: 6px;
|
|
border: 1px solid var(--border-hi);
|
|
background: var(--panel-soft);
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 19px; position: relative; overflow: hidden;
|
|
box-shadow: 0 0 12px rgba(0,0,0,.6);
|
|
}
|
|
.buff-icon .buff-timer {
|
|
position: absolute; bottom: 0; left: 0; right: 0;
|
|
font-size: 9px; text-align: center; color: var(--gold-hi);
|
|
background: rgba(0,0,0,.55); padding-bottom: 1px;
|
|
}
|
|
|
|
/* bottom hud: orbs + hotbar */
|
|
#bottom-hud {
|
|
position: absolute; left: 0; right: 0; bottom: 0;
|
|
display: flex; align-items: flex-end; justify-content: space-between;
|
|
padding: 0 18px 10px;
|
|
pointer-events: none;
|
|
}
|
|
#bottom-hud > * { pointer-events: auto; }
|
|
|
|
.orb {
|
|
position: relative;
|
|
width: 108px; height: 108px;
|
|
border-radius: 50%;
|
|
border: 3px solid #2c2115;
|
|
box-shadow: 0 0 0 2px #000, inset 0 0 26px rgba(0,0,0,.9), 0 8px 24px rgba(0,0,0,.7);
|
|
overflow: hidden;
|
|
background: radial-gradient(circle at 50% 42%, #1c1611, #0a0705 72%);
|
|
}
|
|
.orb-fill { position: absolute; left: 0; right: 0; bottom: 0; transition: height .18s ease; }
|
|
.orb-fill.life {
|
|
background: linear-gradient(to top, #7e1408, #c93a20 62%, #e86a48);
|
|
box-shadow: 0 0 22px rgba(220,70,40,.55);
|
|
}
|
|
.orb-fill.mana {
|
|
background: linear-gradient(to top, #12306e, #2f66c4 62%, #5b93ea);
|
|
box-shadow: 0 0 22px rgba(70,120,230,.55);
|
|
}
|
|
.orb-fill::before {
|
|
content: ''; position: absolute; top: -4px; left: -6%; right: -6%; height: 10px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,.22);
|
|
filter: blur(1px);
|
|
}
|
|
.orb-gloss {
|
|
position: absolute; top: 8%; left: 14%; width: 46%; height: 30%;
|
|
border-radius: 50%;
|
|
background: radial-gradient(ellipse at 40% 30%, rgba(255,255,255,.28), transparent 65%);
|
|
pointer-events: none;
|
|
}
|
|
.orb-text {
|
|
position: absolute; inset: 0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 15px; color: #fff;
|
|
text-shadow: 0 1px 3px #000, 0 0 10px #000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#center-hud {
|
|
flex: 0 1 560px;
|
|
display: flex; flex-direction: column; align-items: center; gap: 7px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
#xp-bar-wrap {
|
|
position: relative; width: 100%; height: 13px;
|
|
background: #120d08; border: 1px solid var(--border); border-radius: 7px;
|
|
overflow: hidden;
|
|
}
|
|
#xp-bar {
|
|
height: 100%; width: 0%;
|
|
background: linear-gradient(90deg, #6d5116, #c8a35a);
|
|
box-shadow: 0 0 10px rgba(200,163,90,.5);
|
|
transition: width .25s ease;
|
|
}
|
|
#xp-text {
|
|
position: absolute; inset: 0;
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 9.5px; color: var(--gold-hi); letter-spacing: .5px;
|
|
text-shadow: 0 1px 2px #000;
|
|
}
|
|
|
|
#hotbar {
|
|
display: flex; align-items: center; gap: 8px;
|
|
background: var(--panel-soft);
|
|
border: 1px solid var(--border); border-radius: 8px;
|
|
padding: 6px 10px;
|
|
box-shadow: 0 8px 22px rgba(0,0,0,.6), inset 0 0 20px rgba(0,0,0,.45);
|
|
}
|
|
.hotbar-group { display: flex; gap: 6px; }
|
|
.hotbar-sep { width: 1px; height: 40px; background: var(--border); opacity: .7; }
|
|
.hotbar-group.small { gap: 4px; }
|
|
|
|
.hb-slot {
|
|
position: relative; width: 46px; height: 46px;
|
|
background: var(--slot-bg);
|
|
border: 1px solid #4a3a22; border-radius: 6px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
cursor: pointer; user-select: none;
|
|
}
|
|
.hb-slot.small { width: 34px; height: 34px; }
|
|
.hb-slot:hover { border-color: var(--border-hi); box-shadow: 0 0 10px rgba(200,163,90,.3); }
|
|
.hb-slot canvas { width: 36px; height: 36px; }
|
|
.hb-slot .keybind {
|
|
position: absolute; top: -1px; left: 2px;
|
|
font-size: 9px; color: var(--gold); text-shadow: 0 1px 2px #000;
|
|
}
|
|
.hb-slot .cd-overlay {
|
|
position: absolute; inset: 0; border-radius: 6px;
|
|
background: rgba(0,0,0,.72);
|
|
pointer-events: none;
|
|
}
|
|
.hb-slot .mana-star {
|
|
position: absolute; right: 2px; bottom: 1px;
|
|
font-size: 9px; color: #6f9fe8; text-shadow: 0 1px 2px #000;
|
|
}
|
|
.hb-slot.empty-slot { opacity: .45; }
|
|
.hb-slot.potion-count {
|
|
position: absolute; right: 2px; bottom: 1px;
|
|
font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000;
|
|
}
|
|
|
|
#level-pill {
|
|
position: absolute; left: 50%; transform: translateX(-50%);
|
|
bottom: 96px;
|
|
background: var(--panel-soft); border: 1px solid var(--border);
|
|
border-radius: 14px; padding: 1px 14px;
|
|
font-size: 12px; color: var(--gold-hi); letter-spacing: 1px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,.5);
|
|
}
|
|
#center-hud { position: relative; }
|
|
|
|
/* boss bar */
|
|
#boss-bar-wrap {
|
|
position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
|
|
width: min(520px, 60vw); text-align: center;
|
|
}
|
|
#boss-name {
|
|
font-size: 15px; letter-spacing: 4px; color: #e8b0a0;
|
|
text-transform: uppercase; text-shadow: 0 0 14px rgba(200,50,30,.8), 0 2px 3px #000;
|
|
margin-bottom: 4px;
|
|
}
|
|
#boss-bar {
|
|
height: 12px; background: rgba(10,6,4,.85);
|
|
border: 1px solid #6e2a1c; border-radius: 6px; overflow: hidden;
|
|
box-shadow: 0 0 18px rgba(120,20,10,.5);
|
|
}
|
|
#boss-fill {
|
|
height: 100%; width: 100%;
|
|
background: linear-gradient(90deg, #6e120a, #c22a18 70%, #e05540);
|
|
box-shadow: 0 0 12px rgba(220,60,30,.7);
|
|
transition: width .15s ease;
|
|
}
|
|
|
|
/* toasts */
|
|
#toasts {
|
|
position: absolute; bottom: 150px; left: 50%; transform: translateX(-50%);
|
|
display: flex; flex-direction: column-reverse; align-items: center; gap: 5px;
|
|
pointer-events: none;
|
|
}
|
|
.toast {
|
|
background: rgba(16,11,7,.92);
|
|
border: 1px solid var(--border);
|
|
border-radius: 5px;
|
|
color: var(--text);
|
|
font-size: 13.5px;
|
|
padding: 6px 18px;
|
|
letter-spacing: .5px;
|
|
text-shadow: 0 1px 2px #000;
|
|
animation: toastIn .18s ease;
|
|
box-shadow: 0 6px 16px rgba(0,0,0,.5);
|
|
}
|
|
.toast.gold { color: var(--gold-hi); }
|
|
.toast.bad { color: var(--red-hi); }
|
|
.toast.fadeout { opacity: 0; transition: opacity .5s ease; }
|
|
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
|
|
|
|
/* ============ floating panels ============ */
|
|
|
|
#panels { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
|
|
.fpanel {
|
|
position: absolute;
|
|
pointer-events: auto;
|
|
min-width: 240px;
|
|
}
|
|
.fpanel-head {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 9px 14px;
|
|
}
|
|
.fpanel-head .panel-title { border: none; padding: 0; flex: 1; }
|
|
.fpanel-close {
|
|
width: 22px; height: 22px; line-height: 20px;
|
|
text-align: center; cursor: pointer;
|
|
color: var(--text-dim); font-size: 14px;
|
|
border: 1px solid transparent; border-radius: 4px;
|
|
user-select: none;
|
|
}
|
|
.fpanel-close:hover { color: var(--red-hi); border-color: var(--border); }
|
|
.fpanel-body { padding: 10px 14px 14px; }
|
|
|
|
#panel-inventory { right: 16px; top: 190px; width: 292px; }
|
|
#panel-character { left: 16px; top: 190px; width: 308px; }
|
|
#panel-skills { left: 16px; top: 130px; width: 560px; max-height: calc(100vh - 260px); }
|
|
#panel-stash { left: 50%; transform: translateX(-50%); top: 120px; width: 340px; }
|
|
#panel-vendor { left: 50%; transform: translateX(-50%); top: 110px; width: 640px; }
|
|
#panel-dialog { left: 50%; transform: translateX(-50%); bottom: 170px; width: min(560px, 90vw); }
|
|
#panel-quests { right: 16px; top: 130px; width: 330px; }
|
|
#panel-worldmap { left: 50%; transform: translateX(-50%); top: 50%; transform: translate(-50%, -50%); width: min(680px, 94vw); }
|
|
|
|
.inv-grid {
|
|
display: grid; grid-template-columns: repeat(5, 48px); gap: 5px;
|
|
justify-content: center;
|
|
}
|
|
.item-slot {
|
|
position: relative; width: 48px; height: 48px;
|
|
background: var(--slot-bg);
|
|
border: 1px solid #43351f; border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
.item-slot:hover { border-color: var(--border-hi); }
|
|
.item-slot.rarity-glow-magic { border-color: var(--rarity-magic); }
|
|
.item-slot.rarity-glow-rare { border-color: var(--rarity-rare); }
|
|
.item-slot.rarity-glow-legendary { border-color: var(--rarity-legendary); box-shadow: 0 0 10px rgba(239,143,52,.5); }
|
|
.item-slot canvas { width: 44px; height: 44px; display: block; margin: 1px auto; }
|
|
.item-slot .qty-badge {
|
|
position: absolute; right: 2px; bottom: 0;
|
|
font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000;
|
|
}
|
|
|
|
.equip-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 54px);
|
|
gap: 6px; justify-content: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
.equip-slot {
|
|
position: relative; width: 54px; height: 54px;
|
|
background: var(--slot-bg);
|
|
border: 1px dashed #4a3a22; border-radius: 6px;
|
|
display: flex; align-items: center; justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
.equip-slot:hover { border-color: var(--border-hi); }
|
|
.equip-slot .slot-label {
|
|
font-size: 9px; color: #6b5c43; text-transform: uppercase; letter-spacing: 1px;
|
|
text-align: center;
|
|
}
|
|
.equip-slot canvas { width: 50px; height: 50px; position: absolute; }
|
|
|
|
.stat-list { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
|
|
.stat-row { display: flex; justify-content: space-between; padding: 1px 4px; border-radius: 3px; }
|
|
.stat-row:nth-child(odd) { background: rgba(255,255,255,.03); }
|
|
.stat-row .stat-val { color: var(--gold-hi); }
|
|
.stat-row.allocatable .stat-name { cursor: pointer; }
|
|
.stat-row .plus-btn {
|
|
width: 18px; height: 18px; line-height: 15px; text-align: center;
|
|
border: 1px solid var(--border-hi); border-radius: 3px;
|
|
color: var(--gold); cursor: pointer; font-size: 13px;
|
|
margin-left: 6px; user-select: none;
|
|
}
|
|
.stat-row .plus-btn:hover { background: #3d2a12; color: var(--gold-hi); }
|
|
|
|
.resist-strip { display: flex; justify-content: space-around; margin-top: 8px; font-size: 11px; }
|
|
.resist-strip span { color: var(--text-dim); }
|
|
.resist-strip b { color: var(--text); }
|
|
|
|
/* skills tree */
|
|
.skill-tree { display: flex; flex-direction: column; gap: 10px; }
|
|
.skill-branch-name {
|
|
color: var(--gold); letter-spacing: 2px; font-size: 12px; text-transform: uppercase;
|
|
border-bottom: 1px solid rgba(90,68,38,.4); padding-bottom: 3px; margin-bottom: 4px;
|
|
}
|
|
.skill-tier { display: flex; gap: 8px; align-items: center; }
|
|
.skill-node { position: relative; }
|
|
.skill-node .skill-btn {
|
|
position: relative; width: 56px; height: 56px;
|
|
background: var(--slot-bg); border: 1px solid #4a3a22; border-radius: 6px;
|
|
cursor: pointer; display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.skill-node.locked .skill-btn { opacity: .38; filter: grayscale(.8); }
|
|
.skill-node.maxed .skill-btn { border-color: var(--gold); box-shadow: 0 0 12px rgba(200,163,90,.4); }
|
|
.skill-node .skill-rank {
|
|
position: absolute; right: 2px; bottom: 1px;
|
|
font-size: 11px; color: var(--gold-hi); text-shadow: 0 1px 2px #000;
|
|
}
|
|
.skill-node .skill-plus {
|
|
position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
|
|
width: 18px; height: 18px; line-height: 16px; text-align: center;
|
|
background: #2a1c0e; border: 1px solid var(--gold); border-radius: 50%;
|
|
color: var(--gold-hi); cursor: pointer; font-size: 12px;
|
|
box-shadow: 0 0 8px rgba(200,163,90,.5);
|
|
}
|
|
.skill-desc {
|
|
flex: 1; font-size: 12.5px; line-height: 1.5; color: var(--text-dim);
|
|
padding-left: 6px;
|
|
}
|
|
.skill-desc b { color: var(--text); }
|
|
.skill-hotkey-select {
|
|
margin-top: 3px; font-size: 11px; color: var(--gold);
|
|
}
|
|
.skill-hotkey-select button {
|
|
font-family: inherit; font-size: 10px;
|
|
background: #201710; color: var(--text);
|
|
border: 1px solid var(--border); border-radius: 3px;
|
|
padding: 1px 7px; margin-right: 4px; cursor: pointer;
|
|
}
|
|
.skill-hotkey-select button.active { color: var(--gold-hi); border-color: var(--gold); background: #3d2a12; }
|
|
|
|
/* vendor / lists */
|
|
.vendor-layout { display: flex; gap: 14px; }
|
|
.vendor-list { display: flex; flex-direction: column; gap: 5px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
|
|
.vendor-item-row {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 5px 8px; border: 1px solid #3a2d1a; border-radius: 5px;
|
|
background: rgba(14,10,6,.7);
|
|
cursor: pointer;
|
|
}
|
|
.vendor-item-row:hover { border-color: var(--border-hi); background: rgba(30,21,12,.85); }
|
|
.vendor-item-row.sold { opacity: .35; pointer-events: none; }
|
|
.vendor-price { margin-left: auto; color: var(--gold-hi); font-size: 13px; white-space: nowrap; }
|
|
.vendor-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
|
|
.vendor-tab {
|
|
padding: 4px 16px; font-size: 13px; letter-spacing: 1px;
|
|
border: 1px solid var(--border); border-radius: 4px;
|
|
color: var(--text-dim); cursor: pointer; user-select: none;
|
|
}
|
|
.vendor-tab.active { color: var(--gold-hi); border-color: var(--gold); background: #2a1c0e; }
|
|
|
|
/* dialog */
|
|
.dialog-box { padding: 14px 20px 16px; }
|
|
.dialog-text { font-size: 15px; line-height: 1.6; font-style: italic; color: var(--text); margin-bottom: 12px; }
|
|
.dialog-options { display: flex; flex-direction: column; gap: 6px; }
|
|
.dialog-options .btn { text-align: left; font-size: 14px; padding: 7px 16px; }
|
|
|
|
/* world map */
|
|
.worldmap-nodes { display: flex; align-items: center; justify-content: center; gap: 0; padding: 24px 10px 10px; }
|
|
.wm-node {
|
|
width: 120px; text-align: center; cursor: pointer; user-select: none;
|
|
padding: 10px 6px; border: 1px solid var(--border); border-radius: 8px;
|
|
background: rgba(18,12,8,.85);
|
|
font-size: 12px;
|
|
}
|
|
.wm-node .wm-icon { font-size: 26px; margin-bottom: 4px; }
|
|
.wm-node .wm-depth { color: var(--text-dim); font-size: 11px; }
|
|
.wm-node.current { border-color: var(--gold); box-shadow: 0 0 16px rgba(200,163,90,.4); }
|
|
.wm-node.locked { opacity: .35; cursor: default; }
|
|
.wm-node:not(.locked):hover { border-color: var(--border-hi); }
|
|
.wm-arrow { color: var(--border-hi); font-size: 20px; padding: 0 8px; }
|
|
|
|
/* tooltip */
|
|
#tooltip {
|
|
position: fixed; z-index: 90;
|
|
max-width: 300px;
|
|
background: rgba(12, 8, 5, 0.97);
|
|
border: 1px solid var(--border);
|
|
border-radius: 5px;
|
|
padding: 9px 13px;
|
|
font-size: 13px; line-height: 1.55;
|
|
pointer-events: none;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,.8);
|
|
}
|
|
.tt-title { font-size: 14.5px; letter-spacing: .5px; margin-bottom: 2px; }
|
|
.tt-type { color: var(--text-dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
|
|
.tt-affix { color: #8fb4f5; font-size: 12.5px; }
|
|
.tt-flavor { color: #8a7357; font-style: italic; font-size: 11.5px; margin-top: 6px; border-top: 1px solid rgba(90,68,38,.35); padding-top: 5px; }
|
|
.tt-compare { margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(90,68,38,.35); font-size: 12px; color: var(--text-dim); }
|
|
.tt-value { color: var(--text); }
|
|
.tt-up { color: #7fd77f; }
|
|
.tt-down { color: #e07a6a; }
|
|
.tt-action { color: var(--gold); font-size: 11px; margin-top: 6px; letter-spacing: 1px; text-transform: uppercase; }
|
|
.tt-simple { white-space: pre-line; }
|
|
|
|
/* drag ghost */
|
|
#drag-ghost {
|
|
position: fixed; z-index: 99; pointer-events: none;
|
|
width: 48px; height: 48px;
|
|
opacity: .9;
|
|
filter: drop-shadow(0 6px 10px rgba(0,0,0,.7));
|
|
}
|
|
#drag-ghost canvas { width: 48px; height: 48px; }
|
|
|
|
/* ground item labels are drawn on canvas; nothing needed here */
|
|
|
|
/* small screens notice */
|
|
#rotate-notice { position: absolute; inset: 0; z-index: 200; background: #070605; display: none; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--text); font-size: 17px; line-height: 1.7; }
|
|
@media (max-width: 700px) {
|
|
#panel-inventory { width: 250px; }
|
|
.inv-grid { grid-template-columns: repeat(5, 42px); }
|
|
.item-slot { width: 42px; height: 42px; }
|
|
.orb { width: 84px; height: 84px; }
|
|
}
|
|
|
|
/* ===== NPC quest cards ===== */
|
|
.quest-title { color: var(--gold-hi); font-size: 15px; letter-spacing: 1px; margin: 6px 0 8px; text-transform: uppercase; }
|
|
.quest-desc { color: var(--text); font-size: 13px; line-height: 1.55; margin-bottom: 10px; }
|
|
.quest-reward { color: var(--gold); font-size: 12px; margin-bottom: 10px; }
|
|
.dialog-options { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
|
|
.dialog-options .btn { text-align: left; }
|