Files
Gambling_API/public/styles_poker.css
T
2026-09-09 10:48:55 +02:00

400 lines
7.1 KiB
CSS

body {
background: radial-gradient(circle at top, #111, #000);
color: #0f0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
min-height: 100vh;
overflow-x: clip;
}
button {
background-color: #0f0;
color: #000;
border: none;
padding: 10px 18px;
font-size: 14px;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 0 10px #0f0, 0 0 5px #0f0 inset;
transition: background 0.2s ease-in-out, transform 0.2s;
}
button:hover {
background-color: #1f1;
transform: scale(1.05);
}
button:disabled {
background-color: #163016;
color: #67a667;
cursor: not-allowed;
box-shadow: 0 0 5px #0f0 inset;
transform: none;
}
button:disabled:hover {
background-color: #163016;
transform: none;
}
#matrix-canvas {
position: fixed;
top: 0;
left: 0;
z-index: -1;
width: 100vw;
height: 100vh;
background: transparent;
pointer-events: none;
}
.poker-table {
min-height: 100vh;
display: grid;
grid-template-rows: auto 1fr auto 1.5fr;
align-items: center;
justify-items: center;
padding: 24px;
box-sizing: border-box;
}
.table-header {
width: 100%;
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: start;
}
.round-panel {
grid-column: 2;
border: 2px solid #0f0;
background: rgba(0, 0, 0, 0.78);
color: #0f0;
box-shadow: 0 0 12px #0f0;
padding: 16px 28px;
font-family: monospace;
font-size: 20px;
text-shadow: 0 0 5px #0f0;
}
.divider {
margin: 0 14px;
color: #fff;
}
.leave-table {
grid-column: 3;
justify-self: end;
background-color: #111;
color: #0f0;
border: 1px solid #0f0;
}
.card-row,
.hand,
.actions,
.player-status,
.bet-amount,
.range-labels {
display: flex;
align-items: center;
}
.card-row {
gap: 14px;
}
.community-area {
display: grid;
justify-items: center;
gap: 18px;
}
.turn-panel {
display: flex;
flex-wrap: wrap;
gap: 18px;
align-items: center;
justify-content: center;
min-width: min(460px, calc(100vw - 32px));
border: 1px solid #0f0;
background: rgba(0, 0, 0, 0.78);
box-shadow: 0 0 8px #0f0;
color: #fff;
padding: 10px 16px;
font-family: monospace;
}
.turn-queue {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
padding: 0;
margin: 0;
list-style: none;
font-family: monospace;
}
.turn-queue li {
border: 1px solid #0f0;
background: rgba(0, 0, 0, 0.75);
color: #fff;
box-shadow: 0 0 6px #0f0;
padding: 6px 10px;
}
.turn-queue li.active {
background: #0f0;
color: #000;
}
.card {
width: 78px;
height: 116px;
background: #f4fff4;
color: #050505;
border: 2px solid #0f0;
border-radius: 6px;
box-shadow: 0 0 10px #0f0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: monospace;
font-size: 22px;
font-weight: bold;
}
.card.red {
color: #b00020;
}
.card.placeholder {
background: #0b0b0b;
color: #0f0;
font-size: 14px;
text-align: center;
text-shadow: 0 0 5px #0f0;
}
.actions {
gap: 12px;
}
.player-area {
align-self: end;
display: grid;
justify-items: center;
gap: 18px;
padding-bottom: 24px;
}
.hand {
gap: 22px;
}
.player-card:first-child {
transform: rotate(-8deg);
}
.player-card:last-child {
transform: rotate(9deg);
}
.player-status {
gap: 20px;
flex-wrap: wrap;
justify-content: center;
background: rgba(0, 0, 0, 0.78);
border: 1px solid #0f0;
box-shadow: 0 0 8px #0f0;
padding: 10px 18px;
font-family: monospace;
color: #fff;
}
.spectator-note {
border: 1px solid #0f0;
background: rgba(0, 0, 0, 0.78);
box-shadow: 0 0 8px #0f0;
color: #fff;
font-family: monospace;
padding: 8px 14px;
}
.error-message {
position: fixed;
left: 50%;
bottom: 18px;
transform: translateX(-50%);
color: red;
font-weight: bold;
text-shadow: 0 0 3px red;
}
.showdown-panel {
position: fixed;
right: 24px;
bottom: 24px;
width: min(340px, calc(100vw - 48px));
max-height: 42vh;
overflow: auto;
background: rgba(0, 0, 0, 0.88);
border: 2px solid #0f0;
box-shadow: 0 0 12px #0f0;
padding: 14px;
font-family: monospace;
}
.showdown-panel h2 {
margin: 0 0 10px;
font-size: 18px;
color: #0f0;
}
.showdown-row {
display: grid;
gap: 8px;
padding: 10px 0;
border-top: 1px solid rgba(0, 255, 0, 0.35);
color: #fff;
}
.mini-cards {
display: flex;
gap: 6px;
}
.mini-cards .card {
width: 38px;
height: 54px;
font-size: 13px;
box-shadow: 0 0 5px #0f0;
}
.bet-modal {
position: fixed;
inset: 0;
display: grid;
place-items: center;
background: rgba(0, 0, 0, 0.28);
}
.bet-panel {
position: relative;
width: min(360px, calc(100vw - 32px));
background: rgba(0, 0, 0, 0.92);
border: 2px solid #0f0;
box-shadow: 0 0 16px #0f0;
color: #0f0;
padding: 28px;
text-align: center;
font-family: monospace;
}
.bet-panel h2 {
margin: 0 0 18px;
font-size: 16px;
text-shadow: 0 0 5px #0f0;
}
.close-bet {
position: absolute;
top: -14px;
right: -14px;
width: 34px;
height: 34px;
padding: 0;
background: #f00;
color: #fff;
border-radius: 50%;
box-shadow: 0 0 8px #f00;
}
#bet-range {
width: 100%;
accent-color: #0f0;
}
.range-labels {
justify-content: space-between;
color: #fff;
margin-bottom: 12px;
}
.bet-amount {
justify-content: center;
gap: 12px;
color: #fff;
margin-bottom: 12px;
}
.bet-amount span {
min-width: 90px;
border: 1px solid #0f0;
padding: 8px 12px;
background: #111;
}
.bet-amount button {
width: 34px;
height: 34px;
padding: 0;
}
.confirm-bet {
padding: 8px 22px;
}
@media (max-width: 700px) {
.poker-table {
padding: 14px;
grid-template-rows: auto 1fr auto 1.2fr;
}
.table-header {
grid-template-columns: 1fr;
gap: 14px;
justify-items: center;
}
.round-panel,
.leave-table {
grid-column: 1;
justify-self: center;
}
.round-panel {
font-size: 16px;
padding: 12px 16px;
}
.card {
width: 58px;
height: 88px;
font-size: 18px;
}
.actions {
flex-wrap: wrap;
justify-content: center;
}
}
.poker-table { gap: 24px; }
.turn-panel { min-width: 0; width: min(460px, 100%); }
.community-area, .player-area { max-width: 100%; min-width: 0; }
.card-row { flex-wrap: wrap; justify-content: center; }
.bet-modal { z-index: 10; padding: 24px; }
.bet-panel { max-width: 100%; }
.player-status, .round-panel { overflow-wrap: anywhere; }
@media (max-width: 700px) {
.card-row { gap: 6px; }
.card-row .card { width: 48px; height: 74px; }
.showdown-panel { position: static; width: 100%; max-height: none; }
.round-panel { padding: 12px 8px; font-size: 14px; }
.divider { margin: 0 4px; }
}