680 lines
11 KiB
CSS
680 lines
11 KiB
CSS
:root {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
color: #f6f4ef;
|
|
background: #0d0f1c;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: radial-gradient(circle at top, #1f2a44, #0b0f1f 60%);
|
|
}
|
|
|
|
code {
|
|
font-family: 'Space Grotesk', sans-serif;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
padding: 2px 6px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.app {
|
|
min-height: 100vh;
|
|
padding: 32px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.app-header,
|
|
.app-main {
|
|
transition: filter 0.25s ease, opacity 0.25s ease;
|
|
}
|
|
|
|
.app.suspended .app-header,
|
|
.app.suspended .app-main {
|
|
filter: grayscale(1) brightness(0.55);
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.guess-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: grid;
|
|
place-items: center;
|
|
background: rgba(8, 12, 26, 0.35);
|
|
backdrop-filter: blur(2px) grayscale(0.15);
|
|
pointer-events: none;
|
|
z-index: 12;
|
|
}
|
|
|
|
.guess-overlay p {
|
|
margin: 0;
|
|
padding: 16px 24px;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
background: rgba(13, 17, 35, 0.88);
|
|
color: #ffffff;
|
|
font-family: 'Bebas Neue', sans-serif;
|
|
font-size: clamp(2.1rem, 4vw, 3.3rem);
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
text-align: center;
|
|
}
|
|
|
|
.app-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
gap: 24px;
|
|
}
|
|
|
|
.app-header h1 {
|
|
margin: 0;
|
|
font-family: 'Bebas Neue', sans-serif;
|
|
font-size: clamp(2.2rem, 2.5vw, 3rem);
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 8px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.2em;
|
|
font-size: 0.7rem;
|
|
color: #9fc4ff;
|
|
}
|
|
|
|
.selector-pill {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
padding: 12px 20px;
|
|
border-radius: 999px;
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.selector-pill .label {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.2em;
|
|
color: #9fc4ff;
|
|
}
|
|
|
|
.selector-pill .value {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.session-pill {
|
|
border-color: rgba(61, 214, 255, 0.5);
|
|
}
|
|
|
|
.app-main {
|
|
flex: 1;
|
|
}
|
|
|
|
.panel {
|
|
background: rgba(8, 12, 26, 0.75);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 24px;
|
|
padding: 32px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.panel h2 {
|
|
margin-top: 0;
|
|
font-family: 'Bebas Neue', sans-serif;
|
|
font-size: 2rem;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.hint {
|
|
margin-top: 0;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.session-box {
|
|
margin-top: 18px;
|
|
margin-bottom: 20px;
|
|
padding: 14px;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.session-box h3 {
|
|
margin: 0 0 6px;
|
|
}
|
|
|
|
.session-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.session-row .input {
|
|
max-width: 220px;
|
|
}
|
|
|
|
.session-meta {
|
|
margin: 12px 0 0;
|
|
display: flex;
|
|
gap: 14px;
|
|
flex-wrap: wrap;
|
|
color: rgba(255, 255, 255, 0.75);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.teams-grid,
|
|
.games-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 16px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.team-card,
|
|
.game-card,
|
|
.add-card {
|
|
border-radius: 18px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
padding: 18px;
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: inherit;
|
|
text-align: left;
|
|
}
|
|
|
|
.team-card.winner {
|
|
outline: 2px solid #fbd72b;
|
|
}
|
|
|
|
.team-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
background: rgba(0, 0, 0, 0.25);
|
|
color: inherit;
|
|
}
|
|
|
|
.gradient-preview {
|
|
height: 64px;
|
|
border-radius: 14px;
|
|
margin: 16px 0;
|
|
}
|
|
|
|
.color-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.color-row label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
input[type='color'] {
|
|
background: transparent;
|
|
border: none;
|
|
width: 100%;
|
|
height: 36px;
|
|
padding: 0;
|
|
}
|
|
|
|
.add-card {
|
|
display: grid;
|
|
place-items: center;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
min-height: 140px;
|
|
background: linear-gradient(135deg, rgba(61, 214, 255, 0.12), rgba(251, 215, 43, 0.12));
|
|
}
|
|
|
|
.add-card:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.game-card {
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.game-card:hover {
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
.actions {
|
|
margin-top: 24px;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
button {
|
|
font-family: inherit;
|
|
}
|
|
|
|
.primary {
|
|
background: linear-gradient(135deg, #3dd6ff, #fbd72b);
|
|
color: #0d0f1c;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 999px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ghost {
|
|
background: transparent;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
color: inherit;
|
|
padding: 10px 18px;
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ghost:disabled,
|
|
.primary:disabled,
|
|
.team-score-card:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.game-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(240px, 300px) 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
.scoreboard {
|
|
background: rgba(8, 12, 26, 0.8);
|
|
border-radius: 20px;
|
|
padding: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.scoreboard h2 {
|
|
margin-top: 0;
|
|
font-family: 'Bebas Neue', sans-serif;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.team-list {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.viewer-team-select {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.viewer-team-select label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.team-score-card {
|
|
width: 100%;
|
|
border: none;
|
|
padding: 14px;
|
|
border-radius: 16px;
|
|
color: #0d0f1c;
|
|
text-align: left;
|
|
position: relative;
|
|
}
|
|
|
|
.team-score-card.active {
|
|
outline: 2px solid #ffffff;
|
|
}
|
|
|
|
.team-score-card.viewerTeam {
|
|
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6) inset;
|
|
}
|
|
|
|
.team-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.team-score {
|
|
font-size: 1.4rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.award-tag {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.board {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.board-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
|
gap: 12px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.category-column {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.category-title {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 12px;
|
|
padding: 10px;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.tile {
|
|
background: #1d3b8b;
|
|
color: #fbd72b;
|
|
border: none;
|
|
padding: 18px;
|
|
border-radius: 12px;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
min-height: 72px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.tile.playing {
|
|
background: #fbd72b;
|
|
color: #0d0f1c;
|
|
}
|
|
|
|
.tile.paused {
|
|
background: #f58b2b;
|
|
color: #0d0f1c;
|
|
}
|
|
|
|
.tile.guessed {
|
|
background: #2bdc7b;
|
|
color: #0d0f1c;
|
|
}
|
|
|
|
.tile.won {
|
|
background: #2a2f3f;
|
|
color: #0d0f1c;
|
|
}
|
|
|
|
.tile.void {
|
|
background: #6b6f7b;
|
|
color: #0d0f1c;
|
|
}
|
|
|
|
.player-panel {
|
|
background: rgba(8, 12, 26, 0.75);
|
|
border-radius: 20px;
|
|
padding: 18px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
position: relative;
|
|
z-index: 20;
|
|
}
|
|
|
|
.player-header h3 {
|
|
margin: 0 0 6px;
|
|
}
|
|
|
|
.player-header p {
|
|
margin: 0;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.player-body {
|
|
margin-top: 12px;
|
|
display: grid;
|
|
place-items: center;
|
|
position: relative;
|
|
min-height: 620px;
|
|
color: #7df9ff;
|
|
}
|
|
|
|
.player-body.playing {
|
|
animation: planetShift 4s linear infinite;
|
|
}
|
|
|
|
.player-body.answer {
|
|
color: #2bdc7b;
|
|
}
|
|
|
|
.player-body.idle {
|
|
color: #000;
|
|
}
|
|
|
|
audio.hidden-audio {
|
|
display: none;
|
|
}
|
|
|
|
.pulse-orb {
|
|
width: 96px;
|
|
height: 96px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
transform: translate(-50%, -50%) scale(calc(1 + var(--pulse, 0) * 0.9));
|
|
box-shadow:
|
|
0 0 calc(22px + var(--pulse, 0) * 140px) rgba(251, 215, 43, 0.6),
|
|
0 0 calc(60px + var(--pulse, 0) * 240px) rgba(61, 214, 255, 0.45);
|
|
transition: transform 0.06s ease-out;
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
z-index: 2;
|
|
}
|
|
|
|
.pulse-orb.idle {
|
|
box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
|
|
transform: translate(-50%, -50%) scale(1);
|
|
}
|
|
|
|
.pulse-orb.active {
|
|
animation: pulseGlow 1.6s ease-in-out infinite;
|
|
}
|
|
|
|
.pulse-tentacles {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 100px;
|
|
height: 100px;
|
|
transform: translate(-50%, -50%) scale(calc(1 + var(--pulse, 0) * 0.9));
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.pulse-tentacles.playing {
|
|
animation: tentacleSpin 12s linear infinite;
|
|
}
|
|
|
|
.pulse-tentacles .tentacle {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
width: 16px;
|
|
height: calc(20px + var(--level, 0) * 100px);
|
|
background: linear-gradient(
|
|
to top,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
currentColor 45%,
|
|
currentColor 100%
|
|
);
|
|
border-radius: 999px;
|
|
filter: blur(calc(1.5px - var(--level, 0) * 0.5));
|
|
opacity: calc(0.25 + var(--level, 0) * 0.85);
|
|
transform-origin: 50% 100%;
|
|
transform:
|
|
translate(-50%, calc(-20px - var(--level, 0) * 100px))
|
|
rotate(calc(var(--index) * 30deg))
|
|
scaleX(calc(0.7 + var(--level, 0) * 0.5));
|
|
transition: height 0.08s ease-out, opacity 0.08s ease-out, transform 0.08s ease-out, filter 0.08s ease-out;
|
|
mix-blend-mode: screen;
|
|
color: currentColor;
|
|
}
|
|
|
|
.pulse-tentacles.playing {
|
|
color: currentColor;
|
|
}
|
|
|
|
|
|
@keyframes pulseGlow {
|
|
0%,
|
|
100% {
|
|
box-shadow: 0 0 24px rgba(61, 214, 255, 0.25);
|
|
}
|
|
50% {
|
|
box-shadow: 0 0 48px rgba(251, 215, 43, 0.35);
|
|
}
|
|
}
|
|
|
|
@keyframes planetShift {
|
|
0% {
|
|
color: #2ea8ff;
|
|
}
|
|
25% {
|
|
color: #fbd72b;
|
|
}
|
|
50% {
|
|
color: #ff4b4b;
|
|
}
|
|
75% {
|
|
color: #8a5bff;
|
|
}
|
|
100% {
|
|
color: #2ea8ff;
|
|
}
|
|
}
|
|
|
|
@keyframes tentacleSpin {
|
|
from {
|
|
transform: translate(-50%, -50%) scale(calc(1 + var(--pulse, 0) * 0.9)) rotate(0deg);
|
|
}
|
|
to {
|
|
transform: translate(-50%, -50%) scale(calc(1 + var(--pulse, 0) * 0.9)) rotate(360deg);
|
|
}
|
|
}
|
|
|
|
|
|
.player-empty {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.viewer-actions {
|
|
position: absolute;
|
|
left: 50%;
|
|
bottom: 20px;
|
|
transform: translateX(-50%);
|
|
z-index: 4;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.enable-audio {
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.viewer-guess {
|
|
font-size: 1rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.03em;
|
|
padding: 14px 28px;
|
|
background: linear-gradient(135deg, #ffce3a, #ff6a3a);
|
|
box-shadow: 0 12px 30px rgba(255, 106, 58, 0.35);
|
|
}
|
|
|
|
.viewer-guess:disabled {
|
|
background: linear-gradient(135deg, #8f8f8f, #666666);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.host-reveal {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
z-index: 4;
|
|
background: linear-gradient(135deg, #7df58f, #36bf62);
|
|
}
|
|
|
|
.end-panel {
|
|
text-align: center;
|
|
}
|
|
|
|
.winner-banner {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 12px 20px;
|
|
border-radius: 999px;
|
|
margin: 20px 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.score {
|
|
font-size: 1.6rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.empty-state {
|
|
margin-top: 20px;
|
|
padding: 18px;
|
|
border-radius: 16px;
|
|
border: 1px dashed rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.game-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.app-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.session-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.viewer-actions {
|
|
flex-direction: column;
|
|
width: calc(100% - 24px);
|
|
}
|
|
|
|
.viewer-actions .primary {
|
|
width: 100%;
|
|
}
|
|
}
|