blackjack/Components/Pages/BlackjackGame.razor.css

1060 lines
23 KiB
CSS
Raw Permalink Normal View History

2025-04-16 14:27:41 +07:00
:root {
2025-04-17 22:25:37 +07:00
/* Цветовая палитра */
2025-04-16 14:27:41 +07:00
--casino-green: #2a9d8f;
--casino-dark-green: #226f66;
--felt-green: #40a886;
--wood-brown: #b76e40;
--gold: #ffbe0b;
--light-gold: #ffe066;
--dark-gold: #e29400;
--red: #ff5e5b;
--black: #2b2b2b;
--white: #ffffff;
--gray: #7d8597;
--light-gray: #f1f3f5;
--blue: #3a86ff;
2025-04-17 22:25:37 +07:00
/* Общие эффекты */
--card-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
2025-04-16 14:27:41 +07:00
--button-shadow: 0 6px 0 var(--dark-gold);
--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
2025-04-17 22:25:37 +07:00
/* Базовая структура страницы */
2025-04-16 14:27:41 +07:00
.casino-background {
2025-04-17 22:25:37 +07:00
background: linear-gradient(135deg, #2c3e50, #4a6572, #2c3e50);
background-size: 400% 400%;
animation: gradient 15s ease infinite;
2025-04-16 14:27:41 +07:00
min-height: 100vh;
2025-04-17 22:25:37 +07:00
padding: 20px;
2025-04-16 14:27:41 +07:00
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Poppins', 'Montserrat', sans-serif;
color: var(--white);
2025-04-17 22:25:37 +07:00
position: relative;
overflow-x: hidden;
}
/* Анимация градиентного фона */
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* Текстура фона */
.casino-background::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.1) 2px, transparent 0);
background-size: 100px 100px;
pointer-events: none;
2025-04-16 14:27:41 +07:00
}
/* Основной контейнер игры */
.blackjack-container {
width: 100%;
max-width: 1000px;
background: linear-gradient(145deg, var(--casino-green), var(--casino-dark-green));
2025-04-17 22:25:37 +07:00
border-radius: 20px;
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
padding: 30px;
2025-04-16 14:27:41 +07:00
position: relative;
2025-04-17 22:25:37 +07:00
border: 6px solid var(--wood-brown);
display: flex;
flex-direction: column;
2025-04-16 14:27:41 +07:00
}
/* Заголовок игры */
.game-header {
display: flex;
justify-content: center;
align-items: center;
position: relative;
2025-04-17 22:25:37 +07:00
margin-bottom: 20px;
2025-04-16 14:27:41 +07:00
}
.game-title {
color: var(--light-gold);
text-transform: uppercase;
text-align: center;
2025-04-17 22:25:37 +07:00
font-size: 3rem;
2025-04-16 14:27:41 +07:00
margin: 0;
2025-04-17 22:25:37 +07:00
letter-spacing: 3px;
2025-04-16 14:27:41 +07:00
font-weight: 800;
position: relative;
2025-04-17 22:25:37 +07:00
z-index: 2;
2025-04-16 14:27:41 +07:00
}
.game-title::after {
content: '';
position: absolute;
2025-04-17 22:25:37 +07:00
bottom: -10px;
2025-04-16 14:27:41 +07:00
left: 50%;
transform: translateX(-50%);
width: 70%;
2025-04-17 22:25:37 +07:00
height: 3px;
2025-04-16 14:27:41 +07:00
background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
2025-04-17 22:25:37 +07:00
/* Стопка фишек - декоративный элемент */
.chip-stack {
width: 70px;
height: 70px;
position: absolute;
right: 0;
top: 0;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
display: flex;
flex-direction: column;
align-items: center;
z-index: 1;
}
.chip-stack::before {
content: "";
width: 60px;
height: 10px;
background: linear-gradient(to right, var(--red), var(--gold), var(--blue), var(--black));
border-radius: 5px;
position: absolute;
top: 20px;
transform: rotate(-15deg);
}
.chip-stack::after {
content: "";
width: 60px;
height: 60px;
background: conic-gradient(var(--gold) 0deg 60deg, var(--blue) 60deg 120deg, var(--red) 120deg 240deg, var(--black) 240deg 360deg);
border-radius: 50%;
position: absolute;
top: 0;
border: 2px solid rgba(0,0,0,0.2);
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
/* Область сообщений */
2025-04-16 14:27:41 +07:00
.message-box {
2025-04-17 22:25:37 +07:00
background-color: var(--white);
border-left: 5px solid var(--gold);
padding: 15px 20px;
margin: 0 auto 25px;
2025-04-16 14:27:41 +07:00
color: var(--black);
2025-04-17 22:25:37 +07:00
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
2025-04-16 14:27:41 +07:00
text-align: center;
max-width: 85%;
transition: var(--transition);
2025-04-17 22:25:37 +07:00
z-index: 2;
position: relative;
2025-04-16 14:27:41 +07:00
}
.message-win {
2025-04-17 22:25:37 +07:00
border-left: 5px solid #4caf50;
2025-04-16 14:27:41 +07:00
background-color: #e8f5e9;
color: #2e7d32;
}
.message-lose {
2025-04-17 22:25:37 +07:00
border-left: 5px solid var(--red);
2025-04-16 14:27:41 +07:00
background-color: #ffebee;
color: #c62828;
}
.message-info {
2025-04-17 22:25:37 +07:00
border-left: 5px solid var(--blue);
2025-04-16 14:27:41 +07:00
background-color: #e1f5fe;
color: #0277bd;
}
.message-content {
2025-04-17 22:25:37 +07:00
font-size: 1.2rem;
2025-04-16 14:27:41 +07:00
font-weight: 600;
letter-spacing: 0.5px;
}
2025-04-17 22:25:37 +07:00
/* Основная игровая область */
2025-04-16 14:27:41 +07:00
.game-area {
background-color: var(--felt-green);
2025-04-17 22:25:37 +07:00
border-radius: 16px;
padding: 25px;
box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3);
2025-04-16 14:27:41 +07:00
position: relative;
2025-04-17 22:25:37 +07:00
border: 3px solid var(--casino-dark-green);
display: flex;
flex-direction: column;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Текстура игрового стола */
.game-area::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
border-radius: inherit;
z-index: 1;
pointer-events: none;
}
/* Секции игроков */
2025-04-16 14:27:41 +07:00
.player-section {
position: relative;
2025-04-17 22:25:37 +07:00
z-index: 2;
margin-bottom: 15px;
}
.player-section-user {
margin-top: 15px;
margin-bottom: 25px;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Информация об игроке */
2025-04-16 14:27:41 +07:00
.player-info {
display: flex;
align-items: center;
2025-04-17 22:25:37 +07:00
gap: 15px;
margin-bottom: 15px;
2025-04-16 14:27:41 +07:00
}
.player-avatar {
2025-04-17 22:25:37 +07:00
width: 50px;
height: 50px;
2025-04-16 14:27:41 +07:00
border-radius: 50%;
2025-04-17 22:25:37 +07:00
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
2025-04-16 14:27:41 +07:00
border: 3px solid var(--gold);
2025-04-17 22:25:37 +07:00
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
background: #e8e8e8;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Аватар дилера */
.dealer-avatar::after {
content: "♠";
font-size: 30px;
color: var(--black);
text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
.dealer-avatar::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 20px;
background: linear-gradient(to bottom, #3f51b5, transparent);
}
/* Аватар игрока */
2025-04-16 14:27:41 +07:00
.player-avatar-user {
2025-04-17 22:25:37 +07:00
background: linear-gradient(135deg, #e4d9b4, #f8eecc);
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
.player-avatar-user::after {
content: "♥";
font-size: 30px;
color: var(--red);
text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
.player-avatar-user::before {
content: "";
position: absolute;
bottom: -15px;
left: 0;
right: 0;
height: 30px;
border-radius: 50% 50% 0 0;
background: rgba(0,0,0,0.1);
}
/* Заголовок игрока */
2025-04-16 14:27:41 +07:00
.player-title {
color: var(--white);
2025-04-17 22:25:37 +07:00
font-size: 1.5rem;
2025-04-16 14:27:41 +07:00
margin: 0;
font-weight: 600;
letter-spacing: 0.5px;
2025-04-17 22:25:37 +07:00
display: flex;
align-items: center;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Значок с очками */
2025-04-16 14:27:41 +07:00
.score-badge {
background: #ffffff;
2025-04-17 22:25:37 +07:00
padding: 5px 10px;
2025-04-16 14:27:41 +07:00
border-radius: 50px;
2025-04-17 22:25:37 +07:00
font-size: 1.1rem;
margin-left: 10px;
2025-04-16 14:27:41 +07:00
color: var(--black);
border: 2px solid var(--dark-gold);
2025-04-17 22:25:37 +07:00
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
display: inline-block;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Область для карт */
2025-04-16 14:27:41 +07:00
.hand {
display: flex;
flex-wrap: wrap;
2025-04-17 22:25:37 +07:00
min-height: 160px;
padding: 10px;
2025-04-16 14:27:41 +07:00
position: relative;
justify-content: center;
2025-04-17 22:25:37 +07:00
gap: 10px;
z-index: 2;
2025-04-16 14:27:41 +07:00
}
/* Разделитель между дилером и игроком */
.table-divider {
display: flex;
justify-content: center;
gap: 15px;
2025-04-17 22:25:37 +07:00
margin: 20px 0;
2025-04-16 14:27:41 +07:00
position: relative;
2025-04-17 22:25:37 +07:00
z-index: 2;
2025-04-16 14:27:41 +07:00
}
.table-divider::before {
content: '';
position: absolute;
top: 50%;
left: 5%;
right: 5%;
2025-04-17 22:25:37 +07:00
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
z-index: 1;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Фишки на столе */
2025-04-16 14:27:41 +07:00
.chip {
2025-04-17 22:25:37 +07:00
width: 36px;
height: 36px;
2025-04-16 14:27:41 +07:00
border-radius: 50%;
2025-04-17 22:25:37 +07:00
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
2025-04-16 14:27:41 +07:00
position: relative;
2025-04-17 22:25:37 +07:00
z-index: 2;
2025-04-16 14:27:41 +07:00
transition: transform 0.3s ease;
}
.chip:hover {
transform: translateY(-3px);
}
2025-04-17 22:25:37 +07:00
.chip::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 24px;
height: 24px;
border-radius: 50%;
border: 1px dashed rgba(255, 255, 255, 0.5);
}
2025-04-16 14:27:41 +07:00
.red-chip {
background: radial-gradient(circle at 30% 30%, #ff8a8a 0%, var(--red) 60%);
2025-04-17 22:25:37 +07:00
border: 2px dashed #ffc7c7;
2025-04-16 14:27:41 +07:00
}
.blue-chip {
background: radial-gradient(circle at 30% 30%, #94d0ff 0%, var(--blue) 60%);
2025-04-17 22:25:37 +07:00
border: 2px dashed #c5e5ff;
2025-04-16 14:27:41 +07:00
}
.green-chip {
background: radial-gradient(circle at 30% 30%, #89e89c 0%, #3cac4c 60%);
2025-04-17 22:25:37 +07:00
border: 2px dashed #d2f9db;
2025-04-16 14:27:41 +07:00
}
.black-chip {
background: radial-gradient(circle at 30% 30%, #a6aaaf 0%, var(--black) 60%);
2025-04-17 22:25:37 +07:00
border: 2px dashed #e2e6eb;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Контейнер карты */
2025-04-16 14:27:41 +07:00
.card-container {
position: relative;
2025-04-17 22:25:37 +07:00
perspective: 1000px;
margin: 5px;
z-index: 2;
2025-04-16 14:27:41 +07:00
}
.card-container.card-hidden {
transform: rotateY(0deg);
}
2025-04-17 22:25:37 +07:00
/* Игральная карта - базовый стиль */
2025-04-16 14:27:41 +07:00
.playing-card {
width: 110px;
height: 154px;
2025-04-17 22:25:37 +07:00
background-color: #ffffff;
border-radius: 8px;
2025-04-16 14:27:41 +07:00
box-shadow: var(--card-shadow);
position: relative;
transform-style: preserve-3d;
backface-visibility: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
2025-04-17 22:25:37 +07:00
border: 1px solid rgba(0, 0, 0, 0.15);
display: flex;
justify-content: center;
align-items: center;
/* Удаляем линовку */
background-image: none;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Добавляем декоративную внутреннюю рамку для всех карт */
.playing-card::before {
content: "";
position: absolute;
top: 5px;
left: 5px;
right: 5px;
bottom: 5px;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 4px;
z-index: 1;
pointer-events: none;
}
/* Улучшаем эффект при наведении */
2025-04-16 14:27:41 +07:00
.card-container:hover .playing-card {
2025-04-17 22:25:37 +07:00
transform: translateY(-5px) rotate(1deg);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Рубашка карты - полностью переопределяем все стили */
.playing-card.card-back {
/* Отключаем все ранее определённые фоны */
background: none;
background-color: #303f9f;
background-image: none !important;
2025-04-16 14:27:41 +07:00
position: relative;
2025-04-17 22:25:37 +07:00
overflow: hidden;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Узор на рубашке */
.playing-card.card-back::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: repeating-linear-gradient( 45deg, #3949ab, #3949ab 10px, #303f9f 10px, #303f9f 20px );
opacity: 0.7;
z-index: 1;
}
/* Символ в центре */
.playing-card.card-back::after {
content: "?";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 50px;
color: white;
z-index: 2;
text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
2025-04-16 14:27:41 +07:00
2025-04-17 22:25:37 +07:00
/* Фон для красных карт (червы и бубны) */
2025-04-16 14:27:41 +07:00
.card-red {
color: #e53935;
2025-04-17 22:25:37 +07:00
background: linear-gradient(135deg, #fff, #fff8f8);
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Тонкий узор для красных карт */
.card-red::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.05;
background-image: repeating-linear-gradient(45deg, #e53935, #e53935 10px, transparent 10px, transparent 20px), repeating-linear-gradient(-45deg, #e53935, #e53935 10px, transparent 10px, transparent 20px);
border-radius: 7px;
z-index: 1;
}
/* Фон для черных карт (пики и трефы) */
2025-04-16 14:27:41 +07:00
.card-black {
color: #212121;
2025-04-17 22:25:37 +07:00
background: linear-gradient(135deg, #fff, #f8f8ff);
}
/* Тонкий узор для черных карт */
.card-black::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 0.05;
background-image: repeating-linear-gradient(45deg, #212121, #212121 10px, transparent 10px, transparent 20px), repeating-linear-gradient(-45deg, #212121, #212121 10px, transparent 10px, transparent 20px);
border-radius: 7px;
z-index: 1;
}
/* Улучшение видимости содержимого карты */
.card-corner, .card-center-suit {
position: relative;
z-index: 2;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Добавляем тень для масти в центре */
.card-center-suit {
font-size: 3rem;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}
/* Эффект при наведении */
.card-container:hover .playing-card {
transform: translateY(-5px) rotate(1deg);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}
/* Углы карт */
2025-04-16 14:27:41 +07:00
.card-corner {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
line-height: 1;
}
.top-left {
2025-04-17 22:25:37 +07:00
top: 6px;
left: 6px;
2025-04-16 14:27:41 +07:00
}
.bottom-right {
2025-04-17 22:25:37 +07:00
bottom: 6px;
right: 6px;
2025-04-16 14:27:41 +07:00
transform: rotate(180deg);
}
.card-rank {
2025-04-17 22:25:37 +07:00
font-size: 1.4rem;
2025-04-16 14:27:41 +07:00
font-weight: bold;
}
.card-suit {
2025-04-17 22:25:37 +07:00
font-size: 1.2rem;
2025-04-16 14:27:41 +07:00
}
.card-center-suit {
2025-04-17 22:25:37 +07:00
font-size: 3rem;
2025-04-16 14:27:41 +07:00
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}
/* Кнопки действий */
.action-buttons {
display: flex;
justify-content: center;
2025-04-17 22:25:37 +07:00
gap: 20px;
margin-top: 25px;
2025-04-16 14:27:41 +07:00
flex-wrap: wrap;
2025-04-17 22:25:37 +07:00
position: relative;
z-index: 3;
2025-04-16 14:27:41 +07:00
}
/* 3D кнопки */
.btn-3d {
position: relative;
2025-04-17 22:25:37 +07:00
padding: 12px 25px;
2025-04-16 14:27:41 +07:00
background: linear-gradient(to bottom, var(--gold), var(--dark-gold));
color: var(--black);
border: none;
border-radius: 50px;
2025-04-17 22:25:37 +07:00
font-size: 1rem;
2025-04-16 14:27:41 +07:00
font-weight: 700;
text-transform: uppercase;
2025-04-17 22:25:37 +07:00
box-shadow: var(--button-shadow), 0 8px 16px rgba(0, 0, 0, 0.18);
2025-04-16 14:27:41 +07:00
transition: all 0.25s;
cursor: pointer;
outline: none;
2025-04-17 22:25:37 +07:00
min-width: 150px;
2025-04-16 14:27:41 +07:00
display: flex;
align-items: center;
justify-content: center;
2025-04-17 22:25:37 +07:00
gap: 8px;
2025-04-16 14:27:41 +07:00
letter-spacing: 1px;
2025-04-17 22:25:37 +07:00
z-index: 3;
2025-04-16 14:27:41 +07:00
}
.btn-3d:hover {
background: linear-gradient(to bottom, var(--light-gold), var(--gold));
transform: translateY(-3px);
2025-04-17 22:25:37 +07:00
box-shadow: 0 9px 0 var(--dark-gold), 0 12px 22px rgba(0, 0, 0, 0.2);
2025-04-16 14:27:41 +07:00
}
.btn-3d:active {
transform: translateY(3px);
2025-04-17 22:25:37 +07:00
box-shadow: 0 3px 0 var(--dark-gold), 0 4px 8px rgba(0, 0, 0, 0.1);
2025-04-16 14:27:41 +07:00
}
.btn-3d:disabled {
background: linear-gradient(to bottom, var(--gray), #939cad);
color: var(--light-gray);
cursor: not-allowed;
2025-04-17 22:25:37 +07:00
box-shadow: 0 6px 0 #636b7c, 0 8px 16px rgba(0, 0, 0, 0.1);
2025-04-16 14:27:41 +07:00
opacity: 0.8;
}
2025-04-17 22:25:37 +07:00
/* Кнопка "Взять карту" */
2025-04-16 14:27:41 +07:00
.btn-hit {
background: linear-gradient(to bottom, #76cf79, #48a04c);
2025-04-17 22:25:37 +07:00
box-shadow: 0 6px 0 #3e8942, 0 8px 16px rgba(0, 0, 0, 0.18);
2025-04-16 14:27:41 +07:00
color: white;
}
.btn-hit:hover {
background: linear-gradient(to bottom, #91d994, #53b557);
2025-04-17 22:25:37 +07:00
box-shadow: 0 9px 0 #3e8942, 0 12px 22px rgba(0, 0, 0, 0.2);
2025-04-16 14:27:41 +07:00
}
.btn-hit:active {
2025-04-17 22:25:37 +07:00
box-shadow: 0 3px 0 #3e8942, 0 4px 8px rgba(0, 0, 0, 0.1);
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Кнопка "Стоп" */
2025-04-16 14:27:41 +07:00
.btn-stand {
background: linear-gradient(to bottom, #ff7875, #d63d38);
2025-04-17 22:25:37 +07:00
box-shadow: 0 6px 0 #c62828, 0 8px 16px rgba(0, 0, 0, 0.18);
2025-04-16 14:27:41 +07:00
color: white;
}
.btn-stand:hover {
background: linear-gradient(to bottom, #ff9793, #e34744);
2025-04-17 22:25:37 +07:00
box-shadow: 0 9px 0 #c62828, 0 12px 22px rgba(0, 0, 0, 0.2);
2025-04-16 14:27:41 +07:00
}
.btn-stand:active {
2025-04-17 22:25:37 +07:00
box-shadow: 0 3px 0 #c62828, 0 4px 8px rgba(0, 0, 0, 0.1);
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Кнопка "Новая игра" */
2025-04-16 14:27:41 +07:00
.btn-new-game {
background: linear-gradient(to bottom, #7986cb, #495cc9);
color: var(--white);
2025-04-17 22:25:37 +07:00
box-shadow: 0 6px 0 #3949ab, 0 8px 16px rgba(0, 0, 0, 0.18);
2025-04-16 14:27:41 +07:00
}
.btn-new-game:hover {
background: linear-gradient(to bottom, #9aa5d6, #5969d2);
2025-04-17 22:25:37 +07:00
box-shadow: 0 9px 0 #3949ab, 0 12px 22px rgba(0, 0, 0, 0.2);
2025-04-16 14:27:41 +07:00
}
.btn-new-game:active {
2025-04-17 22:25:37 +07:00
box-shadow: 0 3px 0 #3949ab, 0 4px 8px rgba(0, 0, 0, 0.1);
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Иконки для кнопок */
2025-04-16 14:27:41 +07:00
.btn-icon {
display: inline-block;
2025-04-17 22:25:37 +07:00
width: 20px;
height: 20px;
position: relative;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Иконка "Взять карту" */
.hit-icon::before {
content: "+";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 20px;
font-weight: bold;
color: #ffffff;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Иконка "Стоп" */
.stand-icon::before {
content: "✋";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 16px;
color: #ffffff;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Иконка "Новая игра" */
.new-game-icon::before {
content: "↻";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 18px;
color: #ffffff;
font-weight: bold;
2025-04-16 14:27:41 +07:00
}
/* Начальный экран */
.start-screen {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
2025-04-17 22:25:37 +07:00
padding: 40px 20px;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Заменяем старый логотип игры на анимированный */
2025-04-16 14:27:41 +07:00
.game-logo {
2025-04-17 22:25:37 +07:00
width: 300px;
height: 200px;
margin-bottom: 40px;
position: relative;
filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
2025-04-16 14:27:41 +07:00
transition: transform 0.5s ease;
2025-04-17 22:25:37 +07:00
display: flex;
align-items: center;
justify-content: center;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Удаляем старые псевдоэлементы с текстом */
.game-logo::before,
.game-logo::after {
content: none;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Создаем анимированную карточную колоду */
.game-logo {
position: relative;
perspective: 1000px;
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
/* Анимированная колода карт */
.game-logo::before {
content: "";
position: absolute;
width: 120px;
height: 160px;
background: linear-gradient(145deg, var(--gold), var(--dark-gold));
border-radius: 10px;
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
transform-style: preserve-3d;
animation: cardShuffle 3s infinite ease-in-out;
}
/* Лицевая карта с символом */
.game-logo::after {
content: "♠";
position: absolute;
width: 120px;
height: 160px;
background: white;
border-radius: 10px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
font-size: 70px;
display: flex;
align-items: center;
justify-content: center;
color: var(--black);
transform-style: preserve-3d;
animation: cardFlip 3s infinite ease-in-out;
border: 2px solid var(--dark-gold);
}
/* Анимация перемешивания колоды */
@keyframes cardShuffle {
0% {
transform: translateX(-80px) rotateY(0) translateZ(0);
}
25% {
transform: translateX(-30px) rotateY(10deg) translateZ(10px);
}
50% {
transform: translateX(30px) rotateY(-10deg) translateZ(20px);
2025-04-16 14:27:41 +07:00
}
2025-04-17 22:25:37 +07:00
75% {
transform: translateX(80px) rotateY(10deg) translateZ(10px);
}
100% {
transform: translateX(-80px) rotateY(0) translateZ(0);
}
}
/* Анимация переворота карты */
@keyframes cardFlip {
0% {
transform: translateZ(20px) rotateY(0);
opacity: 1;
}
45% {
transform: translateZ(80px) rotateY(180deg);
opacity: 0.8;
}
55% {
transform: translateZ(80px) rotateY(180deg);
opacity: 0.8;
}
100% {
transform: translateZ(20px) rotateY(360deg);
opacity: 1;
}
}
/* Дополняем анимацию подсветкой */
.game-logo::before {
animation: cardShuffle 3s infinite ease-in-out, glow 2s infinite alternate;
}
@keyframes glow {
from {
box-shadow: 0 0 10px 2px var(--gold);
}
to {
box-shadow: 0 0 20px 5px var(--light-gold);
}
}
/* Адаптивные стили для анимированного логотипа */
@media (max-width: 768px) {
.game-logo::before,
.game-logo::after {
width: 100px;
height: 140px;
}
.game-logo::after {
font-size: 60px;
}
}
@media (max-width: 480px) {
.game-logo::before,
.game-logo::after {
width: 80px;
height: 112px;
}
.game-logo::after {
font-size: 50px;
}
}
/* Кнопка начала игры */
.btn-start {
font-size: 1.4rem;
padding: 16px 40px;
min-width: 200px;
}
2025-04-16 14:27:41 +07:00
/* Адаптивные стили */
@media (max-width: 768px) {
.blackjack-container {
2025-04-17 22:25:37 +07:00
padding: 20px;
border-width: 4px;
2025-04-16 14:27:41 +07:00
}
.game-title {
2025-04-17 22:25:37 +07:00
font-size: 2rem;
2025-04-16 14:27:41 +07:00
}
.playing-card {
width: 90px;
height: 126px;
}
.card-rank {
2025-04-17 22:25:37 +07:00
font-size: 1.2rem;
}
.card-suit {
font-size: 1.1rem;
2025-04-16 14:27:41 +07:00
}
.card-center-suit {
2025-04-17 22:25:37 +07:00
font-size: 2.4rem;
}
.hand {
min-height: 130px;
2025-04-16 14:27:41 +07:00
}
.action-buttons {
2025-04-17 22:25:37 +07:00
gap: 15px;
margin-top: 20px;
2025-04-16 14:27:41 +07:00
}
.btn-3d {
2025-04-17 22:25:37 +07:00
padding: 10px 18px;
min-width: 130px;
font-size: 0.9rem;
}
.player-title {
font-size: 1.3rem;
}
.message-content {
font-size: 1.1rem;
}
.chip-stack {
width: 60px;
height: 60px;
}
.chip-stack::after {
width: 45px;
height: 45px;
}
.chip-stack::before {
width: 45px;
height: 8px;
}
.game-logo::before {
font-size: 80px;
}
.game-logo::after {
font-size: 36px;
bottom: 40px;
2025-04-16 14:27:41 +07:00
}
}
@media (max-width: 480px) {
2025-04-17 22:25:37 +07:00
.casino-background {
padding: 10px;
}
.blackjack-container {
padding: 15px;
border-width: 3px;
}
.game-title {
font-size: 1.6rem;
}
2025-04-16 14:27:41 +07:00
.playing-card {
width: 70px;
height: 98px;
}
2025-04-17 22:25:37 +07:00
.hand {
min-height: 105px;
gap: 5px;
padding: 5px;
}
2025-04-16 14:27:41 +07:00
.card-rank {
2025-04-17 22:25:37 +07:00
font-size: 1rem;
2025-04-16 14:27:41 +07:00
}
.card-suit {
2025-04-17 22:25:37 +07:00
font-size: 0.9rem;
2025-04-16 14:27:41 +07:00
}
.card-center-suit {
2025-04-17 22:25:37 +07:00
font-size: 1.8rem;
2025-04-16 14:27:41 +07:00
}
.action-buttons {
flex-direction: column;
align-items: center;
2025-04-17 22:25:37 +07:00
gap: 12px;
2025-04-16 14:27:41 +07:00
}
.btn-3d {
width: 100%;
2025-04-17 22:25:37 +07:00
max-width: 250px;
2025-04-16 14:27:41 +07:00
}
.game-area {
2025-04-17 22:25:37 +07:00
padding: 15px;
2025-04-16 14:27:41 +07:00
}
.message-content {
2025-04-17 22:25:37 +07:00
font-size: 1rem;
}
.player-info {
gap: 10px;
margin-bottom: 10px;
}
.player-avatar {
width: 40px;
height: 40px;
}
.player-title {
2025-04-16 14:27:41 +07:00
font-size: 1.1rem;
}
2025-04-17 22:25:37 +07:00
.score-badge {
font-size: 0.9rem;
padding: 3px 8px;
}
.chip-stack {
display: none;
}
.table-divider {
margin: 15px 0;
}
.game-logo {
width: 240px;
height: 160px;
margin-bottom: 30px;
}
.game-logo::before {
font-size: 60px;
}
.game-logo::after {
font-size: 28px;
bottom: 35px;
}
.btn-start {
font-size: 1.2rem;
padding: 14px 30px;
}
2025-04-16 14:27:41 +07:00
}