V1.0.0
Two Keys: co-op mystery games for couples. Eight games on four engines (story, defuse, sync, labyrinth), two-device and couch play, mobile-first UI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,157 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
:root {
|
||||
/* Defaults; a room overrides these from its game's YAML theme. */
|
||||
--primary: 123 30 58;
|
||||
--accent: 232 176 74;
|
||||
--bg: 18 12 14;
|
||||
--heading-font: 'Playfair Display';
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
@apply bg-bg font-sans text-stone-100 antialiased;
|
||||
overflow-x: hidden;
|
||||
background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgb(var(--primary) / 0.35), transparent);
|
||||
background-attachment: fixed;
|
||||
transition: background-color 0.4s;
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.btn {
|
||||
@apply inline-flex min-h-[44px] items-center justify-center gap-2 rounded-xl border border-white/15 bg-white/5 px-4 py-2 font-semibold text-stone-100 transition hover:bg-white/10 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent disabled:cursor-not-allowed disabled:opacity-40;
|
||||
}
|
||||
.btn-primary {
|
||||
@apply inline-flex min-h-[44px] items-center justify-center gap-2 rounded-xl bg-accent px-4 py-2 font-semibold text-stone-950 shadow-lg shadow-black/30 transition hover:brightness-110 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white disabled:cursor-not-allowed disabled:opacity-40;
|
||||
}
|
||||
.card {
|
||||
@apply rounded-2xl border border-white/10 bg-white/[0.04] p-4;
|
||||
}
|
||||
.chip {
|
||||
@apply inline-flex items-center gap-1 rounded-full border border-white/15 bg-black/30 px-2.5 py-0.5 text-xs font-medium uppercase tracking-wide;
|
||||
}
|
||||
.field {
|
||||
@apply min-h-[44px] w-full rounded-xl border border-white/20 bg-black/40 px-3 py-2 text-base text-stone-100 placeholder:text-stone-500 focus:border-accent focus:outline-none focus:ring-2 focus:ring-accent/40;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------- Markdown ---------- */
|
||||
.md {
|
||||
--line: rgb(255 255 255 / 0.18);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.md.paper {
|
||||
--line: rgb(0 0 0 / 0.22);
|
||||
}
|
||||
.md > * + * {
|
||||
margin-top: 0.7em;
|
||||
}
|
||||
.md h1,
|
||||
.md h2,
|
||||
.md h3 {
|
||||
font-family: var(--heading-font), 'Playfair Display', serif;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.md h1 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
.md h2 {
|
||||
font-size: 1.3em;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.md ul {
|
||||
list-style: disc;
|
||||
padding-left: 1.2em;
|
||||
}
|
||||
.md ol {
|
||||
list-style: decimal;
|
||||
padding-left: 1.4em;
|
||||
}
|
||||
.md li + li {
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
.md blockquote {
|
||||
border-left: 3px solid rgb(var(--accent) / 0.7);
|
||||
padding-left: 0.9em;
|
||||
opacity: 0.92;
|
||||
}
|
||||
.md hr {
|
||||
border-color: var(--line);
|
||||
}
|
||||
.md table {
|
||||
border-collapse: collapse;
|
||||
font-size: 0.9em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.md th,
|
||||
.md td {
|
||||
border: 1px solid var(--line);
|
||||
padding: 0.3em 0.6em;
|
||||
text-align: left;
|
||||
}
|
||||
.md th:empty {
|
||||
display: none;
|
||||
}
|
||||
.md pre {
|
||||
overflow-x: auto;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.9em;
|
||||
line-height: 1.5;
|
||||
white-space: pre;
|
||||
}
|
||||
.md pre code {
|
||||
font-size: inherit;
|
||||
}
|
||||
.md code {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 0.92em;
|
||||
}
|
||||
.md .scroll-x {
|
||||
overflow-x: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* ---------- Signal lamp ---------- */
|
||||
.lamp {
|
||||
transition: background-color 40ms, box-shadow 40ms;
|
||||
background-color: #2a0e0e;
|
||||
box-shadow: inset 0 0 12px rgb(0 0 0 / 0.8);
|
||||
}
|
||||
.lamp.on {
|
||||
background-color: #ff4d3d;
|
||||
box-shadow: 0 0 28px 10px rgb(255 77 61 / 0.65), inset 0 0 10px rgb(255 220 200 / 0.8);
|
||||
}
|
||||
|
||||
@keyframes shake {
|
||||
20%,
|
||||
60% {
|
||||
transform: translateX(-6px);
|
||||
}
|
||||
40%,
|
||||
80% {
|
||||
transform: translateX(6px);
|
||||
}
|
||||
}
|
||||
.shake {
|
||||
animation: shake 0.35s;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user