Spaces:
Running
Running
File size: 5,115 Bytes
c7a6722 b802579 48fe3d7 b802579 48fe3d7 b802579 c7a6722 b802579 48fe3d7 c7a6722 b802579 48fe3d7 b802579 c7a6722 b802579 c7a6722 b802579 c7a6722 48fe3d7 b802579 48fe3d7 c7a6722 48fe3d7 e90c4b4 b802579 59c8edc b802579 48fe3d7 e90c4b4 c7a6722 b802579 48fe3d7 e90c4b4 c7a6722 59c8edc e90c4b4 48fe3d7 e90c4b4 48fe3d7 c7a6722 e90c4b4 48fe3d7 e90c4b4 b802579 e90c4b4 b802579 e90c4b4 59c8edc b802579 48fe3d7 b802579 48fe3d7 b802579 c7a6722 b802579 59c8edc 48fe3d7 b802579 c7a6722 b802579 c7a6722 b802579 c7a6722 b802579 c7a6722 b802579 c7a6722 b802579 48fe3d7 b802579 c7a6722 b802579 c7a6722 b802579 e90c4b4 c7a6722 e90c4b4 c7a6722 e90c4b4 c7a6722 e90c4b4 c7a6722 e90c4b4 c7a6722 e90c4b4 b802579 c7a6722 b802579 d360b41 b802579 d360b41 b802579 48fe3d7 b802579 48fe3d7 c7a6722 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
/* DepthMap Trait Architect - Additional Styles */
/* Ensure smooth transitions and crisp rendering */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* Custom scrollbar for panel */
#panelContent::-webkit-scrollbar { width: 8px; }
#panelContent::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 8px; }
#panelContent::-webkit-scrollbar-track { background: transparent; }
/* Honeycomb Grid Container */
#hexGrid {
position: relative;
margin: 0 auto;
}
/* Hex cell base - pointy-top hexagons for better interlocking */
.hex {
position: absolute;
width: 140px;
height: 161.24px; /* width * 0.866 for pointy-top hex height */
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
will-change: transform, filter, opacity;
cursor: pointer;
}
/* Enhanced hover effects */
.hex:hover {
transform: translateY(-8px) scale(1.03);
filter: brightness(1.1) saturate(1.1);
z-index: 10;
}
/* Hex inner content with better positioning */
.hex-inner {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px 12px;
background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
}
/* Hex label with improved typography */
.hex-label {
font-weight: 700;
letter-spacing: 0.02em;
font-size: 14px;
line-height: 1.3;
color: #1e293b;
text-shadow: 0 1px 2px rgba(255,255,255,0.4);
mix-blend-mode: luminosity;
margin-bottom: 8px;
width: 100%;
text-align: center;
word-wrap: break-word;
}
/* Clean score display */
.hex-score {
font-size: 20px;
font-weight: 800;
color: #1e293b;
text-shadow: 0 1px 3px rgba(255,255,255,0.5);
opacity: 0;
transform: translateY(4px);
transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
margin-top: 4px;
}
/* Show score on hover when trait is "unlocked" */
.hex.revealed:hover .hex-score,
.hex.revealed .hex-score {
opacity: 1;
transform: translateY(0);
}
/* Glow ring with enhanced effects */
.hex-ring {
position: absolute;
inset: -8px;
clip-path: inherit;
z-index: -1;
filter: blur(12px);
opacity: 0.8;
transition: all 300ms ease;
}
.hex:hover .hex-ring {
filter: blur(16px);
opacity: 1;
transform: scale(1.05);
}
/* Loading animation for hex entrance */
@keyframes hexFadeIn {
0% {
opacity: 0;
transform: translateY(30px) scale(0.8) rotate(-2deg);
}
100% {
opacity: 1;
transform: translateY(0) scale(1) rotate(0deg);
}
}
.hex {
animation: hexFadeIn 500ms ease-out forwards;
opacity: 0;
}
/* Staggered animation delays for honeycombing effect */
.hex:nth-child(1) { animation-delay: 0ms; }
.hex:nth-child(2) { animation-delay: 50ms; }
.hex:nth-child(3) { animation-delay: 100ms; }
.hex:nth-child(4) { animation-delay: 150ms; }
.hex:nth-child(5) { animation-delay: 200ms; }
.hex:nth-child(6) { animation-delay: 250ms; }
.hex:nth-child(7) { animation-delay: 300ms; }
.hex:nth-child(8) { animation-delay: 350ms; }
.hex:nth-child(9) { animation-delay: 400ms; }
/* Panel transitions */
#panelContent.translate-x-0 { transform: translateX(0); }
#panelBackdrop.opacity-100 { opacity: 1; }
/* Enhanced panel backdrop */
#panelBackdrop {
backdrop-filter: blur(8px);
transition: opacity 250ms ease;
}
/* Responsive hexagonal grid */
@media (max-width: 1024px) {
.hex {
width: 130px;
height: 150px;
}
.hex-label { font-size: 13px; }
.hex-score { font-size: 18px; }
.hex-inner { padding: 18px 10px; }
}
@media (max-width: 768px) {
.hex {
width: 110px;
height: 127px;
}
.hex-label { font-size: 12px; margin-bottom: 6px; }
.hex-score { font-size: 16px; margin-top: 2px; }
.hex-inner { padding: 16px 8px; }
}
@media (max-width: 480px) {
.hex {
width: 90px;
height: 104px;
}
.hex-label { font-size: 11px; margin-bottom: 4px; }
.hex-score { font-size: 14px; margin-top: 2px; }
.hex-inner { padding: 14px 6px; }
}
@media (min-width: 1280px) {
.hex {
width: 160px;
height: 184px;
}
.hex-label { font-size: 15px; margin-bottom: 10px; }
.hex-score { font-size: 22px; margin-top: 6px; }
.hex-inner { padding: 24px 14px; }
}
/* Pulse effect for interactive elements */
@keyframes gentlePulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.02); }
}
.hex:hover {
animation: gentlePulse 2s ease-in-out infinite;
}
/* Subtle shadow enhancement */
.hex-inner {
box-shadow:
0 4px 20px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.2),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.hex:hover .hex-inner {
box-shadow:
0 8px 30px rgba(0, 0, 0, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.3),
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
/* Small utility for hidden but accessible labels */
.sr-only {
position: absolute !important;
height: 1px; width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
white-space: nowrap;
}
|