Files
buzzer-site/src/public/styles.css
KeshavAnandCode 83bd893d93 Update buzzer app to serve static files and handle WebSocket connections
Integrates static file serving for HTML, CSS, and JS, and sets up a WebSocket server for real-time communication.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f3ac8eb3-f610-4678-ab6e-ebf900098be4
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 182c9671-a459-4b94-a7eb-1c7a0cefe768
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d4b7863b-f7b2-425c-a9b5-ad7bd1885e9d/f3ac8eb3-f610-4678-ab6e-ebf900098be4/N1qS6qo
Replit-Helium-Checkpoint-Created: true
2026-03-25 21:07:18 +00:00

1643 lines
34 KiB
CSS

/* ── RESET ─────────────────────────────────────────── */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
html {
font-size: 17px;
scroll-behavior: smooth;
}
body {
font-family: 'JetBrains Mono', monospace;
background: #04080a;
color: #c8ffcc;
min-height: 100dvh;
overflow-x: hidden;
position: relative;
}
/* scanline overlay */
body::before {
content: '';
position: fixed;
inset: 0;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 255, 65, 0.013) 2px,
rgba(0, 255, 65, 0.013) 4px
);
pointer-events: none;
z-index: 9999;
}
/* subtle grid background */
body::after {
content: '';
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(0,255,65,0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,255,65,0.025) 1px, transparent 1px);
background-size: 40px 40px;
pointer-events: none;
z-index: 0;
}
::-webkit-scrollbar {
width: 4px;
}
::-webkit-scrollbar-track {
background: #04080a;
}
::-webkit-scrollbar-thumb {
background: #0f3020;
border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
background: #1a5030;
}
/* ── TOKENS ────────────────────────────────────────── */
:root {
--g: #00ff41;
--g2: #00cc34;
--g3: #006b1e;
--gdark: #001a09;
--gbright: #4dff7a;
--bg: #04080a;
--bg2: #070e0a;
--bg3: #0b1410;
--panel: #080f0b;
--panel2: #0c1812;
--border: #0f2a18;
--border2: #1a4a28;
--text: #c8ffcc;
--dim: #3a7a48;
--mid: #6abf7a;
--red: #ff4455;
--yellow: #ffe141;
--cyan: #41ffe4;
--r: 6px;
--r2: 10px;
--glow-sm: 0 0 8px rgba(0,255,65,0.3);
--glow-md: 0 0 20px rgba(0,255,65,0.25), 0 0 60px rgba(0,255,65,0.08);
--glow-lg: 0 0 40px rgba(0,255,65,0.35), 0 0 100px rgba(0,255,65,0.12);
--shadow-panel: 0 4px 24px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4);
--shadow-card: 0 8px 32px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.4);
}
/* ── UTILS ─────────────────────────────────────────── */
.glow {
text-shadow: 0 0 16px var(--g), 0 0 40px rgba(0,255,65,.35), 0 0 80px rgba(0,255,65,.12);
}
.glow-red {
text-shadow: 0 0 14px var(--red), 0 0 35px rgba(255,68,85,.3);
}
.glow-yellow {
text-shadow: 0 0 14px var(--yellow), 0 0 35px rgba(255,225,65,.3);
}
/* ── LAYOUT ────────────────────────────────────────── */
#app {
min-height: 100dvh;
display: flex;
flex-direction: column;
position: relative;
z-index: 1;
}
/* ── HEADER ────────────────────────────────────────── */
header {
display: flex;
align-items: center;
gap: 16px;
padding: 0 28px;
height: 62px;
min-height: 62px;
background: rgba(7,14,10,0.97);
border-bottom: 1px solid var(--border2);
position: sticky;
top: 0;
z-index: 200;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 1px 0 rgba(0,255,65,0.06), 0 4px 16px rgba(0,0,0,0.5);
}
.logo-wrap {
display: flex;
flex-direction: column;
gap: 1px;
}
.logo {
font-size: 22px;
font-weight: 800;
letter-spacing: 8px;
color: var(--g);
text-shadow: 0 0 12px var(--g), 0 0 30px rgba(0,255,65,.25);
line-height: 1;
}
.logo-sub {
font-size: 9px;
color: var(--dim);
letter-spacing: 3px;
}
.hdr-r {
margin-left: auto;
display: flex;
align-items: center;
gap: 16px;
}
.room-chip {
font-size: 12px;
letter-spacing: 3px;
color: var(--g2);
background: rgba(0,255,65,0.06);
border: 1px solid rgba(0,255,65,0.2);
padding: 4px 12px;
border-radius: 4px;
display: none;
}
.conn-pill {
display: flex;
align-items: center;
gap: 7px;
font-size: 11px;
color: var(--dim);
letter-spacing: 1.5px;
background: var(--bg3);
border: 1px solid var(--border);
padding: 5px 12px;
border-radius: 20px;
}
.conn-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--red);
flex-shrink: 0;
transition: background .3s, box-shadow .3s;
}
.conn-dot.on {
background: var(--g);
box-shadow: 0 0 8px var(--g), 0 0 16px rgba(0,255,65,.5);
animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
0%, 100% { box-shadow: 0 0 6px var(--g), 0 0 12px rgba(0,255,65,.4); }
50% { box-shadow: 0 0 10px var(--g), 0 0 22px rgba(0,255,65,.6); }
}
/* ── SCREENS ───────────────────────────────────────── */
.scr {
display: none;
flex: 1;
flex-direction: column;
opacity: 0;
}
.scr.on {
display: flex;
opacity: 1;
}
/* ── LANDING ───────────────────────────────────────── */
#s-land {
align-items: center;
justify-content: center;
padding: 60px 24px;
gap: 48px;
}
.hero {
text-align: center;
position: relative;
}
.hero-decoration {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 320px;
height: 320px;
border-radius: 50%;
border: 1px solid rgba(0,255,65,0.06);
pointer-events: none;
}
.hero-decoration::before {
content: '';
position: absolute;
inset: 20px;
border-radius: 50%;
border: 1px solid rgba(0,255,65,0.04);
}
.hero h1 {
font-size: clamp(64px, 15vw, 120px);
font-weight: 800;
letter-spacing: 20px;
color: var(--g);
line-height: 1;
text-shadow: 0 0 20px var(--g), 0 0 50px rgba(0,255,65,.4), 0 0 120px rgba(0,255,65,.15);
position: relative;
}
.hero p {
font-size: 11px;
color: var(--dim);
letter-spacing: 5px;
margin-top: 18px;
position: relative;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 12px;
padding: 5px 14px;
border: 1px solid var(--border2);
border-radius: 20px;
font-size: 10px;
letter-spacing: 2px;
color: var(--dim);
}
.hero-badge-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--g);
box-shadow: 0 0 6px var(--g);
animation: dot-pulse 2s ease-in-out infinite;
}
.land-cards {
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
width: 100%;
max-width: 800px;
}
.land-card {
background: linear-gradient(135deg, var(--panel) 0%, rgba(8,20,14,0.9) 100%);
border: 1px solid var(--border2);
border-radius: var(--r2);
padding: 36px 32px;
flex: 1;
min-width: 300px;
max-width: 380px;
display: flex;
flex-direction: column;
gap: 20px;
transition: border-color .25s, box-shadow .25s, transform .25s;
box-shadow: var(--shadow-card);
position: relative;
overflow: hidden;
}
.land-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(0,255,65,0.3), transparent);
opacity: 0;
transition: opacity .25s;
}
.land-card:hover {
border-color: rgba(0,255,65,0.25);
box-shadow: var(--shadow-card), 0 0 30px rgba(0,255,65,0.08);
transform: translateY(-3px);
}
.land-card:hover::before {
opacity: 1;
}
.land-card-icon {
width: 44px;
height: 44px;
border-radius: 8px;
background: rgba(0,255,65,0.08);
border: 1px solid rgba(0,255,65,0.15);
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
color: var(--g);
}
.land-card h2 {
font-size: 13px;
letter-spacing: 3px;
color: var(--g);
margin-bottom: -6px;
}
.land-card p {
font-size: 13px;
color: var(--dim);
line-height: 1.8;
}
.rejoin-bar {
font-size: 12px;
color: var(--dim);
margin-top: -16px;
}
.rejoin-bar a {
color: var(--g2);
text-decoration: none;
letter-spacing: 1px;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
border: 1px solid var(--border2);
border-radius: 6px;
transition: all .2s;
}
.rejoin-bar a:hover {
color: var(--g);
border-color: rgba(0,255,65,0.3);
background: rgba(0,255,65,0.04);
}
/* ── SETUP ─────────────────────────────────────────── */
#s-setup {
align-items: center;
overflow-y: auto;
padding: 36px 24px;
}
.setup-wrap {
width: 100%;
max-width: 660px;
display: flex;
flex-direction: column;
gap: 24px;
}
.setup-header {
display: flex;
flex-direction: column;
gap: 6px;
}
.setup-title {
font-size: 14px;
letter-spacing: 4px;
color: var(--g);
margin-bottom: 2px;
}
.setup-sub {
font-size: 12px;
color: var(--dim);
letter-spacing: 1px;
line-height: 1.6;
}
/* ── FORM ATOMS ────────────────────────────────────── */
.field {
display: flex;
flex-direction: column;
gap: 9px;
}
label,
.lbl {
font-size: 11px;
letter-spacing: 2px;
color: var(--dim);
text-transform: uppercase;
}
input[type=text],
input[type=number],
select {
background: var(--bg3);
border: 1px solid var(--border2);
color: var(--text);
font-family: 'JetBrains Mono', monospace;
font-size: 16px;
padding: 13px 16px;
border-radius: var(--r);
width: 100%;
outline: none;
transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus,
select:focus {
border-color: var(--g2);
box-shadow: 0 0 0 2px rgba(0,204,52,0.12), 0 0 10px rgba(0,204,52,0.1);
background: rgba(0,255,65,0.02);
}
input::placeholder {
color: var(--dim);
font-size: 14px;
opacity: 0.7;
}
select option {
background: var(--bg3);
}
/* seg */
.seg {
display: flex;
border: 1px solid var(--border2);
border-radius: var(--r);
overflow: hidden;
background: var(--bg3);
}
.seg-opt {
flex: 1;
padding: 12px 12px;
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
letter-spacing: 2px;
text-align: center;
cursor: pointer;
color: var(--dim);
background: transparent;
border: none;
transition: all .2s;
}
.seg-opt.active {
background: rgba(0,255,65,0.1);
color: var(--g);
box-shadow: inset 0 0 12px rgba(0,255,65,0.05);
}
.seg-opt:hover:not(.active) {
color: var(--mid);
background: rgba(255,255,255,0.02);
}
/* toggle */
.tog-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 0;
border-bottom: 1px solid var(--border);
gap: 16px;
}
.tog-row:last-child {
border-bottom: none;
}
.tog-row .lbl {
font-size: 13px;
color: var(--text);
letter-spacing: 0.5px;
line-height: 1.4;
text-transform: none;
}
.lbl-sub {
font-size: 11px;
color: var(--dim);
margin-top: 3px;
letter-spacing: 0;
text-transform: none;
font-weight: 400;
}
.tog {
position: relative;
width: 46px;
height: 26px;
flex-shrink: 0;
}
.tog input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.tog-track {
position: absolute;
inset: 0;
background: var(--bg3);
border: 1px solid var(--border2);
border-radius: 13px;
cursor: pointer;
transition: background .2s, border-color .2s, box-shadow .2s;
}
.tog input:checked ~ .tog-track {
background: rgba(0,255,65,0.12);
border-color: var(--g2);
box-shadow: 0 0 8px rgba(0,204,52,0.2);
}
.tog-track::after {
content: '';
position: absolute;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--dim);
top: 3px;
left: 3px;
transition: all .2s cubic-bezier(0.4,0,0.2,1);
box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.tog input:checked ~ .tog-track::after {
background: var(--g);
left: 23px;
box-shadow: 0 1px 4px rgba(0,0,0,0.4), 0 0 8px rgba(0,255,65,0.5);
}
/* ── BUTTONS ───────────────────────────────────────── */
.btn {
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
letter-spacing: 2.5px;
padding: 13px 24px;
border: 1px solid;
border-radius: var(--r);
cursor: pointer;
transition: all .18s cubic-bezier(0.4,0,0.2,1);
text-transform: uppercase;
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
position: relative;
overflow: hidden;
}
.btn::after {
content: '';
position: absolute;
inset: 0;
background: rgba(255,255,255,0);
transition: background .15s;
}
.btn:active::after {
background: rgba(255,255,255,0.05);
}
.btn-g {
border-color: var(--g);
color: var(--g);
background: rgba(0,255,65,0.04);
}
.btn-g:hover {
background: rgba(0,255,65,0.12);
border-color: var(--gbright);
box-shadow: 0 0 16px rgba(0,255,65,0.2);
color: var(--gbright);
}
.btn-g:active {
background: rgba(0,255,65,0.18);
transform: scale(0.98);
}
.btn-ghost {
border-color: var(--border2);
color: var(--dim);
background: transparent;
}
.btn-ghost:hover {
border-color: var(--mid);
color: var(--text);
background: rgba(255,255,255,0.03);
}
.btn-ghost:active {
transform: scale(0.98);
}
.btn-red {
border-color: rgba(255,68,85,0.6);
color: var(--red);
background: transparent;
}
.btn-red:hover {
background: rgba(255,68,85,0.1);
border-color: var(--red);
box-shadow: 0 0 14px rgba(255,68,85,0.2);
}
.btn-red:active {
transform: scale(0.98);
}
.btn-yellow {
border-color: rgba(255,225,65,0.6);
color: var(--yellow);
background: transparent;
}
.btn-yellow:hover {
background: rgba(255,225,65,0.1);
border-color: var(--yellow);
box-shadow: 0 0 14px rgba(255,225,65,0.2);
}
.btn-yellow:active {
transform: scale(0.98);
}
.btn-sm {
padding: 9px 15px;
font-size: 11px;
letter-spacing: 1.5px;
}
.btn-full {
width: 100%;
}
.btn:disabled {
opacity: .35;
cursor: not-allowed;
pointer-events: none;
}
/* ── PANEL ─────────────────────────────────────────── */
.panel {
background: linear-gradient(135deg, var(--panel) 0%, var(--panel2) 100%);
border: 1px solid var(--border2);
border-radius: var(--r2);
padding: 26px;
box-shadow: var(--shadow-panel);
position: relative;
}
.panel::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent 0%, rgba(0,255,65,0.15) 50%, transparent 100%);
border-radius: var(--r2) var(--r2) 0 0;
}
.panel-title {
font-size: 10px;
letter-spacing: 4px;
color: var(--g);
margin-bottom: 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.panel-title::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(90deg, var(--border2), transparent);
margin-left: 8px;
}
.panel-title:has(.tag) ::after {
display: none;
}
/* ── TAG ───────────────────────────────────────────── */
.tag {
display: inline-block;
padding: 3px 10px;
font-size: 10px;
letter-spacing: 1.5px;
border: 1px solid;
border-radius: 3px;
font-family: 'JetBrains Mono', monospace;
}
.tag-g {
border-color: rgba(0,204,52,0.4);
color: var(--g2);
background: rgba(0,204,52,0.06);
}
.tag-red {
border-color: rgba(255,68,85,0.4);
color: var(--red);
background: rgba(255,68,85,0.06);
}
.tag-y {
border-color: rgba(255,225,65,0.4);
color: var(--yellow);
background: rgba(255,225,65,0.06);
}
.tag-dim {
border-color: var(--border2);
color: var(--dim);
}
/* ══════════════════════════════════════════════════════
MOD LAYOUT
══════════════════════════════════════════════════════ */
#s-mod {
flex-direction: row;
overflow: hidden;
height: calc(100dvh - 62px);
}
.mod-side {
width: 292px;
min-width: 292px;
background: linear-gradient(180deg, var(--bg2) 0%, #060c09 100%);
border-right: 1px solid var(--border2);
display: flex;
flex-direction: column;
overflow-y: auto;
}
.mod-body {
flex: 1;
overflow-y: auto;
padding: 24px;
display: flex;
flex-direction: column;
gap: 20px;
}
.side-sec {
padding: 18px 20px;
border-bottom: 1px solid var(--border);
position: relative;
}
.side-label {
font-size: 9px;
letter-spacing: 4px;
color: var(--dim);
margin-bottom: 12px;
text-transform: uppercase;
}
.side-hint {
font-size: 10px;
color: var(--dim);
letter-spacing: 1px;
}
.side-room-code {
font-size: 30px;
font-weight: 700;
letter-spacing: 8px;
color: var(--g);
line-height: 1;
text-shadow: 0 0 16px var(--g), 0 0 40px rgba(0,255,65,.25);
}
.side-btn-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.side-status {
font-size: 11px;
color: var(--dim);
line-height: 2;
letter-spacing: 0.5px;
}
/* ── TIMER BLOCK ───────────────────────────────────── */
.timer-block {
display: flex;
flex-direction: column;
gap: 12px;
}
.timer-digits {
font-size: 52px;
font-weight: 700;
letter-spacing: 3px;
color: var(--g);
line-height: 1;
font-variant-numeric: tabular-nums;
transition: color .3s, text-shadow .3s;
text-shadow: 0 0 16px rgba(0,255,65,.4);
}
.timer-digits.warn {
color: var(--yellow);
text-shadow: 0 0 16px rgba(255,225,65,.5);
}
.timer-digitsdanger {
color: var(--red);
text-shadow: 0 0 16px rgba(255,68,85,.55);
animation: tblink .5s step-end infinite;
}
.timer-digits.danger {
color: var(--red);
text-shadow: 0 0 16px rgba(255,68,85,.55);
animation: tblink .5s step-end infinite;
}
@keyframes tblink {
50% { opacity: .25; }
}
.timer-controls {
display: flex;
gap: 8px;
}
.timer-controls .btn {
flex: 1;
}
.timer-set-row {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg3);
border: 1px solid var(--border2);
border-radius: var(--r);
padding: 7px 12px;
}
.timer-set-row input {
width: 60px;
padding: 2px 4px;
font-size: 15px;
background: transparent;
border: none;
text-align: center;
color: var(--text);
}
.timer-set-row input:focus {
outline: none;
}
/* ── TABS ──────────────────────────────────────────── */
.tab-bar {
display: flex;
border-bottom: 1px solid var(--border2);
gap: 0;
}
.tab {
padding: 13px 20px;
font-size: 11px;
letter-spacing: 2.5px;
color: var(--dim);
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all .18s;
position: relative;
}
.tab:hover {
color: var(--mid);
}
.tab.on {
color: var(--g);
border-bottom-color: var(--g);
}
/* ── BUZZ LIST ─────────────────────────────────────── */
.buzz-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.bz-entry {
display: flex;
align-items: center;
gap: 16px;
padding: 15px 18px;
background: var(--bg3);
border: 1px solid var(--border2);
border-radius: var(--r);
transition: border-color .2s;
position: relative;
overflow: hidden;
}
.bz-entry::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 3px;
background: var(--g2);
opacity: 0.5;
border-radius: var(--r) 0 0 var(--r);
}
.bz-entry:first-child::before {
background: var(--yellow);
opacity: 1;
box-shadow: 0 0 8px rgba(255,225,65,0.4);
}
.bz-rank {
font-size: 24px;
font-weight: 700;
color: var(--g2);
width: 32px;
text-align: center;
flex-shrink: 0;
line-height: 1;
}
.bz-rank.first {
color: var(--yellow);
text-shadow: 0 0 10px rgba(255,225,65,.6);
}
.bz-info {
flex: 1;
min-width: 0;
}
.bz-name {
font-size: 17px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bz-team {
font-size: 12px;
margin-top: 3px;
letter-spacing: 0.5px;
}
.bz-ms {
font-size: 11px;
color: var(--dim);
margin-top: 3px;
}
.bz-kick {
flex-shrink: 0;
}
/* ── PLAYERS ───────────────────────────────────────── */
.player-list {
display: flex;
flex-direction: column;
}
.pl-row {
display: flex;
align-items: center;
gap: 12px;
padding: 13px 0;
border-bottom: 1px solid var(--border);
transition: opacity .2s;
}
.pl-row:last-child {
border-bottom: none;
}
.pl-row.offline {
opacity: .4;
}
.pl-info {
flex: 1;
min-width: 0;
}
.pl-name {
font-size: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pl-meta {
font-size: 11px;
color: var(--dim);
margin-top: 4px;
}
.pl-actions {
display: flex;
gap: 6px;
flex-shrink: 0;
}
/* ── TEAM GRID (mod) ───────────────────────────────── */
.team-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 12px;
}
.team-card {
background: var(--bg3);
border: 1px solid;
border-radius: var(--r);
padding: 18px 16px;
text-align: center;
transition: box-shadow .2s;
}
.team-card:hover {
box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.team-card .tc-n {
font-size: 11px;
letter-spacing: 2px;
margin-bottom: 10px;
text-transform: uppercase;
}
.team-card .tc-c {
font-size: 30px;
font-weight: 700;
line-height: 1;
}
.team-card .tc-m {
font-size: 11px;
color: var(--dim);
margin-top: 8px;
line-height: 1.7;
}
/* ── SETTINGS ──────────────────────────────────────── */
.setting-row {
padding: 13px 0;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.setting-row:last-child {
border-bottom: none;
}
.sl {
font-size: 14px;
letter-spacing: 0.3px;
}
.sd {
font-size: 11px;
color: var(--dim);
margin-top: 4px;
letter-spacing: 0;
}
/* ══════════════════════════════════════════════════════
PLAYER SCREEN
══════════════════════════════════════════════════════ */
#s-player {
align-items: center;
padding: 32px 24px 44px;
gap: 32px;
overflow-y: auto;
}
.p-room {
text-align: center;
}
.p-room-code {
font-size: 38px;
font-weight: 700;
letter-spacing: 10px;
color: var(--g);
text-shadow: 0 0 18px var(--g), 0 0 45px rgba(0,255,65,.25);
}
.p-room-lbl {
font-size: 9px;
letter-spacing: 3px;
color: var(--dim);
margin-bottom: 6px;
text-transform: uppercase;
}
.p-name-lbl {
font-size: 15px;
color: var(--mid);
margin-top: 10px;
letter-spacing: 0.5px;
}
/* player timer */
.p-timer {
font-size: 64px;
font-weight: 700;
letter-spacing: 3px;
color: var(--g);
text-align: center;
font-variant-numeric: tabular-nums;
text-shadow: 0 0 20px rgba(0,255,65,.4);
transition: color .3s, text-shadow .3s;
}
.p-timer.warn {
color: var(--yellow);
text-shadow: 0 0 20px rgba(255,225,65,.45);
}
.p-timer.danger {
color: var(--red);
text-shadow: 0 0 20px rgba(255,68,85,.5);
animation: tblink .5s step-end infinite;
}
.p-timer.hidden {
display: none;
}
/* team picker */
.team-picker {
width: 100%;
max-width: 540px;
}
.team-picker-title {
font-size: 10px;
letter-spacing: 4px;
color: var(--dim);
margin-bottom: 16px;
text-align: center;
}
.team-picker-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 10px;
}
.team-btn {
padding: 18px 14px;
border: 1px solid var(--border2);
border-radius: var(--r);
background: var(--panel);
color: var(--text);
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
letter-spacing: 1px;
cursor: pointer;
text-align: center;
transition: all .2s;
box-shadow: var(--shadow-panel);
}
.team-btn:hover {
border-color: var(--mid);
background: var(--panel2);
transform: translateY(-2px);
}
.team-btn:active {
transform: scale(0.97);
}
.team-btn.mine {
border-width: 2px;
font-weight: 700;
}
.tb-count {
font-size: 11px;
color: var(--dim);
margin-top: 6px;
}
/* ── BUZZ BUTTON ───────────────────────────────────── */
.buzz-wrap {
display: flex;
flex-direction: column;
align-items: center;
gap: 22px;
position: relative;
}
/* ripple container */
.buzz-ripple {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
pointer-events: none;
display: flex;
align-items: center;
justify-content: center;
}
.buzz-ring {
position: absolute;
border-radius: 50%;
border: 1px solid rgba(0,255,65,0.3);
animation: ring-expand 1.8s ease-out infinite;
pointer-events: none;
}
.buzz-ring:nth-child(1) { animation-delay: 0s; }
.buzz-ring:nth-child(2) { animation-delay: 0.6s; }
.buzz-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring-expand {
0% {
width: 280px; height: 280px;
opacity: 0.5;
}
100% {
width: 480px; height: 480px;
opacity: 0;
}
}
#buzz-btn {
width: clamp(240px, 56vw, 300px);
height: clamp(240px, 56vw, 300px);
border-radius: 50%;
border: 2px solid var(--border2);
background: var(--panel);
color: var(--dim);
font-family: 'JetBrains Mono', monospace;
font-size: clamp(18px, 4vw, 24px);
font-weight: 700;
letter-spacing: 5px;
cursor: pointer;
transition: all .15s cubic-bezier(0.4,0,0.2,1);
box-shadow:
0 0 0 1px rgba(0,255,65,0.04),
0 8px 40px rgba(0,0,0,0.6),
inset 0 1px 0 rgba(255,255,255,0.03);
user-select: none;
-webkit-user-select: none;
position: relative;
overflow: hidden;
}
#buzz-btn::before {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.04) 0%, transparent 60%);
pointer-events: none;
}
#buzz-btn::after {
content: '';
position: absolute;
inset: 8px;
border-radius: 50%;
border: 1px solid rgba(0,255,65,0.05);
pointer-events: none;
}
#buzz-btn:active:not(:disabled) {
transform: scale(.94);
box-shadow:
0 0 0 1px rgba(0,255,65,0.06),
0 4px 24px rgba(0,0,0,0.7),
inset 0 0 30px rgba(0,0,0,0.3);
}
#buzz-btn:disabled {
cursor: not-allowed;
}
#buzz-btn.s-open {
border-color: var(--g);
border-width: 2px;
color: var(--g);
background: radial-gradient(circle, rgba(0,255,65,0.08) 0%, var(--panel) 70%);
box-shadow:
0 0 40px rgba(0,255,65,.2),
0 0 80px rgba(0,255,65,.08),
0 8px 40px rgba(0,0,0,0.5),
inset 0 0 30px rgba(0,255,65,.04);
}
#buzz-btn.s-open::after {
border-color: rgba(0,255,65,0.1);
animation: inner-ring 2s ease-in-out infinite;
}
@keyframes inner-ring {
0%, 100% { opacity: 0.5; transform: scale(1); }
50% { opacity: 1; transform: scale(0.97); }
}
#buzz-btn.s-first {
border-color: var(--yellow);
border-width: 3px;
color: var(--yellow);
background: radial-gradient(circle, rgba(255,225,65,0.12) 0%, var(--panel) 70%);
box-shadow:
0 0 50px rgba(255,225,65,.4),
0 0 100px rgba(255,225,65,.15),
0 8px 40px rgba(0,0,0,0.5);
animation: pulse-win .8s ease-in-out infinite alternate;
}
#buzz-btn.s-buzzed {
border-color: rgba(0,204,52,0.4);
color: var(--g2);
opacity: .6;
background: var(--panel);
}
#buzz-btn.s-locked {
border-color: rgba(255,68,85,0.4);
color: var(--red);
box-shadow:
0 0 24px rgba(255,68,85,.12),
0 8px 40px rgba(0,0,0,0.5);
}
#buzz-btn.s-closed {
border-color: var(--border2);
color: var(--dim);
background: var(--panel);
}
@keyframes pulse-win {
from {
box-shadow: 0 0 30px rgba(255,225,65,.3), 0 0 60px rgba(255,225,65,.1);
}
to {
box-shadow: 0 0 70px rgba(255,225,65,.65), 0 0 130px rgba(255,225,65,.2);
}
}
.buzz-status {
font-size: 12px;
letter-spacing: 3px;
color: var(--dim);
text-align: center;
min-height: 24px;
transition: color .3s;
text-transform: uppercase;
}
/* feed & roster */
.p-panel {
width: 100%;
max-width: 540px;
}
.p-panel-title {
font-size: 10px;
letter-spacing: 4px;
color: var(--dim);
margin-bottom: 14px;
text-transform: uppercase;
}
.feed-entry {
padding: 12px 16px;
background: var(--bg2);
border: 1px solid var(--border2);
border-left: 3px solid var(--g);
margin-bottom: 8px;
font-size: 14px;
border-radius: 0 var(--r) var(--r) 0;
line-height: 1.5;
}
.feed-entry.first {
border-left-color: var(--yellow);
}
.roster-row {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 0;
border-bottom: 1px solid var(--border);
font-size: 14px;
}
.roster-row:last-child {
border-bottom: none;
}
.roster-me {
color: var(--g);
}
.roster-dot {
width: 9px;
height: 9px;
border-radius: 50%;
flex-shrink: 0;
}
/* ── MODALS ────────────────────────────────────────── */
.modal-bg {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,.85);
z-index: 900;
align-items: center;
justify-content: center;
padding: 24px;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.modal-bg.on {
display: flex;
}
.modal {
background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
border: 1px solid var(--g3);
border-radius: var(--r2);
padding: 36px 32px;
width: 100%;
max-width: 460px;
display: flex;
flex-direction: column;
gap: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(0,255,65,0.06);
position: relative;
}
.modal::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(0,255,65,0.3), transparent);
border-radius: var(--r2) var(--r2) 0 0;
}
.modal h2 {
font-size: 13px;
letter-spacing: 3px;
color: var(--g);
}
.modal-btns {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 4px;
}
/* ── TOAST ─────────────────────────────────────────── */
#toasts {
position: fixed;
top: 74px;
right: 18px;
z-index: 9999;
display: flex;
flex-direction: column;
gap: 10px;
pointer-events: none;
}
.toast {
padding: 12px 20px;
background: var(--bg2);
border: 1px solid var(--border2);
font-size: 12px;
letter-spacing: 1.5px;
border-radius: var(--r);
max-width: 320px;
backdrop-filter: blur(12px);
box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.toast.ok {
border-color: rgba(0,255,65,0.4);
color: var(--g);
background: rgba(0,20,8,0.95);
box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 12px rgba(0,255,65,0.1);
}
.toast.err {
border-color: rgba(255,68,85,0.4);
color: var(--red);
background: rgba(20,0,4,0.95);
}
.toast.warn {
border-color: rgba(255,225,65,0.4);
color: var(--yellow);
background: rgba(18,16,0,0.95);
}
/* ── EMPTY ─────────────────────────────────────────── */
.empty {
font-size: 12px;
color: var(--dim);
letter-spacing: 2px;
text-align: center;
padding: 32px;
text-transform: uppercase;
}
/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 680px) {
#s-mod {
flex-direction: column;
height: auto;
overflow: visible;
}
.mod-side {
width: 100%;
min-width: unset;
border-right: none;
border-bottom: 1px solid var(--border2);
}
.mod-body {
padding: 16px;
}
.timer-digits {
font-size: 42px;
}
.land-card {
min-width: 260px;
padding: 28px 24px;
}
#buzz-btn {
width: clamp(220px, 70vw, 280px);
height: clamp(220px, 70vw, 280px);
}
}
@media (max-width: 440px) {
header {
padding: 0 16px;
}
.logo {
font-size: 18px;
letter-spacing: 5px;
}
}