Files
org_web/assets/styles/pages/princess-lima-rpg.css
gitea-actions 6066f486de
All checks were successful
Build Org Website / build (push) Successful in 1m2s
Refine Princess Lima for v2 presentation
2026-07-30 15:00:45 +01:00

933 lines
17 KiB
CSS
Executable File

:root {
color-scheme: dark;
--lima-bg: #080a12;
--lima-panel: #111827;
--lima-panel-strong: #182238;
--lima-border: #d2a85c;
--lima-text: #fff5df;
--lima-muted: #c8c3b8;
--lima-accent: #ffd47b;
--lima-blue: #3d73a8;
--lima-danger: #bd4a56;
--lima-focus: #7ee7ff;
}
* {
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
background: var(--lima-bg);
color: var(--lima-text);
font-family: Inter, "Noto Sans", system-ui, sans-serif;
}
button,
input,
select {
font: inherit;
}
button,
.lima-button-link,
.lima-exit {
min-height: 44px;
border: 2px solid #b99150;
border-radius: 5px;
background: #202d43;
color: var(--lima-text);
padding: 0.65rem 1rem;
font-weight: 800;
cursor: pointer;
text-decoration: none;
}
button:hover,
.lima-button-link:hover,
.lima-exit:hover {
background: #2b4162;
border-color: var(--lima-accent);
}
button:active {
transform: translateY(1px);
}
button:disabled {
cursor: not-allowed;
opacity: 0.48;
}
:focus-visible {
outline: 4px solid var(--lima-focus);
outline-offset: 3px;
}
[hidden] {
display: none !important;
}
.lima-rpg {
position: relative;
width: 100vw;
height: 100dvh;
overflow: hidden;
background: #080a12;
isolation: isolate;
}
.lima-rpg::before {
content: "";
position: absolute;
inset: 0;
z-index: -2;
background:
linear-gradient(90deg, rgb(5 8 16 / 0.82), rgb(5 8 16 / 0.15) 60%, rgb(5 8 16 / 0.45)),
url("/assets/images/play/princess-lima/title-landscape.png") center / cover no-repeat;
}
.lima-rpg__game {
position: absolute;
inset: 0 0 0 272px;
display: grid;
place-items: center;
overflow: hidden;
background: #080a12;
}
.lima-rpg__game canvas {
display: block;
max-width: none;
max-height: none;
image-rendering: pixelated;
transition: filter 320ms ease, transform 320ms ease;
}
.lima-rpg__loading,
.lima-main-menu,
.lima-setup {
position: absolute;
z-index: 50;
left: clamp(1rem, 6vw, 6rem);
top: 50%;
width: min(31rem, calc(100vw - 2rem));
transform: translateY(-50%);
border: 3px solid var(--lima-border);
border-radius: 8px;
background: rgb(10 15 27 / 0.96);
box-shadow: 0 20px 70px rgb(0 0 0 / 0.7);
padding: clamp(1.2rem, 3vw, 2.4rem);
}
.lima-rpg__loading {
display: grid;
gap: 0.75rem;
}
.lima-rpg__loading strong {
font-size: 1.4rem;
}
.lima-main-menu__eyebrow,
.lima-panel__eyebrow {
margin: 0 0 0.4rem;
color: var(--lima-accent);
font-size: 0.78rem;
font-weight: 900;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.lima-main-menu h1 {
margin: 0;
color: #fff6d8;
font-family: Georgia, serif;
font-size: clamp(2.4rem, 6vw, 4.7rem);
line-height: 0.94;
text-shadow: 0 4px #2f1822;
}
.lima-main-menu__tagline {
max-width: 36ch;
color: var(--lima-muted);
font-size: 1.04rem;
line-height: 1.55;
}
.lima-menu-stack {
display: grid;
gap: 0.7rem;
}
.lima-menu-stack a {
display: grid;
place-items: center;
}
.lima-primary {
background: #8f5b28;
border-color: #f2c36c;
}
.lima-danger {
background: #612c38;
border-color: #e7888f;
}
.lima-hud {
position: absolute;
z-index: 30;
inset: 0 auto 0 0;
display: flex;
width: 272px;
flex-direction: column;
gap: 0;
overflow: auto;
border-right: 3px solid #b78b4d;
background:
linear-gradient(180deg, rgb(20 29 47 / 0.98), rgb(7 12 22 / 0.99)),
url("/assets/images/play/princess-lima/world-tiles.png");
box-shadow: 8px 0 24px rgb(0 0 0 / 0.38);
pointer-events: auto;
}
.lima-hud > div {
border-bottom: 1px solid rgb(214 174 99 / 0.38);
background: rgb(8 12 22 / 0.48);
padding: 0.72rem 0.85rem;
}
.lima-hud span {
display: block;
color: #c9c4b8;
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.lima-hud strong {
display: block;
margin-top: 0.18rem;
color: #fff7df;
line-height: 1.2;
}
.lima-hud__identity {
display: grid;
grid-template-columns: 66px 1fr;
align-items: center;
gap: 0.7rem;
border-bottom: 2px solid #9d7440;
padding: 0.8rem;
}
.lima-hud__portrait {
width: 64px;
height: 64px;
border: 2px solid #d8b66d;
border-radius: 4px;
background-image: url("/assets/images/play/princess-lima/portrait-atlas-v2.png");
background-position: 100% 100%;
background-size: 400% 400%;
}
.lima-hud__equipment {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.2rem 0.55rem;
}
.lima-hud__equipment strong {
margin: 0 0 0.45rem;
font-size: 0.84rem;
text-align: right;
}
.lima-hud__objective strong {
display: -webkit-box;
overflow: hidden;
font-size: 0.9rem;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.lima-hud__healthbar,
.lima-boss__bar {
height: 8px;
margin-top: 0.38rem;
overflow: hidden;
border-radius: 999px;
background: #351d29;
}
.lima-hud__healthbar i,
.lima-boss__bar i {
display: block;
width: 100%;
height: 100%;
background: linear-gradient(90deg, #5bba6f, #d8df73);
}
.lima-hud__actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.42rem;
pointer-events: auto;
}
.lima-hud__actions button {
min-width: 0;
min-height: 42px;
padding: 0.35rem;
font-size: 0.72rem;
}
.lima-hud__actions .lima-button-link {
display: grid;
grid-column: 1 / -1;
place-items: center;
min-height: 38px;
font-size: 0.75rem;
}
.lima-hud kbd {
border: 1px solid #897553;
border-radius: 3px;
background: #090d16;
padding: 0.05rem 0.22rem;
}
.lima-hud__keys {
margin: auto 0 0;
border-top: 1px solid #654e32;
color: #bcb9b0;
padding: 0.65rem 0.8rem;
font-size: 0.68rem;
line-height: 1.45;
}
.lima-status-stack {
position: absolute;
z-index: 25;
left: calc(50% + 136px);
bottom: 1rem;
width: min(44rem, calc(100vw - 2rem));
transform: translateX(-50%);
text-align: center;
pointer-events: none;
}
.lima-prompt,
.lima-status {
display: table;
margin: 0.35rem auto;
border: 2px solid rgb(207 172 103 / 0.72);
border-radius: 4px;
background: rgb(5 8 15 / 0.94);
color: #fff5d9;
padding: 0.48rem 0.8rem;
font-weight: 800;
}
.lima-status {
color: #d7d4cc;
font-size: 0.88rem;
}
.lima-boss {
position: static;
width: auto;
border: 2px solid #bd6d8b;
background: rgb(18 8 25 / 0.95);
padding: 0.55rem 0.8rem;
text-align: center;
}
.lima-boss__bar i {
background: linear-gradient(90deg, #9d3961, #e28f98);
}
.lima-overlay,
.lima-setup {
position: absolute;
z-index: 100;
}
.lima-overlay {
inset: 0;
display: grid;
place-items: center;
background: rgb(3 5 10 / 0.78);
padding: 1rem;
}
.lima-panel {
width: min(46rem, 100%);
max-height: min(82dvh, 48rem);
overflow: auto;
border: 3px solid var(--lima-border);
border-radius: 7px;
background: var(--lima-panel);
box-shadow: 0 22px 80px rgb(0 0 0 / 0.8);
}
.lima-panel > header {
position: sticky;
top: 0;
z-index: 2;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
border-bottom: 2px solid #8a6a3d;
background: var(--lima-panel-strong);
padding: 0.85rem 1rem;
}
.lima-panel h2 {
margin: 0;
color: #fff2cf;
font-family: Georgia, serif;
font-size: 1.7rem;
}
.lima-panel__body {
padding: 1rem;
line-height: 1.55;
}
.lima-panel-lead {
border-left: 4px solid var(--lima-accent);
background: #0b1220;
padding: 0.75rem;
}
.lima-list {
display: grid;
gap: 0.65rem;
margin: 0;
padding: 0;
list-style: none;
}
.lima-list li {
display: grid;
grid-template-columns: 1fr auto;
gap: 0.3rem 1rem;
border: 1px solid #536076;
border-radius: 4px;
background: #0b1220;
padding: 0.75rem;
}
.lima-list li.is-complete strong::before,
.lima-list li.complete strong::before {
content: "✓ ";
}
.lima-list small {
grid-column: 1 / -1;
color: var(--lima-muted);
}
.lima-list p {
grid-column: 1 / -1;
margin: 0;
color: var(--lima-muted);
}
.lima-dialogue {
display: grid;
grid-template-columns: 100px 1fr;
align-items: center;
gap: 1rem;
min-height: 9rem;
}
.lima-dialogue p {
margin: 0;
font-size: 1.1rem;
}
.lima-sprite {
width: 96px;
height: 96px;
background-image: url("/assets/images/play/princess-lima/cast-atlas.png");
background-size: 384px 384px;
background-position: 0 0;
image-rendering: pixelated;
}
.lima-sprite--4 { background-position: 0 -96px; }
.lima-sprite--5 { background-position: -96px -96px; }
.lima-sprite--6 { background-position: -192px -96px; }
.lima-sprite--7 { background-position: -288px -96px; }
.lima-sprite--8 { background-position: 0 -192px; }
.lima-sprite--11 { background-position: -288px -192px; }
.lima-setting,
.lima-check {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
min-height: 52px;
border-bottom: 1px solid #39445a;
}
.lima-setting input {
width: min(18rem, 52vw);
}
.lima-check input {
width: 24px;
height: 24px;
}
.lima-confirm {
display: flex;
flex-wrap: wrap;
gap: 0.7rem;
}
.lima-setup {
display: block;
}
.lima-setup form {
display: grid;
gap: 0.85rem;
}
.lima-setup h2 {
margin: 0;
font-family: Georgia, serif;
font-size: 2rem;
}
.lima-setup label,
.lima-setup fieldset {
display: grid;
gap: 0.45rem;
}
.lima-setup input[type="text"] {
min-height: 48px;
border: 2px solid #7b6749;
border-radius: 4px;
background: #070b13;
color: #fff;
padding: 0.6rem;
}
.lima-setup fieldset {
grid-template-columns: repeat(3, 1fr);
border: 1px solid #786649;
padding: 0.75rem;
}
.lima-setup fieldset legend {
grid-column: 1 / -1;
}
.lima-setup fieldset label {
display: flex;
align-items: center;
}
.lima-setup__error {
min-height: 1.4em;
color: #ffb1b9;
}
.lima-intro {
position: absolute;
z-index: 120;
inset: 0;
overflow: hidden;
background: #03050a;
}
.lima-intro__picture {
position: absolute;
inset: 0;
background-image: url("/assets/images/play/princess-lima/intro-storyboard.png");
background-repeat: no-repeat;
background-position: 0 0;
background-size: 200% 200%;
image-rendering: pixelated;
animation: lima-cinematic-pan 15s ease-in-out both;
}
.lima-intro__picture[data-panel="1"] { background-position: 100% 0; }
.lima-intro__picture[data-panel="2"] { background-position: 0 100%; }
.lima-intro__picture[data-panel="3"] { background-position: 100% 100%; }
.lima-intro__vignette {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgb(0 0 0 / 0.22), transparent 40%, rgb(0 0 0 / 0.75));
pointer-events: none;
}
.lima-intro__subtitle {
position: absolute;
left: 50%;
bottom: 5.2rem;
width: min(58rem, calc(100% - 3rem));
transform: translateX(-50%);
border: 2px solid #d7b76d;
border-radius: 4px;
background: rgb(4 7 14 / 0.94);
color: #fff9e9;
padding: 0.85rem 1.1rem;
font-family: Georgia, serif;
font-size: clamp(1rem, 2.1vw, 1.45rem);
line-height: 1.45;
text-align: center;
text-shadow: 0 2px #000;
}
.lima-intro__progress {
position: absolute;
right: 1rem;
bottom: 1rem;
left: 1rem;
height: 6px;
overflow: hidden;
border-radius: 999px;
background: #251d2a;
}
.lima-intro__progress i {
display: block;
width: 0;
height: 100%;
background: #f1c66e;
transition: width 0.4s linear;
}
.lima-intro__controls {
position: absolute;
z-index: 2;
top: 0.75rem;
right: 0.75rem;
display: flex;
align-items: center;
gap: 0.45rem;
border: 1px solid #75633e;
background: rgb(3 5 10 / 0.86);
padding: 0.4rem;
}
.lima-intro__controls button {
min-height: 38px;
padding: 0.38rem 0.65rem;
font-size: 0.78rem;
}
.lima-intro__controls span {
color: #e5dcc5;
padding: 0 0.35rem;
font-size: 0.76rem;
}
.lima-intro.is-paused .lima-intro__picture {
animation-play-state: paused;
}
@keyframes lima-cinematic-pan {
from { transform: scale(1.02) translate3d(-0.5%, 0, 0); }
to { transform: scale(1.09) translate3d(0.5%, -0.5%, 0); }
}
.lima-rpg.is-high-contrast {
--lima-panel: #000;
--lima-panel-strong: #000;
--lima-text: #fff;
--lima-muted: #fff;
--lima-border: #ffdf00;
--lima-focus: #00ffff;
}
.lima-rpg:fullscreen {
width: 100vw;
height: 100vh;
}
.lima-screenreader {
position: fixed;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.lima-rpg.is-dialogue-blur .lima-rpg__game canvas {
filter: blur(4px) saturate(0.58) brightness(0.62);
transform: scale(1.015);
}
.lima-rpg.is-dialogue-depth .lima-rpg__game canvas {
filter: saturate(0.68) brightness(0.55);
}
.lima-panel[data-kind="dialogue"] {
position: absolute;
right: clamp(1rem, 4vw, 4rem);
bottom: clamp(1rem, 4vh, 3rem);
left: max(288px, clamp(1rem, 4vw, 4rem));
width: auto;
max-height: none;
overflow: visible;
border-color: #e4c477;
background:
linear-gradient(135deg, rgb(23 25 39 / 0.98), rgb(8 12 23 / 0.98)),
url("/assets/images/play/princess-lima/world-tiles.png");
box-shadow: 0 18px 70px rgb(0 0 0 / 0.82), inset 0 0 0 1px rgb(255 239 190 / 0.16);
}
.lima-panel[data-kind="dialogue"] > header {
display: none;
}
.lima-panel[data-kind="dialogue"] .lima-panel__body {
padding: 0;
}
.lima-cinematic-dialogue {
display: grid;
grid-template-columns: minmax(170px, 26%) 1fr;
min-height: 236px;
overflow: hidden;
}
.lima-cinematic-dialogue__portrait {
min-height: 236px;
border-right: 2px solid #a8844d;
background-image:
linear-gradient(0deg, rgb(7 10 18 / 0.3), transparent 45%),
url("/assets/images/play/princess-lima/portrait-atlas-v2.png");
background-repeat: no-repeat;
background-size: 400% 400%;
image-rendering: auto;
animation: lima-portrait-arrive 320ms ease-out both;
}
.lima-cinematic-dialogue__copy {
display: flex;
flex-direction: column;
padding: 1.1rem 1.25rem;
}
.lima-cinematic-dialogue__speaker {
margin: 0 0 0.6rem;
color: #f6d785;
font-family: Georgia, serif;
font-size: clamp(1.25rem, 2.2vw, 1.8rem);
font-weight: 800;
}
.lima-cinematic-dialogue__speaker span {
margin-left: 0.5rem;
color: #b8c1ce;
font-family: Inter, system-ui, sans-serif;
font-size: 0.72rem;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.lima-cinematic-dialogue__text {
flex: 1;
margin: 0;
color: #fff8e7;
font-family: Georgia, serif;
font-size: clamp(1rem, 1.7vw, 1.28rem);
line-height: 1.55;
}
.lima-cinematic-dialogue__choices {
display: grid;
gap: 0.48rem;
margin: 0.8rem 0;
}
.lima-cinematic-dialogue__choices button {
display: grid;
grid-template-columns: 2rem 1fr;
align-items: center;
border-color: #7d94aa;
background: rgb(24 41 59 / 0.82);
text-align: left;
}
.lima-cinematic-dialogue__choices button span {
display: grid;
width: 1.5rem;
height: 1.5rem;
place-items: center;
border: 1px solid #e3bf6d;
border-radius: 50%;
color: #f4d27e;
}
.lima-cinematic-dialogue__controls {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.5rem;
}
.lima-history {
width: min(44rem, calc(100% - 2rem));
max-height: 78dvh;
overflow: auto;
border: 3px solid var(--lima-border);
background: #0b111e;
color: var(--lima-text);
padding: 1rem;
}
.lima-history::backdrop {
background: rgb(2 4 8 / 0.8);
}
.lima-history li {
margin-bottom: 0.75rem;
border-left: 3px solid #9e7c46;
padding-left: 0.75rem;
}
.lima-history p {
margin: 0.2rem 0;
}
.lima-settings-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.65rem;
}
.lima-settings-grid label {
display: flex;
min-height: 48px;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
border: 1px solid #46546a;
background: #0b1220;
padding: 0.65rem;
}
.lima-settings-grid input[type="checkbox"] {
width: 24px;
height: 24px;
}
.lima-ending-mark {
color: #f4d37e;
font-family: Georgia, serif;
font-size: 1.7rem;
text-align: center;
}
.lima-rpg[data-saved="true"]::after {
content: "Journey saved";
position: absolute;
z-index: 80;
top: 1rem;
right: 1rem;
border: 1px solid #d6b466;
background: rgb(6 10 18 / 0.9);
color: #fff2cd;
padding: 0.48rem 0.7rem;
}
@keyframes lima-portrait-arrive {
from { opacity: 0; transform: translateX(-14px); }
to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 820px) {
.lima-hud {
width: 220px;
}
.lima-rpg__game {
left: 220px;
}
.lima-status-stack {
left: calc(50% + 110px);
width: min(38rem, calc(100vw - 238px));
}
.lima-main-menu,
.lima-rpg__loading,
.lima-setup {
left: 1rem;
top: 50%;
}
.lima-intro__controls span {
display: none;
}
.lima-panel[data-kind="dialogue"] {
left: 232px;
}
.lima-cinematic-dialogue {
grid-template-columns: 130px 1fr;
}
.lima-settings-grid {
grid-template-columns: 1fr;
}
}
@media (max-height: 560px) and (orientation: landscape) {
.lima-hud {
width: 210px;
}
.lima-rpg__game {
left: 210px;
}
.lima-status-stack {
left: calc(50% + 105px);
bottom: 0.35rem;
}
.lima-status {
display: none;
}
.lima-main-menu {
padding: 1rem;
}
.lima-main-menu h1 {
font-size: 2.6rem;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition: none !important;
animation: none !important;
}
}