Files
GameList/wwwroot/styles.css

348 lines
6.7 KiB
CSS

:root {
font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
background: radial-gradient(circle at 20% 20%, #0f172a, #050816);
color: #e5e7eb;
}
body {
margin: 0;
padding: 20px;
}
.status-bar {
display: block;
align-items: center;
background: rgba(15, 23, 42, 0.8);
border: 1px solid #1f2937;
border-radius: 10px;
box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #22c55e;
box-shadow: 0 0 10px #22c55e;
}
.counts {
color: #9ca3af;
font-size: 13px;
margin-left: 12px;
}
.phase-bar {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
}
.name-bar {
display: flex;
gap: 10px;
padding: 10px 12px;
align-items: center;
}
.name-bar input { width: 180px; }
.name-bar .hint { margin: 0; }
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
margin-top: 16px;
}
.card {
background: rgba(17, 24, 39, 0.9);
border: 1px solid #1f2937;
border-radius: 12px;
padding: 16px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.card h2 {
margin-top: 0;
margin-bottom: 8px;
}
.split {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: flex-start;
flex-wrap: wrap;
}
.stack {
display: flex;
flex-direction: column;
gap: 8px;
}
.stack.horizontal {
flex-direction: row;
flex-wrap: wrap;
}
input, textarea, select, button {
font: inherit;
border-radius: 8px;
border: 1px solid #374151;
background: #0f172a;
color: #e5e7eb;
padding: 10px 12px;
min-width: 0;
}
textarea { min-height: 80px; resize: vertical; }
button {
cursor: pointer;
background: #2563eb;
border-color: #1d4ed8;
font-weight: 600;
}
button:hover { background: #1d4ed8; }
button.danger {
background: #dc2626;
border-color: #b91c1c;
}
button.ghost {
background: transparent;
border-color: #374151;
}
.label { color: #9ca3af; font-size: 12px; }
.hint { color: #9ca3af; font-size: 12px; margin: 8px 0 0; }
.hint.warning { color: #f59e0b; }
.disabled-form { opacity: 0.5; pointer-events: none; }
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 12px;
margin-top: 12px;
}
.game-card {
background: #0b1224;
border: 1px solid #1f2937;
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 220px;
}
.subcard {
margin-top: 16px;
}
.card-visual {
height: 200px;
background: linear-gradient(135deg, #1d4ed8, #22c55e);
background-size: cover;
background-position: center;
cursor: pointer;
border: none;
width: 100%;
display: block;
padding: 0;
}
.card-body {
padding: 12px;
display: flex;
flex-direction: column;
gap: 6px;
flex: 1;
}
.card-title-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.card-title-row h3 { margin: 0; font-size: 18px; }
.title-meta { display: flex; align-items: center; gap: 8px; }
.muted { color: #9ca3af; margin: 0; }
.link { color: #93c5fd; text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.link.compact { font-size: 14px; }
.chip {
background: #1f2937;
color: #e5e7eb;
padding: 4px 8px;
border-radius: 999px;
font-size: 12px;
}
.chip.danger-chip {
background: #dc2626;
border: 1px solid #b91c1c;
}
.vote-controls { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.score { font-weight: 700; }
.results-grid .game-card { border-color: #2563eb44; }
/* Slider */
input[type="range"].full-slider {
-webkit-appearance: none;
width: 100%;
height: 14px;
border-radius: 999px;
background: linear-gradient(90deg, #1d4ed8, #22c55e);
outline: none;
box-shadow: inset 0 0 0 1px #1f2937, 0 4px 12px rgba(0,0,0,0.25);
}
input[type="range"].full-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 22px;
height: 22px;
border-radius: 50%;
background: #e5e7eb;
border: 2px solid #0f172a;
box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
input[type="range"].full-slider::-moz-range-thumb {
width: 22px;
height: 22px;
border-radius: 50%;
background: #e5e7eb;
border: 2px solid #0f172a;
box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
input[type="range"].full-slider::-moz-range-track {
height: 14px;
border-radius: 999px;
background: linear-gradient(90deg, #1d4ed8, #22c55e);
border: 1px solid #1f2937;
}
.score { font-weight: 700; min-width: 36px; text-align: center; }
.hidden { display: none !important; }
.toast {
position: fixed;
bottom: 16px;
right: 16px;
background: #2563eb;
color: white;
padding: 10px 14px;
border-radius: 8px;
box-shadow: 0 10px 24px rgba(0,0,0,0.35);
max-width: 320px;
}
.toast.error { background: #dc2626; }
.admin-toggle {
position: fixed;
bottom: 18px;
right: 18px;
width: 44px;
height: 44px;
border-radius: 50%;
border: 1px solid #1f2937;
background: #0f172a;
color: #9ca3af;
font-weight: 700;
box-shadow: 0 8px 20px rgba(0,0,0,0.35);
z-index: 30;
}
.admin-panel {
position: fixed;
bottom: 70px;
right: 18px;
width: 320px;
z-index: 40;
display: flex;
flex-direction: column;
gap: 10px;
}
.lightbox {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.75);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
}
.lightbox-content {
position: relative;
max-width: 90vw;
max-height: 90vh;
background: #0f172a;
padding: 12px;
border-radius: 12px;
box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.lightbox-content img {
max-width: 100%;
max-height: 80vh;
display: block;
border-radius: 8px;
}
.lightbox-close {
position: absolute;
top: 8px;
right: 8px;
background: #111827;
color: #e5e7eb;
border: 1px solid #1f2937;
border-radius: 999px;
width: 32px;
height: 32px;
font-size: 16px;
padding: 0;
cursor: pointer;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.results-table {
width: 100%;
border-collapse: collapse;
}
.results-table th, .results-table td {
padding: 10px;
border-bottom: 1px solid #1f2937;
}
.results-table th { text-align: left; color: #9ca3af; font-size: 12px; letter-spacing: 0.3px; }
.results-table .game-cell { display: flex; gap: 10px; align-items: center; }
.results-table .thumb {
width: 72px;
height: 48px;
object-fit: cover;
border-radius: 6px;
border: 1px solid #1f2937;
cursor: pointer;
}
.results-table .game-meta { display: flex; flex-direction: column; gap: 2px; }
.results-table .title-line { font-weight: 700; }
.results-table .muted.small { font-size: 12px; color: #9ca3af; }
.thumb-open {
background: #111827;
border: 1px solid #1f2937;
color: #e5e7eb;
border-radius: 6px;
padding: 4px 8px;
cursor: pointer;
}