426 lines
12 KiB
CSS
426 lines
12 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: grid;
|
|
grid-template-columns: auto auto;
|
|
column-gap: 20px;
|
|
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: 14px 18px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.turn-kicker { grid-column: 1; color: #a8d8aa; font-size: 12px; letter-spacing: .08em; }
|
|
.turn-player { grid-column: 1; color: #fff; font-size: 24px; line-height: 1; text-shadow: 0 0 8px #0f0; }
|
|
.turn-timer { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: center; min-width: 92px; border-left: 1px solid rgba(0, 255, 0, .45); padding-left: 18px; }
|
|
.turn-countdown { color: #0f0; font-size: 38px; font-weight: 800; line-height: 1; text-shadow: 0 0 12px #0f0; }
|
|
.turn-seconds { color: #d8ffd8; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
|
|
.turn-progress { grid-column: 1 / -1; height: 5px; background: #153019; overflow: hidden; }
|
|
.turn-progress span { display: block; width: 0; height: 100%; background: #0f0; box-shadow: 0 0 10px #0f0; transition: width .25s linear, background .2s; }
|
|
.turn-panel.urgent { border-color: #ff394d; box-shadow: 0 0 14px #ff394d; }
|
|
.turn-panel.urgent .turn-countdown { color: #ff5263; text-shadow: 0 0 14px #ff394d; }
|
|
.turn-panel.urgent .turn-progress span { background: #ff394d; box-shadow: 0 0 10px #ff394d; }
|
|
|
|
.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;
|
|
}
|
|
|
|
.turn-queue li.next { border-color: #a8d8aa; color: #d8ffd8; }
|
|
|
|
.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;
|
|
}
|
|
|
|
.turn-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
|
|
.turn-kicker, .turn-player { grid-column: 1; }
|
|
.turn-timer { grid-column: 1; grid-row: auto; border-left: 0; border-top: 1px solid rgba(0, 255, 0, .45); padding: 10px 0 0; }
|
|
|
|
.card {
|
|
width: 58px;
|
|
height: 88px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.actions {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* Terminal table overhaul */
|
|
body { background:radial-gradient(ellipse at 50% 45%,#0e2a14 0,#060806 43%,#010201 100%); font-family:ui-monospace,SFMono-Regular,Consolas,monospace; color:#dfffff; }
|
|
.poker-table { width:min(1180px,100%); min-height:100vh; margin:auto; padding:18px 28px 24px; grid-template-rows:auto 1fr auto auto; gap:18px; }
|
|
.table-header { grid-template-columns:1fr auto 1fr; padding-bottom:14px; border-bottom:1px solid #215a2a; }.round-panel { border:0; border-left:3px solid #55f570; box-shadow:none; background:transparent; padding:6px 12px; color:#dfffff; font-size:15px; text-shadow:none; }.round-panel strong { color:#74ff89; }.divider { color:#367c40; }.leave-table { border:1px solid #467e4e; border-radius:0; background:transparent; box-shadow:none; color:#a3e9ac; padding:8px 12px; }.leave-table:hover { background:#102414; box-shadow:none; transform:none; }
|
|
.community-area { width:min(760px,100%); align-self:center; gap:14px; }.turn-panel { border:1px solid #3ce956; box-shadow:0 0 26px rgba(42,235,73,.18); background:#070d08; }.turn-queue li { border-color:#275f30; box-shadow:none; background:#080d08; color:#bfe6c3; }.turn-queue li.active { background:#56ed70; color:#041005; box-shadow:0 0 13px rgba(82,242,106,.5); }.turn-queue li.next { border-color:#8bcf94; }
|
|
.card-row { gap:10px; }.card { border-radius:0; border-color:#60ee78; background:#e9ffee; box-shadow:0 0 14px rgba(64,240,94,.28); }.card.placeholder { background:#071008; color:#63db74; box-shadow:none; }.actions { padding:12px; border-top:1px solid #215a2a; border-bottom:1px solid #215a2a; }.actions button,.confirm-bet { min-width:112px; border:1px solid #53ed6c; border-radius:0; background:#0b180d; color:#81fb93; box-shadow:none; font-family:inherit; }.actions button:hover,.confirm-bet:hover { background:#59ed70; color:#041005; box-shadow:0 0 16px rgba(82,242,106,.35); transform:translateY(-2px); }.actions button[data-action="fold"] { border-color:#a64d59; color:#ff8996; }.actions button[data-action="fold"]:hover { background:#601c26; color:#fff; box-shadow:0 0 16px rgba(255,65,87,.3); }
|
|
.player-area { width:min(760px,100%); padding:8px 0 0; border-top:1px solid #215a2a; }.hand { gap:13px; }.player-status { width:100%; gap:12px 22px; border:1px solid #286532; box-shadow:none; background:#070c08; color:#cfead2; padding:12px; font-size:12px; }.player-status span:first-child { color:#77fb8b; font-weight:700; }.spectator-note,.showdown-panel { border-color:#3de65b; border-radius:0; box-shadow:0 0 20px rgba(40,230,70,.18); background:#070c08; }.showdown-panel { right:28px; bottom:28px; }.bet-modal { background:rgba(0,0,0,.7); }.bet-panel { border-color:#4fec69; box-shadow:0 0 38px rgba(52,235,81,.32); background:#070b08; border-radius:0; }.close-bet { border-radius:0; }.bet-amount span { border-color:#4eeb68; background:#050805; }.bet-amount button { min-width:34px; }
|
|
@media (max-width:700px) { .poker-table { padding:14px; gap:14px; }.table-header { gap:10px; }.round-panel { border-left:0; border-bottom:2px solid #55f570; }.actions { width:100%; }.actions button { flex:1; min-width:90px; }.player-status { justify-content:flex-start; }.showdown-panel { right:14px; bottom:14px; } }
|
|
|
|
.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; }
|
|
}
|