:root {
--hp-kosa-bg: rgba(0, 0, 0, 0.02); --hp-kosa-card-width: 80px;
--hp-kosa-card-height: 112px;
--hp-kosa-gap: 10px;
}
.hp-kosa {
padding: 2rem;
background: #fff;
border-radius: 4px;
border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
font-family: inherit;
margin: 0 auto 2rem;
}
.hp-kosa__toolbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.hp-kosa__controls {
display: flex;
gap: 1rem;
align-items: center;
}
.hp-kosa__gameboard {
background: var(--hp-kosa-bg);
padding: 2rem;
border-radius: 8px;
min-height: 600px;
position: relative;
display: flex;
flex-direction: column;
gap: 2rem;
user-select: none;
transition: background 0.3s ease;
}
.hp-kosa__gameboard[data-theme="green"] {
background-color: #0a5521;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E"); }
.hp-kosa__gameboard[data-theme="green"] .hp-kosa__slot {
border-color: rgba(255, 255, 255, 0.2);
}
.hp-kosa__theme-toggle {
position: absolute;
bottom: 1rem;
left: 1rem;
background: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
font-size: 0.8rem;
z-index: 10;
transition: background 0.2s;
}
.hp-kosa__theme-toggle:hover {
background: rgba(0, 0, 0, 0.7);
} .hp-kosa__top-row,
.hp-kosa__tableau-row {
display: flex;
gap: var(--hp-kosa-gap);
justify-content: center;
}
.hp-kosa__slot {
width: var(--hp-kosa-card-width);
height: var(--hp-kosa-card-height);
border: 2px dashed rgba(0, 0, 0, 0.1);
border-radius: 6px;
position: relative;
} .hp-kosa-card {
width: var(--hp-kosa-card-width);
height: var(--hp-kosa-card-height);
background: #fff;
border-radius: 6px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
position: absolute;
cursor: pointer;
transition: transform 0.2s;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 5px;
box-sizing: border-box;
} .hp-kosa-card.hp-kosa-card--back {
background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.05) 5px, rgba(255, 255, 255, 0.05) 10px) rgb(30, 58, 138);
}
.hp-kosa__gameboard[data-theme="green"] .hp-kosa-card.hp-kosa-card--back {
background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.07) 5px, rgba(255, 255, 255, 0.07) 10px) rgb(30, 58, 138);
}
.hp-kosa-card--red {
color: #ef4444;
}
.hp-kosa-card--black {
color: #1f2937;
}
.hp-kosa-card__rank {
font-weight: bold;
font-size: 1.25rem;
}
.hp-kosa-card__suit {
font-size: 1.5rem;
align-self: center;
} .hp-kosa__leaderboard {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.hp-kosa__table {
width: 100%;
border-collapse: collapse;
}
.hp-kosa__table th,
.hp-kosa__table td {
padding: 1rem;
text-align: center;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
@media (max-width: 600px) {
:root {
--hp-kosa-card-width: 50px;
--hp-kosa-card-height: 70px;
}
}
.hp-kosa__footer-link {
color: inherit;
text-decoration: none;
transition: opacity 0.2s;
}
.hp-kosa__footer-link:hover {
text-decoration: underline;
} .hp-kosa--dealing .hp-kosa-card {
animation: hpKosaDeal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}
@keyframes hpKosaDeal {
0% {
transform: translate(-30vw, -50vh) scale(0.5) rotate(-180deg);
opacity: 0;
}
100% {
transform: translate(0, 0) scale(1) rotate(0deg);
opacity: 1;
}
}