Noilil's picture
Upload 3 files
3a7c895 verified
raw
history blame
6.53 kB
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: #0f1624;
color: #e8ecf3;
font-family: "Segoe UI", Arial, sans-serif;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 12px;
padding: 16px;
}
#ui {
display: flex;
gap: 16px;
background: rgba(255, 255, 255, 0.06);
padding: 8px 12px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(2px);
}
.stat span:first-child {
color: #9bb3ff;
margin-right: 4px;
}
.stat.danger {
color: #ff4444;
animation: pulse 1s ease-in-out infinite;
}
.stat.danger span:first-child {
color: #ffaa44;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
#gameCanvas {
border: 1px solid rgba(255, 255, 255, 0.08);
background: radial-gradient(circle at 40% 30%, #15213a, #0b1220 55%, #070c16 100%);
width: 960px;
height: 600px;
}
#canvasWrapper {
position: relative;
}
.overlay {
position: absolute;
inset: 0;
background: rgba(7, 12, 22, 0.82);
display: grid;
place-items: center;
}
.overlay.hidden {
display: none;
}
.panel {
background: #10182c;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
padding: 18px;
width: 420px;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.panel h2 {
margin-bottom: 8px;
letter-spacing: 0.5px;
}
.panel .hint {
color: #a7b7d5;
margin-bottom: 12px;
font-size: 14px;
}
.choice-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.choice-card {
background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
border: 1px solid rgba(255,255,255,0.12);
border-radius: 10px;
padding: 10px;
cursor: pointer;
transition: transform 0.12s ease, border-color 0.12s ease;
min-height: 110px;
}
.choice-card:hover, .choice-card:focus {
transform: translateY(-2px);
border-color: #7cfbce;
}
.choice-card .title {
font-weight: 700;
margin-bottom: 6px;
}
.choice-card .type {
font-size: 12px;
color: #9bb3ff;
margin-bottom: 6px;
}
.choice-card .desc {
font-size: 13px;
color: #c7d3e6;
}
.choice-card.rarity-common { border-color: rgba(255,255,255,0.12); }
.choice-card.rarity-uncommon { border-color: #54e894aa; }
.choice-card.rarity-rare { border-color: #5aa9ffaa; }
.choice-card.rarity-unique { border-color: #ff7bcaaa; }
.choice-card.rarity-epic { border-color: #c082ffaa; }
.choice-card.rarity-legendary { border-color: #ffa94daa; }
.choice-card.rarity-divine { border-color: #ff5f5faa; box-shadow: 0 0 12px rgba(255,95,95,0.3); }
.class-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.class-card {
background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
color: inherit;
padding: 10px;
text-align: left;
cursor: pointer;
transition: transform 0.1s ease, border-color 0.1s ease;
}
.class-card:hover, .class-card:focus {
transform: translateY(-2px);
border-color: #6cf1ff;
}
.class-card .title {
font-weight: 700;
margin-top: 4px;
}
.class-card .desc {
color: #a7b7d5;
font-size: 13px;
}
.icon {
width: 36px;
height: 36px;
margin-bottom: 4px;
}
.icon.sword {
background: linear-gradient(135deg, #9bd5ff 30%, #d7ecff 70%);
clip-path: polygon(40% 0%, 60% 0%, 65% 55%, 50% 100%, 35% 55%);
}
.icon.bow {
background: radial-gradient(circle at 30% 50%, #f4d35e 35%, rgba(0,0,0,0) 36%), radial-gradient(circle at 70% 50%, #f4d35e 35%, rgba(0,0,0,0) 36%), linear-gradient(90deg, rgba(0,0,0,0) 45%, #f4d35e 46%, #f4d35e 54%, rgba(0,0,0,0) 55%), linear-gradient(135deg, #c17b2a 0%, #8b4f20 100%);
border-radius: 4px;
}
.icon.staff {
background: linear-gradient(135deg, #8f7bff, #c8b8ff);
position: relative;
}
.icon.staff::after {
content: "";
position: absolute;
width: 14px;
height: 14px;
background: radial-gradient(circle, #ff7b7b 20%, #ffa64d 70%);
border-radius: 50%;
top: -4px;
right: -4px;
box-shadow: 0 0 6px #ffb899;
}
.icon.shield {
background: linear-gradient(180deg, #7ad1ff 0%, #4b87c5 100%);
clip-path: polygon(10% 0%, 90% 0%, 70% 100%, 30% 100%);
}
#skillBar {
width: 960px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 10px;
}
.skills-section {
display: flex;
flex-direction: column;
gap: 6px;
}
.section-title {
color: #9bb3ff;
font-weight: 700;
font-size: 14px;
}
.icon-row {
display: flex;
gap: 8px;
}
.meta-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.skill-icon {
width: 40px;
height: 40px;
border: 1px solid rgba(255, 255, 255, 0.12);
background: #0c1220;
border-radius: 6px;
display: grid;
place-items: center;
position: relative;
}
.skill-icon canvas {
image-rendering: pixelated;
}
.skill-icon.meta {
width: auto;
padding: 6px 8px;
background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
display: inline-flex;
align-items: center;
gap: 6px;
}
.meta-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #5f6c85;
}
.meta-dot.ready {
background: #ffd166;
box-shadow: 0 0 6px #ffd166;
}
.meta-text {
font-size: 12px;
color: #e8ecf3;
}
.rarity-common {
background: #101828;
border-color: rgba(255,255,255,0.12);
}
.rarity-uncommon {
background: radial-gradient(circle, #143020, #0f1f16);
border-color: #54e894aa;
}
.rarity-rare {
background: radial-gradient(circle, #0f2c4a, #0c1b2e);
border-color: #5aa9ffaa;
}
.rarity-unique {
background: radial-gradient(circle, #3a1535, #1f0c1e);
border-color: #ff7bcaaa;
}
.rarity-epic {
background: radial-gradient(circle, #2d114a, #190a2d);
border-color: #c082ffaa;
}
.rarity-legendary {
background: radial-gradient(circle, #3b2008, #1e1207);
border-color: #ffa94daa;
}
.rarity-divine {
background: radial-gradient(circle, #3a0b0b, #1c0606);
border-color: #ff5f5faa;
box-shadow: 0 0 12px rgba(255,95,95,0.35);
}
.skill-label {
position: absolute;
bottom: -14px;
font-size: 11px;
color: #a7b7d5;
width: 100%;
text-align: center;
}
#gameOver button,
.panel button {
margin-top: 12px;
padding: 10px 12px;
border: none;
border-radius: 8px;
background: linear-gradient(135deg, #4be0ff, #7cfbce);
color: #041022;
font-weight: 700;
cursor: pointer;
}