372 lines
5.6 KiB
CSS
372 lines
5.6 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #f8f3e7;
|
|
--bg-alt: #f0e6d1;
|
|
--ink: #1a1a1a;
|
|
--accent: #ff7b54;
|
|
--accent-dark: #d95c38;
|
|
--muted: #5b5b5b;
|
|
--card: #fffaf0;
|
|
--shadow: 0 20px 45px rgba(26, 26, 26, 0.12);
|
|
}
|
|
|
|
html {
|
|
background-color: var(--bg);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
|
|
font-size: 16px;
|
|
color: var(--ink);
|
|
background-color: var(--bg);
|
|
background: radial-gradient(circle at top, #fff4dc, var(--bg));
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.app {
|
|
width: 100%;
|
|
}
|
|
|
|
.screen {
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
gap: 24px;
|
|
}
|
|
|
|
.screen > .card {
|
|
width: min(560px, 100%);
|
|
}
|
|
|
|
#round > .card,
|
|
#discussion > .card,
|
|
#done > .card {
|
|
min-height: 480px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
#setup {
|
|
justify-content: flex-start;
|
|
padding-top: 40px;
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
gap: 12px;
|
|
width: min(560px, 100%);
|
|
}
|
|
|
|
.hero__tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-self: start;
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
background: var(--accent);
|
|
color: #fffaf0;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
font-family: "Unbounded", "Trebuchet MS", sans-serif;
|
|
margin: 0;
|
|
line-height: 1.08;
|
|
}
|
|
|
|
h1 {
|
|
font-size: clamp(2.2rem, 5vw, 3.2rem);
|
|
}
|
|
|
|
h2 {
|
|
font-size: clamp(1.5rem, 3.5vw, 2rem);
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
line-height: 1.5;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.card {
|
|
background: var(--card);
|
|
border-radius: 24px;
|
|
padding: 24px;
|
|
box-shadow: var(--shadow);
|
|
border: 1px solid rgba(26, 26, 26, 0.08);
|
|
}
|
|
|
|
.input-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 12px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
input {
|
|
padding: 12px 14px;
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(26, 26, 26, 0.2);
|
|
font-size: 1rem;
|
|
background: #fff;
|
|
}
|
|
|
|
.btn {
|
|
border: none;
|
|
padding: 14px 20px;
|
|
border-radius: 999px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
background: var(--bg-alt);
|
|
color: var(--ink);
|
|
transition: box-shadow 0.2s ease;
|
|
font-family: "Space Grotesk", sans-serif;
|
|
min-width: 0;
|
|
min-height: 52px;
|
|
}
|
|
|
|
.btn:hover {
|
|
box-shadow: 0 10px 20px rgba(26, 26, 26, 0.15);
|
|
}
|
|
|
|
.btn--primary {
|
|
background: var(--accent);
|
|
color: #fffaf0;
|
|
}
|
|
|
|
.btn--ghost {
|
|
background: transparent;
|
|
border: 1px dashed rgba(26, 26, 26, 0.25);
|
|
}
|
|
|
|
.btn--big {
|
|
padding: 14px 20px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.player-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 16px 0 0;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.player-list li {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
border: 1px solid rgba(26, 26, 26, 0.08);
|
|
}
|
|
|
|
.player-list button {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--accent-dark);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.actions--end {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.round-header {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.hint {
|
|
margin-top: 12px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.round-count {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.pass-screen {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-top: 16px;
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.pass-screen .actions {
|
|
margin-top: auto;
|
|
}
|
|
|
|
.player-chip {
|
|
padding: 10px 20px;
|
|
border-radius: 999px;
|
|
background: var(--bg-alt);
|
|
font-weight: 600;
|
|
font-size: clamp(1.2rem, 3.8vw, 1.8rem);
|
|
text-align: center;
|
|
}
|
|
|
|
.player-chip--large {
|
|
font-size: clamp(1.8rem, 5vw, 2.8rem);
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.flip-card {
|
|
perspective: 600px;
|
|
width: min(320px, 80vw);
|
|
height: 180px;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.flip-card__inner {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
transition: transform 0.5s ease;
|
|
transform-style: preserve-3d;
|
|
}
|
|
|
|
.flip-card.flipped .flip-card__inner {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.flip-card--instant .flip-card__inner {
|
|
transition: none;
|
|
}
|
|
|
|
.flip-card__front,
|
|
.flip-card__back {
|
|
position: absolute;
|
|
inset: 0;
|
|
backface-visibility: hidden;
|
|
-webkit-backface-visibility: hidden;
|
|
border-radius: 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 32px;
|
|
background: linear-gradient(135deg, #fff4dc, #ffe2c0);
|
|
box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.08);
|
|
}
|
|
|
|
.flip-card__back {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.reveal-label {
|
|
font-size: 0.95rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.reveal-word {
|
|
font-family: "Unbounded", sans-serif;
|
|
font-size: clamp(1.8rem, 6vw, 3rem);
|
|
margin-top: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer {
|
|
padding: 16px 0 32px;
|
|
color: var(--muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.input-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.actions {
|
|
flex-direction: column-reverse;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.round-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.card {
|
|
animation: fadeIn 0.35s ease;
|
|
}
|
|
|
|
|
|
.pass-screen .btn {
|
|
min-width: 180px;
|
|
}
|
|
|
|
.update-banner {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
padding: 16px 24px;
|
|
background: var(--ink);
|
|
color: #fffaf0;
|
|
font-weight: 600;
|
|
z-index: 100;
|
|
}
|
|
|
|
.update-banner .btn {
|
|
min-height: 40px;
|
|
padding: 8px 20px;
|
|
}
|