Files
two-keys/client/src/index.css
T
joshuaandClaude Opus 5.5 6669be11e5 V1.2.0
Bring games 9-18 in line with GAMES-NEW.md:
- Library sorts easiest first, filters by category and difficulty; difficulty 5
  shows a Nightmare chip, and a no-hint finish earns Nightmare Survivors.
- Time limits end on "Out of time" (no rank); Deep Lab Nereid's countdown is a
  rising water gauge behind the header.
- Evidence Locker search, chapter filter and starred clues (partner sees a count).
- One-shot accusations ask "One shot. Are you both sure?" first.
- Symbol font fallback, tight monospace blocks for grids/keypads/SQL.
- Rank rounds reorder by drag or up/down buttons; reveal highlights #1 and #4.
- Telepathy capped at 30 characters; maze:move accepts forward/left/right/back;
  gate buttons read "Gate (won't open from this side)".
- Overtime solver tables checked against Appendix A; keypad generator re-rolls.
- More content checks (rank items, password fixtures, glyphs/gates on traps) and
  sanitize tests for all ten new games.
- GAMES.md carries the full spoiler guide for 9-18.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 08:44:28 +02:00

176 lines
4.2 KiB
CSS

@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;
}
/* Stencil grids and box-drawing keypads need tight lines so the boxes join up. */
.md pre {
overflow-x: auto;
max-width: 100%;
font-family: 'JetBrains Mono', ui-monospace, 'Noto Sans Symbols 2', monospace;
font-size: 0.9em;
line-height: 1.15;
white-space: pre;
}
.md pre code.language-sql {
display: block;
line-height: 1.5;
}
.md pre code {
font-size: inherit;
}
.md code {
font-family: 'JetBrains Mono', ui-monospace, 'Noto Sans Symbols 2', 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);
}
/* ---------- Water gauge (Deep Lab Nereid) ---------- */
.water-wave {
background: radial-gradient(ellipse 12px 6px at 12px 6px, rgb(56 189 248 / 0.55) 98%, transparent) repeat-x;
background-size: 24px 12px;
animation: wave 2.4s linear infinite;
}
@keyframes wave {
to {
background-position-x: 24px;
}
}
@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;
}
}