mirror of
https://github.com/db9979/tidefront.git
synced 2026-12-06 12:54:09 +01:00
249 lines
15 KiB
CSS
249 lines
15 KiB
CSS
@import "tailwindcss";
|
||
|
||
/* Stil „Seekarte“: Admiralitätskarte – Papier, marineblaue Tinte, Siegelrot für Handlung.
|
||
Die alten Farbnamen (navy, slate, sea, brass …) bleiben als Schlüssel bestehen und zeigen auf die neue Palette,
|
||
damit alle Bildschirme mitziehen. navy = Papiertöne (hell), slate = Tinte (dunkel). */
|
||
@theme {
|
||
--color-paper: #f4eee1;
|
||
--color-card: #fbf8f0;
|
||
--color-inset: #efe7d5;
|
||
--color-ink: #18273a;
|
||
--color-ink2: #4f5b69;
|
||
--color-rule: #d5cab2;
|
||
--color-siegel: #a8331f;
|
||
--color-see: #2d5b7a;
|
||
--color-moos: #2f6b47;
|
||
--color-messing: #7e5a1e;
|
||
|
||
--color-navy-950: #efe7d5;
|
||
--color-navy-900: #f4eee1;
|
||
--color-navy-800: #fbf8f0;
|
||
--color-navy-700: #ebe2ce;
|
||
--color-navy-600: #cbbe9f;
|
||
|
||
--color-slate-50: #18273a;
|
||
--color-slate-100: #18273a;
|
||
--color-slate-200: #1f2f43;
|
||
--color-slate-300: #2b3a4c;
|
||
--color-slate-400: #4f5b69;
|
||
--color-slate-500: #59636f;
|
||
--color-slate-600: #67624f; /* ≥ 4,5:1 auf allen Papiertönen (vorher #8b8676 ≈ 3,2:1) */
|
||
--color-slate-700: #2b3a4c;
|
||
--color-slate-800: #22303f;
|
||
--color-slate-900: #18273a;
|
||
--color-slate-950: #101a27;
|
||
|
||
--color-sea-300: #2d5b7a;
|
||
--color-sea-400: #2d5b7a;
|
||
--color-sea-500: #244b66;
|
||
--color-brass-300: #7e5a1e;
|
||
--color-brass-400: #8a6424;
|
||
--color-brass-500: #7a5a1f;
|
||
|
||
--color-red-100: #a8331f;
|
||
--color-red-200: #a8331f;
|
||
--color-red-300: #a8331f;
|
||
--color-red-400: #a8331f;
|
||
--color-red-500: #a8331f;
|
||
--color-red-600: #982d1b;
|
||
--color-red-700: #8e2a18;
|
||
--color-red-800: #7a2414;
|
||
--color-red-900: #6a1f12;
|
||
--color-red-950: #f5e2d9;
|
||
|
||
--color-emerald-300: #2f6b47;
|
||
--color-emerald-400: #2f6b47;
|
||
--color-emerald-500: #2f6b47;
|
||
--color-emerald-600: #2a6040;
|
||
--color-emerald-700: #245536;
|
||
--color-emerald-950: #e3ecdf;
|
||
|
||
--color-amber-300: #7e5a1e;
|
||
--color-orange-300: #8a4a14;
|
||
|
||
--radius-lg: 3px;
|
||
--radius-xl: 4px;
|
||
--radius-2xl: 4px;
|
||
--radius-3xl: 8px;
|
||
--font-serif: "Fraunces", Georgia, "Times New Roman", serif;
|
||
--font-display: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||
--font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||
--font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
|
||
}
|
||
|
||
html, body, #root { height: 100%; }
|
||
/* Safari (iPhone) vergrößert Schrift sonst eigenmächtig, etwa im Querformat – dann laufen Texte über den Rand. */
|
||
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
||
body {
|
||
margin: 0;
|
||
color: var(--color-ink);
|
||
font-family: var(--font-sans);
|
||
font-variant-numeric: tabular-nums;
|
||
-webkit-tap-highlight-color: transparent;
|
||
overscroll-behavior: none;
|
||
/* Lange deutsche Wörter und Namen umbrechen statt über den Rahmen zu laufen; Silbentrennung nach lang="de". */
|
||
overflow-wrap: break-word;
|
||
-webkit-hyphens: auto;
|
||
hyphens: auto;
|
||
background-color: var(--color-paper);
|
||
/* Papierfaser: eine kleine Rauschkachel, einmal gerastert und gekachelt. */
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
|
||
}
|
||
input, select, button, textarea { font: inherit; }
|
||
/* Zahlen, Codes und Eingaben nie trennen. */
|
||
.mono, input, textarea, code, pre { -webkit-hyphens: manual; hyphens: manual; }
|
||
/* Silbentrennung (lang="de") nur im Fließtext, nicht in Navigation, Knöpfen, Zahlen. */
|
||
main :where(p, li) { hyphens: auto; -webkit-hyphens: auto; }
|
||
main :where(.mono, code, button) { hyphens: manual; -webkit-hyphens: manual; }
|
||
/* Navigation, Reiter, Knöpfe und Titel nie automatisch trennen („Meldun-gen“); lange Wörter tragen bei Bedarf ­. */
|
||
nav, button, [role="tab"], h1, h2, h3, .font-display { -webkit-hyphens: manual; hyphens: manual; }
|
||
[role="tab"] { white-space: nowrap; }
|
||
input, select, textarea { color: var(--color-ink); }
|
||
::placeholder { color: #6b7380; }
|
||
:focus-visible { outline: 2px solid var(--color-see); outline-offset: 2px; }
|
||
.tap { min-height: 44px; min-width: 44px; }
|
||
|
||
/* Beschriftungen in Versalien: Plex Sans halbfett, gesperrt (wie die Legende einer Seekarte). */
|
||
.font-display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; }
|
||
/* Titel in Fraunces, normale Schreibung. */
|
||
.font-serif, h1.font-display, h2.font-display.text-lg, h2.font-display.text-xl {
|
||
font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.005em; text-transform: none;
|
||
}
|
||
.mono { font-family: var(--font-mono); font-weight: 500; }
|
||
|
||
/* Fläche: Karte auf Papier, feine Tintenlinie. */
|
||
.panel { background: var(--color-card); border: 1px solid var(--color-rule); box-shadow: 0 1px 0 rgba(24, 39, 58, 0.04); }
|
||
/* Kopf eines Panels: doppelte Tintenlinie oben. */
|
||
.brass-edge { border-top: 3px double var(--color-ink); }
|
||
.rule-double { border-bottom: 3px double var(--color-ink); }
|
||
.btn-primary { background: var(--color-ink); color: var(--color-paper); border: 1px solid var(--color-ink); }
|
||
.btn-primary:active { background: #24384f; }
|
||
.btn-danger { background: var(--color-siegel); color: #fff; border: 1px solid var(--color-siegel); }
|
||
.btn-danger:active { background: #8e2a18; }
|
||
.btn-secondary { background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); }
|
||
.btn-secondary:active { background: var(--color-inset); }
|
||
/* Leiser Knopf (Nebenaktionen wie „alle zeigen“, „ändern“): Rahmen statt unterstrichenem Link. */
|
||
.btn-quiet { background: var(--color-card); color: var(--color-ink); border: 1px solid var(--color-rule); }
|
||
.btn-quiet:active { background: var(--color-inset); }
|
||
.field { background: #fffdf8; border: 1px solid var(--color-rule); color: var(--color-ink); }
|
||
.field:focus { border-color: var(--color-ink); }
|
||
|
||
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(168, 51, 31, 0.45); } 100% { box-shadow: 0 0 0 8px rgba(168, 51, 31, 0); } }
|
||
.pulse { animation: pulse-ring 2s ease-out infinite; }
|
||
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
|
||
.sheet-in { animation: slide-up 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
|
||
/* Laufender Fortschritt: schräge Schraffur. */
|
||
.stripes { background-image: repeating-linear-gradient(135deg, rgba(251, 248, 240, 0.35) 0 2px, transparent 2px 6px); }
|
||
.hatch { background-image: repeating-linear-gradient(135deg, rgba(24, 39, 58, 0.16) 0 1px, transparent 1px 4px); }
|
||
/* Hervorgehobene Kachel: innerer Seeblau-Rahmen. */
|
||
.reticle { position: relative; box-shadow: inset 0 0 0 1px var(--color-see); border-color: var(--color-see) !important; }
|
||
.reticle::before, .reticle::after { content: none; }
|
||
/* Raute als Aufzählungszeichen (Logbuch). */
|
||
.diamond { width: 9px; height: 9px; transform: rotate(45deg); display: inline-block; flex: none; }
|
||
|
||
|
||
/* Börse: Tickerband (Tinte mit Papierschrift), Kurstafel und Kurszettel. */
|
||
.ticker { background: var(--color-ink); color: var(--color-paper); }
|
||
.ticker-up { color: #a6dbb7; }
|
||
.ticker-down { color: #f3a99a; }
|
||
.ticker-track { display: flex; width: max-content; animation: ticker-run 38s linear infinite; }
|
||
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
|
||
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
|
||
/* Kurszettel: gezackter Abriss oben und unten. */
|
||
.slip { background: #fffdf8; border-left: 1px solid var(--color-rule); border-right: 1px solid var(--color-rule); position: relative; }
|
||
.slip::before, .slip::after { content: ""; position: absolute; left: 0; right: 0; height: 6px;
|
||
background: radial-gradient(circle at 4px 6px, transparent 3px, #fffdf8 3.5px) 0 0 / 8px 6px repeat-x; }
|
||
.slip::before { top: -6px; transform: scaleY(-1); }
|
||
.slip::after { bottom: -6px; }
|
||
.dotted-row { border-bottom: 1px dotted var(--color-rule); }
|
||
|
||
/* Stufenbilder der Gebäude: Bauplan als Blaupause, dezentes Einblenden beim Aufstieg in einen neuen Abschnitt. */
|
||
.tf-plan path, .tf-plan rect, .tf-plan circle { fill: none; stroke: var(--color-see); stroke-width: 1; stroke-dasharray: 2.4 1.8; }
|
||
@keyframes tf-grow { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
|
||
.tf-grow { animation: tf-grow 600ms ease-out; }
|
||
/* Bewegte Gebäude (building-art/motion.tsx): nur transform/opacity; Ursprung je Element per transform-origin. */
|
||
@keyframes tf-spin { to { transform: rotate(360deg); } }
|
||
.tf-spin { animation: tf-spin 4s linear infinite; }
|
||
@keyframes tf-smoke { 0% { transform: translate(0, 3px); opacity: 0; } 30% { opacity: var(--tf-op, 0.9); } 100% { transform: translate(2px, -8px); opacity: 0; } }
|
||
.tf-smoke { animation: tf-smoke 3.2s ease-out infinite; }
|
||
@keyframes tf-flicker { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(0.88, 1.14); } 50% { transform: scale(1.06, 0.86); } 75% { transform: scale(0.94, 1.08); } }
|
||
.tf-flicker { animation: tf-flicker 0.9s ease-in-out infinite; }
|
||
@keyframes tf-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.12; } }
|
||
.tf-blink { animation: tf-blink 2.4s ease-in-out infinite; }
|
||
@keyframes tf-turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
|
||
.tf-turn { animation: tf-turn 6s ease-in-out infinite; }
|
||
@keyframes tf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--tf-amp, 4px)); } }
|
||
.tf-bob { animation: tf-bob 3.6s ease-in-out infinite; }
|
||
@keyframes tf-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
|
||
.tf-swing { animation: tf-swing 7s ease-in-out infinite; }
|
||
@keyframes tf-flutter { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(0.82) skewY(7deg); } }
|
||
.tf-flutter { animation: tf-flutter 1.4s ease-in-out infinite; }
|
||
@keyframes tf-glint { 0%, 72%, 100% { opacity: 0; } 82% { opacity: 0.85; } }
|
||
.tf-glint { animation: tf-glint 6s ease-in-out infinite; }
|
||
/* Unsichtbar (außerhalb des Bildschirms) oder Tab verborgen: anhalten. */
|
||
/* Uhr (Minutenzeiger), Medaille, Hafenbild: leise Grundbewegung in SVG-Einheiten (transform-box: view-box). */
|
||
.tf-clock { animation: tf-spin 20s linear infinite; transform-box: view-box; transform-origin: 32px 32px; }
|
||
@keyframes tf-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
|
||
.tf-medal { animation: tf-sway 4.5s ease-in-out infinite; transform-box: view-box; transform-origin: 32px 4px; }
|
||
.tf-wave { animation: tf-drift 6s ease-in-out infinite; }
|
||
@keyframes tf-floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(0.8px) rotate(-1deg); } }
|
||
.tf-float { animation: tf-floaty 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
|
||
.tf-puff { animation: tf-glow 3s ease-in-out infinite; }
|
||
.tf-vflag { animation: tf-flutter 1.8s ease-in-out infinite; transform-box: view-box; transform-origin: 25px 25.5px; }
|
||
.tf-beam { animation: tf-glow 4s ease-in-out infinite; }
|
||
@keyframes tf-gullfly { 0% { transform: translate(-8px, 6px); } 50% { transform: translate(44px, 0); } 100% { transform: translate(100px, 5px); } }
|
||
.tf-gull { animation: tf-gullfly 22s linear infinite; }
|
||
.tf-star { animation: tf-glow 2.8s ease-in-out infinite; }
|
||
/* Wetter-Symbole (Vorhersage, Kärtchen): leise und versetzt. */
|
||
@keyframes tf-drift { 0%, 100% { transform: translateX(-1.5px); } 50% { transform: translateX(1.5px); } }
|
||
@keyframes tf-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
|
||
@keyframes tf-shake { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
|
||
.tf-wx-sonne { animation: tf-spin 28s linear infinite; transform-origin: 50% 50%; }
|
||
.tf-wx-wolke, .tf-wx-nebel { animation: tf-drift 7s ease-in-out infinite; }
|
||
.tf-wx-wind { animation: tf-drift 2.6s ease-in-out infinite; }
|
||
.tf-wx-mond { animation: tf-glow 5s ease-in-out infinite; }
|
||
.tf-wx-sturm { animation: tf-shake 0.7s ease-in-out infinite; transform-origin: 50% 80%; }
|
||
/* ---- Bewegte Symbole: Einheiten und Forschungen (icons-motion.tsx, mv()). Drehpunkt kommt inline in Rasterpunkten;
|
||
ruhig und klein (meist 3–9 s, ±1–4°, 1–2 px). Unter 28 px (Icon setzt .tf-still) steht alles still. */
|
||
.tf-mi { transform-box: view-box; }
|
||
.tf-still .tf-mi { animation: none; }
|
||
@keyframes tf-i-rock { 0%, 100% { transform: rotate(-1.3deg); } 50% { transform: rotate(1.3deg); } }
|
||
.tf-i-rock { animation: tf-i-rock 6.5s ease-in-out infinite; }
|
||
.tf-i-rockfast { animation: tf-i-rock 3.8s ease-in-out infinite; }
|
||
@keyframes tf-i-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.4px); } }
|
||
.tf-i-bob { animation: tf-i-bob 4.4s ease-in-out infinite; }
|
||
@keyframes tf-i-dive { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.8px); } }
|
||
.tf-i-dive { animation: tf-i-dive 8s ease-in-out infinite; }
|
||
@keyframes tf-i-look { 0%, 38% { transform: scaleX(1); } 50%, 88% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
|
||
.tf-i-look { animation: tf-i-look 9s ease-in-out infinite; }
|
||
@keyframes tf-i-hover { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(0.6px, -1px) rotate(1.2deg); } 66% { transform: translate(-0.6px, 0.5px) rotate(-1deg); } }
|
||
.tf-i-hover { animation: tf-i-hover 7s ease-in-out infinite; }
|
||
@keyframes tf-i-tilt { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
|
||
.tf-i-tilt { animation: tf-i-tilt 5s ease-in-out infinite; }
|
||
@keyframes tf-i-scan { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
|
||
.tf-i-scan { animation: tf-i-scan 6s ease-in-out infinite; }
|
||
@keyframes tf-i-elev { 0%, 20%, 100% { transform: rotate(0); } 55%, 70% { transform: rotate(-5deg); } }
|
||
.tf-i-elev { animation: tf-i-elev 8s ease-in-out infinite; }
|
||
.tf-i-spin { animation: tf-spin 9s linear infinite; }
|
||
.tf-i-spinslow { animation: tf-spin 18s linear infinite; }
|
||
@keyframes tf-i-flag { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(0.86) skewY(6deg); } }
|
||
.tf-i-flag { animation: tf-i-flag 2.4s ease-in-out infinite; }
|
||
@keyframes tf-i-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
|
||
.tf-i-blink { animation: tf-i-blink 3.2s ease-in-out infinite; }
|
||
.tf-i-glow { animation: tf-glow 5s ease-in-out infinite; }
|
||
@keyframes tf-i-ping { 0%, 100% { opacity: 0.25; } 25% { opacity: 1; } 60% { opacity: 0.45; } }
|
||
.tf-i-ping { animation: tf-i-ping 2.7s ease-in-out infinite; }
|
||
@keyframes tf-i-drift { 0%, 100% { transform: translateX(-1.2px); } 50% { transform: translateX(1.2px); } }
|
||
.tf-i-drift { animation: tf-i-drift 5s ease-in-out infinite; }
|
||
@keyframes tf-i-steam { 0% { transform: translateY(1px); opacity: 0.4; } 40% { opacity: 1; } 100% { transform: translateY(-2px); opacity: 0.3; } }
|
||
.tf-i-steam { animation: tf-i-steam 3.6s ease-out infinite; }
|
||
[data-tf-off] .tf-mv, html.tf-hidden .tf-mv { animation-play-state: paused; }
|
||
@media (prefers-reduced-motion: reduce) { .tf-grow, .tf-mv { animation: none !important; } }
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
|
||
/* Tickerband steht still und lässt sich wischen. */
|
||
.ticker-track { animation: none !important; }
|
||
.ticker-scroll { overflow-x: auto; }
|
||
}
|