#ornament-smash-container {
position: relative;
width: 100%;
min-height: 100vh;
overflow: hidden;
} .ornament-smash-grid {
display: grid;
gap: 20px;
padding: 40px 20px;
max-width: 1400px;
margin: 0 auto;
background: transparent;
} .ornament-item {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.3s ease;
padding: 10px;
}
.ornament-item:hover {
transform: scale(1.05);
}
.ornament-item.smashed {
display: none;
} .ornament-image-container {
position: relative;
width: 100%;
max-width: 150px;
aspect-ratio: 1/1;
}
.ornament-image {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
} .ornament-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
white-space: nowrap;
pointer-events: none;
z-index: 2;
} .ornament-item.exploding {
pointer-events: none;
}
.ornament-piece {
position: absolute;
width: 50px;
height: 50px;
background-size: cover;
pointer-events: none;
}
@keyframes explode-piece {
0% {
opacity: 1;
transform: translate(0, 0) rotate(0deg) scale(1);
}
100% {
opacity: 0;
transform: translate(var(--tx), var(--ty)) rotate(var(--rotate)) scale(0.2);
}
} .ornament-control-panel {
position: fixed;
top: 20px;
right: 20px;
z-index: 9999;
}
.ornament-control-toggle {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: 3px solid #fff;
font-size: 30px;
cursor: pointer;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 10000;
}
.ornament-control-toggle:hover {
transform: scale(1.1) rotate(15deg);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.ornament-control-menu {
position: fixed;
top: 90px;
right: 20px;
width: 300px;
background: #fff;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
padding: 20px;
display: none;
max-height: 500px;
overflow-y: auto;
z-index: 9999;
}
.ornament-control-menu.active {
display: block;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.ornament-control-menu h3 {
margin: 0 0 15px 0;
font-size: 18px;
color: #333;
border-bottom: 2px solid #c41e3a;
padding-bottom: 10px;
}
.ornament-control-menu h4 {
margin: 20px 0 10px 0;
font-size: 14px;
color: #666;
}
.ornament-button {
width: 100%;
padding: 12px 20px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
margin-bottom: 10px;
}
.ornament-button-danger {
background: #c41e3a;
color: #fff;
}
.ornament-button-danger:hover {
background: #a01830;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}
.ornament-button-restore {
background: #28a745;
color: #fff;
font-size: 12px;
padding: 8px 15px;
}
.ornament-button-restore:hover {
background: #218838;
}
#ornament-smashed-items {
display: flex;
flex-direction: column;
gap: 8px;
}
.ornament-smashed-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: #f8f9fa;
border-radius: 6px;
}
.ornament-smashed-item span {
font-size: 14px;
color: #333;
}
.ornament-no-smashed {
text-align: center;
color: #999;
font-size: 13px;
padding: 15px;
} .ornament-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10000;
animation: modalFadeIn 0.3s ease;
}
.ornament-modal.active {
display: block;
}
@keyframes modalFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.ornament-modal-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
}
.ornament-modal-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
border-radius: 12px;
max-width: 90%;
max-height: 80vh;
overflow-y: auto;
padding: 40px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
animation: modalZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalZoomIn {
from {
transform: translate(-50%, -50%) scale(0.5);
opacity: 0;
}
to {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
}
.ornament-modal-close {
position: absolute;
top: 15px;
right: 15px;
width: 40px;
height: 40px;
border: none;
background: #c41e3a;
color: #fff;
font-size: 28px;
line-height: 1;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.ornament-modal-close:hover {
background: #a01830;
transform: rotate(90deg);
}
.ornament-modal-body {
font-size: 16px;
line-height: 1.6;
color: #333;
}
.ornament-modal-body img {
max-width: 100%;
height: auto;
border-radius: 8px;
} .ornament-snow-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
overflow: hidden;
}
.snowflake {
position: absolute;
top: -10px;
color: #fff;
font-size: 1em;
pointer-events: none;
animation: snowfall linear infinite;
opacity: 0.8;
}
@keyframes snowfall {
0% {
transform: translateY(0) translateX(0) rotate(0deg);
}
100% {
transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
}
} @media (max-width: 1200px) {
.ornament-smash-grid {
gap: 15px;
padding: 30px 15px;
}
.ornament-image-container {
max-width: 120px;
}
}
@media (max-width: 768px) {
.ornament-smash-grid {
gap: 10px;
padding: 20px 10px;
}
.ornament-image-container {
max-width: 100px;
}
.ornament-label {
font-size: 14px;
}
.ornament-control-toggle {
width: 50px;
height: 50px;
font-size: 25px;
}
.ornament-control-menu {
width: 250px;
}
.ornament-modal-content {
padding: 30px 20px;
max-width: 95%;
}
}
@media (max-width: 480px) {
.ornament-image-container {
max-width: 80px;
}
.ornament-label {
font-size: 12px;
}
} .ornament-smash-notice {
padding: 20px;
background: #fff3cd;
border: 1px solid #ffc107;
border-radius: 4px;
color: #856404;
text-align: center;
margin: 20px;
}