/* ── css/ships.css ── */
@keyframes shipFloat {
0%, 100% { transform: translateY(0px) rotate(0.5deg); }
25%      { transform: translateY(-3px) rotate(-0.3deg); }
50%      { transform: translateY(-1px) rotate(0.8deg); }
75%      { transform: translateY(-4px) rotate(-0.5deg); }
}
.ship {
animation: shipFloat 4s ease-in-out infinite;
image-rendering: auto;
transition: filter 0.3s ease;
}
.ship--destroyer  { animation-delay: 0s;   animation-duration: 4.2s; }
.ship--battleship { animation-delay: 0.5s; animation-duration: 3.8s; }
.ship--submarine  { animation-delay: 1.0s; animation-duration: 4.5s; }
.ship--patrol     { animation-delay: 0.3s; animation-duration: 3.5s; }
.ship--dragging {
animation: none;
filter: brightness(1.3) drop-shadow(0 0 10px var(--accent-brass));
z-index: 100;
cursor: grabbing;
}
.ship--placed {
filter: brightness(1.1);
}
.ship--sunk {
filter: grayscale(1) brightness(0.4);
animation: shipSink 1.5s ease-in forwards;
}
@keyframes shipSink {
0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
50%  { transform: translateY(10px) rotate(8deg); opacity: 0.7; }
100% { transform: translateY(30px) rotate(15deg); opacity: 0.3; }
}
.grid-container {
position: relative;
display: inline-block;
}
.grid-label {
font-family: var(--font-mono);
font-size: 0.75rem;
font-weight: 600;
color: var(--text-muted);
text-align: center;
}
.game-grid {
display: grid;
grid-template-columns: repeat(var(--grid-cols, 10), clamp(28px, 4vw, 44px));
justify-content: start;
gap: 2px;
padding: 2px;
background: rgba(201, 162, 39, 0.08);
border: 2px solid rgba(201, 162, 39, 0.15);
border-radius: var(--radius-md);
position: relative;
}
.grid-cell {
width: clamp(28px, 4vw, 44px);
height: clamp(28px, 4vw, 44px);
background: rgba(10, 25, 47, 0.6);
border: 1px solid rgba(201, 162, 39, 0.06);
cursor: pointer;
position: relative;
transition: all 0.15s ease;
display: flex;
align-items: center;
justify-content: center;
}
.grid-cell:hover {
background: rgba(201, 162, 39, 0.1);
border-color: rgba(201, 162, 39, 0.3);
}
.grid-cell--ship {
background: rgba(0, 150, 255, 0.15);
border-color: rgba(0, 150, 255, 0.3);
}
.grid-cell--valid {
background: rgba(0, 230, 118, 0.1);
border-color: rgba(0, 230, 118, 0.3);
}
.grid-cell--invalid {
background: rgba(255, 61, 90, 0.1);
border-color: rgba(255, 61, 90, 0.3);
}
.grid-cell--hit {
background: rgba(255, 61, 90, 0.2);
border-color: var(--accent-red);
}
.grid-cell--hit::after {
content: '✕';
color: var(--accent-red);
font-size: 1.2rem;
font-weight: 700;
animation: hitMark 0.5s var(--ease-spring);
}
.grid-cell--incoming::before {
content: '';
position: absolute;
inset: 0;
border: 2px solid var(--accent-gold);
border-radius: 50%;
opacity: 0;
animation: incomingShell var(--projectile-flight, 1400ms) ease-in;
pointer-events: none;
z-index: 3;
}
@keyframes incomingShell {
0%   { transform: scale(2.2); opacity: 0; }
30%  { opacity: 0.9; }
100% { transform: scale(0.35); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--incoming::before {
animation: none;
opacity: 0.6;
transform: scale(1);
}
}
.grid-cell--miss {
background: rgba(100, 150, 200, 0.1);
}
.grid-cell--miss::after {
content: '';
position: absolute;
inset: 4%;
background: url('../assets/sprites/default/miss.png') center / contain no-repeat;
transform-origin: 50% 85%;
animation: missSurface 1.6s cubic-bezier(0.25, 0.6, 0.35, 1),
missEmerge 1.6s ease-out,
ringFloat 4.4s ease-in-out 1.6s infinite;
}
.grid-cell--foreign-hit {
background: rgba(150, 165, 185, 0.22);
border-color: rgba(175, 195, 220, 0.5);
}
.grid-cell--foreign-hit::after {
content: '✳';
color: rgba(200, 215, 235, 0.75);
font-size: 0.8rem;
}
.grid--spectating .grid-cell {
cursor: default;
}
.grid--spectating {
opacity: 0.88;
}
.grid-cell--mine {
background: rgba(40, 48, 60, 0.55);
border-color: rgba(140, 160, 185, 0.4);
}
.grid-cell--mine::after {
content: '';
position: absolute;
inset: -22% -6% 0;
background: url('../assets/sprites/default/mine.png') center bottom / contain no-repeat;
transform-origin: 50% 90%;
animation: mineBob 3.6s ease-in-out infinite;
z-index: 1;
pointer-events: none;
}
@keyframes mineBob {
0%, 100% { transform: translateY(0) rotate(0deg); }
50%      { transform: translateY(-6%) rotate(2.5deg); }
}
.grid-cell--detonated {
background: rgba(28, 38, 52, 0.5);
border-color: rgba(140, 160, 185, 0.3);
}
.grid-cell--detonated::after {
content: '';
position: absolute;
inset: -12% -22% 0;
background: url('../assets/sprites/default/mine_detonated.png') center bottom / contain no-repeat;
animation: mineWreck 1.8s ease-in forwards;
z-index: 1;
pointer-events: none;
}
@keyframes mineWreck {
0%   { filter: grayscale(0.4) brightness(0.75) saturate(0.4); }
100% { filter: grayscale(1) brightness(0.55) contrast(0.9) saturate(0); }
}
.grid-cell--revealed::before {
content: '';
position: absolute;
inset: 12%;
border: 1px solid rgba(217, 104, 82, 0.85);
border-radius: 2px;
animation: revealPulse 0.9s ease-out 3;
pointer-events: none;
}
@keyframes revealPulse {
0%   { opacity: 0.15; transform: scale(1.25); }
60%  { opacity: 1;    transform: scale(1); }
100% { opacity: 0.7;  transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--mine::after,
.grid-cell--detonated::after,
.grid-cell--revealed::before {
animation: none;
}
.grid-cell--detonated::after {
filter: grayscale(1) brightness(0.55) contrast(0.9) saturate(0);
}
}
.grid-cell--fading::after {
animation: missSink var(--miss-fade-ms, 2000ms) ease-in forwards;
}
@keyframes missSink {
0%, 72% {
opacity: 1;
transform: scale(1) translateY(0);
filter: none;
}
100% {
opacity: 0;
transform: scale(0.72) translateY(22%);
filter: blur(2px) brightness(0.7);
}
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--fading::after {
animation: none;
opacity: 0;
transition: opacity 400ms linear;
}
}
.grid-cell--sunk {
background: rgba(255, 61, 90, 0.3);
border-color: var(--accent-red);
}
.grid-cell--sunk::after {
content: '🔥';
font-size: 0.9rem;
animation: fireFlicker 1s ease-in-out infinite alternate;
}
.grid-cell--sunk-covered {
background: transparent;
border-color: rgba(201, 162, 39, 0.06);
}
.grid-cell--sunk-covered::after {
content: none;
}
@keyframes hitMark {
from { transform: scale(0) rotate(-90deg); }
to   { transform: scale(1) rotate(0); }
}
@keyframes missSurface {
0%   { transform: scale(0.42) translateY(7px); }
70%  { transform: scale(1.06) translateY(-1.5px); }
100% { transform: scale(1) translateY(0); }
}
@keyframes missEmerge {
0%   { opacity: 0; filter: blur(3px) brightness(0.45) saturate(0.5); }
25%  { opacity: 0.75; }
55%  { filter: blur(0.4px) brightness(0.9) saturate(0.9); }
75%  { filter: blur(0) brightness(1.12) saturate(1.05); }
100% { opacity: 1; filter: blur(0) brightness(1) saturate(1); }
}
@keyframes ringFloat {
0%   { transform: translateY(0)      rotate(0deg); }
50%  { transform: translateY(-0.8px) rotate(0.4deg); }
100% { transform: translateY(0)      rotate(0deg); }
}
@keyframes fireFlicker {
0% { transform: scale(1); }
100% { transform: scale(1.15); }
}
.grid-wrapper {
display: flex;
flex-direction: column;
gap: 4px;
}
.grid-cols-header {
display: grid;
grid-template-columns: 28px repeat(var(--grid-cols, 10), clamp(28px, 4vw, 44px));
gap: 2px;
padding-left: 0;
}
.grid-cols-header span {
text-align: center;
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--text-muted);
font-weight: 600;
}
.grid-body {
display: flex;
gap: 4px;
}
.grid-rows-header {
display: flex;
flex-direction: column;
gap: 2px;
justify-content: center;
}
.grid-rows-header span {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: clamp(28px, 4vw, 44px);
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--text-muted);
font-weight: 600;
}
@media (max-width: 768px) {
.grid-cell {
width: clamp(26px, 8vw, 36px);
height: clamp(26px, 8vw, 36px);
}
}
.grid-cell--scanned::before {
content: '';
position: absolute;
inset: 0;
background: rgba(122, 162, 196, 0.14);
border: 1px solid rgba(122, 162, 196, 0.3);
pointer-events: none;
}
.grid-cell--scanned-hot::before {
background: rgba(240, 195, 104, 0.16);
border-color: rgba(240, 195, 104, 0.42);
animation: sonarSweep 1.4s ease-out 2;
}
@keyframes sonarSweep {
0%   { opacity: 0.2; }
50%  { opacity: 1; }
100% { opacity: 0.75; }
}
.grid-cell--marked::after {
content: '📍';
position: absolute;
top: 1px;
right: 1px;
font-size: 0.62rem;
line-height: 1;
pointer-events: none;
filter: drop-shadow(0 0 3px rgba(240, 195, 104, 0.7));
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--scanned-hot::before { animation: none; }
}
.grid-cell--port {
background: rgba(240, 195, 104, 0.12);
border-color: rgba(240, 195, 104, 0.55);
z-index: calc(var(--row, 0) * 2 + 40);
}
.grid-cell--port::after {
content: '';
position: absolute;
inset: -110% -8% 0;
background: url('../assets/sprites/default/lighthouse.png') center bottom / contain no-repeat;
filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6));
pointer-events: none;
z-index: 3;
}
.grid-cell--port::before {
content: '';
position: absolute;
left: 43%;
top: calc(-66% + 4px);
width: 300%;
height: 300%;
border-radius: 50%;
--feuer-kern:   rgba(255, 244, 200, 0.8);
--feuer-innen:  rgba(255, 232, 160, 0.45);
--feuer-aussen: rgba(255, 226, 140, 0.15);
--feuer-strahl: rgba(255, 232, 150, 0.55);
--feuer-saum:   rgba(255, 232, 150, 0.18);
--feuer-gegen:  rgba(255, 232, 150, 0.22);
--feuer-gegen2: rgba(255, 232, 150, 0.07);
background:
radial-gradient(circle at center,
var(--feuer-kern) 0 1.8%,
var(--feuer-innen) 4%,
var(--feuer-aussen) 8%,
transparent 13%),
conic-gradient(from -14deg,
var(--feuer-strahl) 0deg,
var(--feuer-saum) 16deg,
transparent 30deg,
transparent 180deg,
var(--feuer-gegen) 180deg,
var(--feuer-gegen2) 194deg,
transparent 206deg);
-webkit-mask-image: radial-gradient(circle at center, #000 0 28%, transparent 60%);
mask-image: radial-gradient(circle at center, #000 0 28%, transparent 60%);
mix-blend-mode: screen;
transform: translate(-50%, -50%) rotate(0deg);
animation: lighthouseSweep 8s linear infinite;
pointer-events: none;
z-index: 4;
}
@keyframes lighthouseSweep {
to { transform: translate(-50%, -50%) rotate(360deg); }
}
.grid-cell--port-reached::before {
--feuer-kern:   rgba(232, 255, 236, 0.95);
--feuer-innen:  rgba(120, 255, 158, 0.6);
--feuer-aussen: rgba(60, 226, 118, 0.2);
--feuer-strahl: rgba(110, 250, 150, 0.65);
--feuer-saum:   rgba(110, 250, 150, 0.22);
--feuer-gegen:  rgba(110, 250, 150, 0.28);
--feuer-gegen2: rgba(110, 250, 150, 0.09);
animation: lighthouseSweep 3.2s linear infinite;
}
.harbor-firework {
position: absolute;
left: 43%;
top: -60%;
width: 0;
height: 0;
pointer-events: none;
z-index: 6;
}
.harbor-firework__shell {
position: absolute;
left: 0;
top: 0;
width: 3px;
height: 3px;
margin: -1.5px 0 0 -1.5px;
border-radius: 50%;
background: rgba(255, 246, 214, 0.95);
box-shadow: 0 0 6px rgba(255, 226, 140, 0.9);
animation: fireworkRise var(--dauer, 1.4s) cubic-bezier(0.2, 0.7, 0.4, 1) var(--start, 0s) infinite;
}
.harbor-firework__spark {
position: absolute;
left: 0;
top: 0;
width: 2.5px;
height: 2.5px;
margin: -1.25px 0 0 -1.25px;
border-radius: 50%;
background: var(--funke-farbe, rgba(255, 226, 140, 1));
box-shadow: 0 0 5px var(--funke-farbe, rgba(255, 226, 140, 0.9));
opacity: 0;
animation: fireworkBurst var(--dauer, 1.4s) ease-out var(--start, 0s) infinite;
}
@keyframes fireworkRise {
0%   { transform: translateY(0) scale(1); opacity: 0; }
8%   { opacity: 1; }
45%  { transform: translateY(var(--hoehe, -26px)) scale(1); opacity: 1; }
52%  { transform: translateY(var(--hoehe, -26px)) scale(0.4); opacity: 0; }
100% { transform: translateY(var(--hoehe, -26px)) scale(0.4); opacity: 0; }
}
@keyframes fireworkBurst {
0%, 48% {
transform: translateY(var(--hoehe, -26px)) rotate(var(--winkel, 0deg)) translateX(0);
opacity: 0;
}
54% { opacity: 1; }
100% {
transform: translateY(calc(var(--hoehe, -26px) + 6px))
rotate(var(--winkel, 0deg))
translateX(var(--weite, 14px));
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--port-reached::before { animation: none; }
.harbor-firework { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--port::before {
animation: none;
background:
radial-gradient(circle at center,
rgba(255, 244, 200, 0.8) 0 1.8%,
rgba(255, 232, 160, 0.45) 5%,
rgba(255, 226, 140, 0.15) 12%,
transparent 20%);
}
}
.grid-cell--harbor { z-index: calc(var(--row, 0) * 2 + 40); }
.grid-cell--harbor::after {
content: '';
position: absolute;
left: 50%;
top: 34%;
width: 86%;
height: 66%;
transform: translateX(-50%);
border-radius: 50%;
background: radial-gradient(ellipse 50% 55% at 47% 30%,
rgba(255, 236, 170, 0.75) 0 3%,
rgba(255, 214, 120, 0.42) 12%,
rgba(255, 190, 90, 0.16) 32%,
transparent 60%);
mix-blend-mode: screen;
opacity: 0.9;
pointer-events: none;
z-index: 4;
}
.grid-cell--harbor.is-flickering::after {
animation: harborLampFlicker 1.2s ease-in-out;
}
@keyframes harborLampFlicker {
0%   { opacity: 0.9; }
18%  { opacity: 0.72; }
34%  { opacity: 0.88; }
52%  { opacity: 0.7; }
68%  { opacity: 0.93; }
82%  { opacity: 0.78; }
100% { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--harbor.is-flickering::after { animation: none; }
}
.grid-cell--harbor::before {
content: '';
position: absolute;
inset: -150% -30% 0;
background: url('../assets/sprites/default/harbor.png') center bottom / contain no-repeat;
filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.6));
pointer-events: none;
z-index: 3;
}
.grid-cell--cargo {
background: rgba(122, 162, 196, 0.2);
border-color: rgba(122, 162, 196, 0.5);
}
.grid-cell--cargo-damaged {
background: rgba(210, 133, 58, 0.24);
border-color: rgba(210, 133, 58, 0.6);
}
.grid-cell--course {
background: none;
box-shadow: none;
}
.course-arrow {
position: absolute;
cursor: pointer;
z-index: 100;
}
.course-arrow::before {
content: '';
position: absolute;
inset: -14%;
background: radial-gradient(circle at center,
rgba(240, 195, 104, 0.22) 0 18%,
rgba(240, 195, 104, 0.10) 38%,
transparent 68%);
animation: courseArrowGlow 1.8s ease-in-out infinite;
pointer-events: none;
}
.course-arrow::after {
content: '';
position: absolute;
inset: 16%;
pointer-events: none;
background-image: var(--pfeil-bild);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
opacity: 0.85;
animation: courseArrowPulse 1.8s ease-in-out infinite;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}
.course-arrow--onship::after {
inset: 22%;
filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.85));
}
.course-arrow--onship::before {
display: none;
}
.grid-cell--course-n { --pfeil-bild: url('../media/ui/arrows/arrow-up.png'); }
.grid-cell--course-e { --pfeil-bild: url('../media/ui/arrows/arrow-right.png'); }
.grid-cell--course-s { --pfeil-bild: url('../media/ui/arrows/arrow-down.png'); }
.grid-cell--course-w { --pfeil-bild: url('../media/ui/arrows/arrow-left.png'); }
.course-arrow:hover::after {
animation: none;
opacity: 1;
transform: scale(1.12);
}
.course-arrow:hover::before {
animation: none;
opacity: 1;
}
@keyframes courseArrowPulse {
0%, 100% { opacity: 0.65; }
50%      { opacity: 0.95; }
}
@keyframes courseArrowGlow {
0%, 100% { opacity: 0.5; transform: scale(0.9); }
50%      { opacity: 1;   transform: scale(1.05); }
}
.grid-cell--waypoint {
z-index: calc(var(--row, 0) * 2 + 1);
}
.grid-cell--waypoint::after {
content: '';
position: absolute;
inset: -95% 4% 15%;
background: url('../assets/sprites/default/waypoint.png') center bottom / contain no-repeat;
filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
transform-origin: 50% 100%;
animation: buoyRock 3.8s ease-in-out infinite;
pointer-events: none;
z-index: 3;
}
.grid-cell--waypoint-passed::after {
opacity: 0.7;
filter: grayscale(0.35) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}
@keyframes buoyRock {
0%, 100% { transform: rotate(-2.6deg); }
30%      { transform: rotate(1.8deg); }
55%      { transform: rotate(-1.2deg); }
78%      { transform: rotate(2.4deg); }
}
.grid-cell--waypoint::before {
content: '';
position: absolute;
inset: -95% 4% 15%;
background: radial-gradient(circle at 45.3% 42.5%,
rgba(255, 250, 248, 1) 0 3%,
var(--buoy-glow-core, rgba(255, 96, 72, 0.95)) 8%,
var(--buoy-glow-mid, rgba(240, 60, 48, 0.55)) 15%,
var(--buoy-glow-halo, rgba(214, 46, 38, 0.22)) 26%,
transparent 42%);
mix-blend-mode: screen;
transform-origin: 50% 100%;
animation: buoyRock 3.8s ease-in-out infinite,
buoyBlink 3.8s ease-in-out infinite;
pointer-events: none;
z-index: 4;
}
.grid-cell--waypoint-passed::before {
--buoy-glow-core: rgba(104, 255, 138, 0.95);
--buoy-glow-mid: rgba(46, 224, 96, 0.55);
--buoy-glow-halo: rgba(30, 190, 80, 0.22);
opacity: 0.85;
animation: buoyRock 3.8s ease-in-out infinite;
}
.grid-cell--waypoint-revealed {
box-shadow: inset 0 0 0 2px rgba(217, 104, 82, 0.75);
}
.sonar-sweep {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
z-index: 2;
}
.sonar-sweep::before {
content: '';
position: absolute;
top: -20%;
bottom: -20%;
width: 42%;
background: linear-gradient(100deg,
transparent 0,
rgba(122, 200, 240, 0.14) 35%,
rgba(168, 226, 255, 0.3) 50%,
rgba(122, 200, 240, 0.14) 65%,
transparent 100%);
transform: skewX(-12deg);
animation: sonarSweep 1.6s cubic-bezier(0.3, 0, 0.4, 1) both;
}
.sonar-sweep--found::before {
background: linear-gradient(100deg,
transparent 0,
rgba(240, 195, 104, 0.18) 35%,
rgba(255, 226, 160, 0.42) 50%,
rgba(240, 195, 104, 0.18) 65%,
transparent 100%);
}
@keyframes sonarSweep {
0%   { left: -45%; opacity: 0; }
12%  { opacity: 1; }
85%  { opacity: 1; }
100% { left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.sonar-sweep { display: none; }
}
.buoy-flare {
position: absolute;
left: 46%;
top: -45%;
width: 0;
height: 0;
pointer-events: none;
z-index: 6;
--brenndauer: 2.6s;
--steighoehe: calc(clamp(28px, 4vw, 44px) * 1.4);
}
.buoy-flare__shell {
position: absolute;
left: 0;
top: 0;
width: 4px;
height: 4px;
margin: -2px 0 0 -2px;
border-radius: 50%;
background: rgba(255, 236, 224, 1);
box-shadow: 0 0 10px rgba(255, 72, 48, 1),
0 0 20px rgba(228, 42, 30, 0.75);
animation: flareRise var(--brenndauer, 2.6s) cubic-bezier(0.2, 0.7, 0.4, 1) both;
}
.buoy-flare__trail {
position: absolute;
left: -2.5px;
top: calc(var(--steighoehe, 62px) * -1);
width: 5px;
height: var(--steighoehe, 62px);
border-radius: 3px;
background: linear-gradient(180deg,
rgba(255, 176, 150, 0.95) 0,
rgba(255, 78, 52, 0.8) 22%,
rgba(228, 42, 30, 0.42) 62%,
transparent 100%);
filter: blur(1.2px);
mix-blend-mode: screen;
transform-origin: 50% 100%;
transform: scaleY(0);
opacity: 0;
animation: flareTrail var(--brenndauer, 2.6s) linear both;
}
@keyframes flareTrail {
0% {
transform: scaleY(0) skewX(0deg);
opacity: 0;
}
5% {
transform: scaleY(0.28) skewX(var(--neigung, -6deg));
opacity: 0.9;
}
10% {
transform: scaleY(0.53) skewX(var(--neigung, -6deg));
opacity: 1;
}
15% {
transform: scaleY(0.79) skewX(var(--neigung, -6deg));
opacity: 1;
}
20% {
transform: scaleY(1) skewX(var(--neigung, -6deg));
opacity: 1;
}
30% {
transform: scaleY(1) skewX(var(--neigung, -6deg));
opacity: 0.75;
}
55% {
transform: scaleY(1) skewX(var(--neigung, -6deg));
opacity: 0.25;
}
100% {
transform: scaleY(1) skewX(var(--neigung, -6deg));
opacity: 0;
}
}
.buoy-flare__spark {
position: absolute;
left: 0;
top: 0;
width: 3px;
height: 3px;
margin: -1.5px 0 0 -1.5px;
border-radius: 50%;
background: var(--funke-farbe, rgba(255, 72, 48, 1));
box-shadow: 0 0 7px var(--funke-farbe, rgba(255, 72, 48, 1));
opacity: 0;
animation: flareBurst var(--brenndauer, 2.6s) ease-out both;
}
@keyframes flareRise {
0% {
transform: translate(0, 0) scale(1);
opacity: 0;
}
5% {
transform: translate(calc(var(--drift, 6px) * 0.3),
calc(var(--steighoehe, 62px) * -0.28)) scale(1);
opacity: 1;
}
10% {
transform: translate(calc(var(--drift, 6px) * 0.58),
calc(var(--steighoehe, 62px) * -0.53)) scale(1.05);
opacity: 1;
}
15% {
transform: translate(calc(var(--drift, 6px) * 0.82),
calc(var(--steighoehe, 62px) * -0.79)) scale(1.1);
opacity: 1;
}
20% {
transform: translate(var(--drift, 6px),
calc(var(--steighoehe, 62px) * -1)) scale(1.15);
opacity: 1;
}
24% {
transform: translate(var(--drift, 6px),
calc(var(--steighoehe, 62px) * -1)) scale(4.5);
opacity: 1;
}
32%, 100% {
transform: translate(var(--drift, 6px),
calc(var(--steighoehe, 62px) * -1)) scale(6);
opacity: 0;
}
}
@keyframes flareBurst {
0%, 20% {
transform: translate(var(--drift, 6px), calc(var(--steighoehe, 62px) * -1))
rotate(var(--winkel, 0deg)) translateX(0);
opacity: 0;
}
26% { opacity: 1; }
70% {
transform: translate(var(--drift, 6px), calc(var(--steighoehe, 62px) * -1 + 5px))
rotate(var(--winkel, 0deg))
translateX(calc(var(--weite, 18px) * 0.8));
opacity: 0.85;
}
100% {
transform: translate(var(--drift, 6px), calc(var(--steighoehe, 62px) * -1 + 9px))
rotate(var(--winkel, 0deg))
translateX(var(--weite, 18px));
opacity: 0;
}
}
.buoy-flare__glow {
position: absolute;
left: calc(-34px + var(--drift, 6px));
top: calc(var(--steighoehe, 62px) * -1 - 34px);
width: 68px;
height: 68px;
border-radius: 50%;
background: radial-gradient(circle,
rgba(255, 96, 64, 0.7) 0 25%,
rgba(228, 42, 30, 0.42) 48%,
rgba(190, 30, 24, 0.16) 68%,
transparent 82%);
mix-blend-mode: screen;
pointer-events: none;
z-index: -1;
animation: flareGlow var(--brenndauer, 2.6s) ease-out both;
}
@keyframes flareGlow {
0%   { opacity: 0; }
18%  { opacity: 0.35; }
26%  { opacity: 1; }
65%  { opacity: 0.8; }
100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.buoy-flare { display: none; }
}
.grid-cell--trail {
z-index: calc(var(--row, 0) * 2 + 1);
}
.grid-cell--trail::after {
content: '';
position: absolute;
inset: -95% 4% 15%;
background: url('../assets/sprites/default/waypoint.png') center bottom / contain no-repeat;
filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
transform-origin: 50% 100%;
animation: buoyRock 3.8s ease-in-out infinite;
pointer-events: none;
z-index: 3;
}
.grid-cell--trail::before {
content: '';
position: absolute;
inset: -95% 4% 15%;
background: radial-gradient(circle at 45.3% 42.5%,
rgba(255, 250, 248, 1) 0 3%,
rgba(255, 214, 120, 0.95) 8%,
rgba(240, 195, 104, 0.5) 15%,
rgba(214, 168, 70, 0.2) 26%,
transparent 42%);
mix-blend-mode: screen;
transform-origin: 50% 100%;
animation: buoyRock 3.8s ease-in-out infinite,
buoyBlink 3.8s ease-in-out infinite;
pointer-events: none;
z-index: 4;
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--trail::after,
.grid-cell--trail::before {
animation: none;
transform: rotate(0deg);
}
}
@keyframes buoyBlink {
0%, 100% { opacity: 0.8; }
50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.grid-cell--waypoint::after,
.grid-cell--waypoint::before,
.grid-cell--waypoint-passed::before {
animation: none;
transform: rotate(0deg);
}
}
.grid--steerable .grid-cell { cursor: default; }
.grid--steerable .ship-sprite-wrap {
pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
.course-arrow::before,
.course-arrow::after { animation: none; }
}

/* ── css/sprites.css ── */
.ship-sprite-wrap {
overflow: visible;
transition: opacity 0.25s ease;
}
.ship-sprite-wrap--submerged {
opacity: 0.38;
}
@media (prefers-reduced-motion: reduce) {
.ship-sprite-wrap { transition: none; }
}
.ship-sprite {
background-repeat: no-repeat;
background-size: contain;
background-position: center;
image-rendering: auto;
pointer-events: none;
z-index: 2;
transition: filter 0.4s ease, opacity 0.4s ease;
will-change: transform;
}
.ship-sprite--h {
transform-origin: 50% 50%;
}
.ship-sprite--v {
transform-origin: 50% 50%;
}
@keyframes shipBobH {
0%   { transform: translateY(0)    rotate(0deg); }
25%  { transform: translateY(-2px) rotate(0.6deg); }
50%  { transform: translateY(0.5px) rotate(0deg); }
75%  { transform: translateY(-1.5px) rotate(-0.7deg); }
100% { transform: translateY(0)    rotate(0deg); }
}
@keyframes shipBobV {
0%   { transform: translateX(0)    rotate(0deg); }
25%  { transform: translateX(-2px) rotate(-0.6deg); }
50%  { transform: translateX(0.5px) rotate(0deg); }
75%  { transform: translateX(-1.5px) rotate(0.7deg); }
100% { transform: translateX(0)    rotate(0deg); }
}
.ship-sprite--theme-default.ship-sprite--size2.ship-sprite--h {
background-image: url('../assets/sprites/default/size2_h.png');
--sprite-ratio: 2.288;
}
.ship-sprite--theme-default.ship-sprite--size2.ship-sprite--v {
background-image: url('../assets/sprites/default/size2_v.png');
--sprite-ratio: 0.376;
}
.ship-sprite--theme-default.ship-sprite--size3.ship-sprite--h {
background-image: url('../assets/sprites/default/size3_h.png');
--sprite-ratio: 3.5;
}
.ship-sprite--theme-default.ship-sprite--size3.ship-sprite--v {
background-image: url('../assets/sprites/default/size3_v.png');
--sprite-ratio: 0.206;
}
.ship-sprite--theme-default.ship-sprite--size4.ship-sprite--h {
background-image: url('../assets/sprites/default/size4_h.png');
--sprite-ratio: 3.143;
}
.ship-sprite--theme-default.ship-sprite--size4.ship-sprite--v {
background-image: url('../assets/sprites/default/size4_v.png');
--sprite-ratio: 0.262;
}
.ship-sprite--theme-default.ship-sprite--size5.ship-sprite--h {
background-image: url('../assets/sprites/default/size5_h.png');
--sprite-ratio: 3.197;
}
.ship-sprite--theme-default.ship-sprite--size5.ship-sprite--v {
background-image: url('../assets/sprites/default/size5_v.png');
--sprite-ratio: 0.298;
}
.ship-sprite--theme-default.ship-sprite--size2.ship-sprite--h.ship-sprite--sunk {
background-image: url('../assets/sprites/default/size2_h_sunk.png');
--sprite-ratio: 2.83;
}
.ship-sprite--theme-default.ship-sprite--size2.ship-sprite--v.ship-sprite--sunk {
background-image: url('../assets/sprites/default/size2_v_sunk.png');
--sprite-ratio: 0.33;
}
.ship-sprite--theme-default.ship-sprite--size3.ship-sprite--h.ship-sprite--sunk {
background-image: url('../assets/sprites/default/size3_h_sunk.png');
--sprite-ratio: 3.383;
}
.ship-sprite--theme-default.ship-sprite--size3.ship-sprite--v.ship-sprite--sunk {
background-image: url('../assets/sprites/default/size3_v_sunk.png');
--sprite-ratio: 0.271;
}
.ship-sprite--theme-default.ship-sprite--size4.ship-sprite--h.ship-sprite--sunk {
background-image: url('../assets/sprites/default/size4_h_sunk.png');
--sprite-ratio: 3.394;
}
.ship-sprite--theme-default.ship-sprite--size4.ship-sprite--v.ship-sprite--sunk {
background-image: url('../assets/sprites/default/size4_v_sunk.png');
--sprite-ratio: 0.375;
}
.ship-sprite--theme-default.ship-sprite--size5.ship-sprite--h.ship-sprite--sunk {
background-image: url('../assets/sprites/default/size5_h_sunk.png');
--sprite-ratio: 3.008;
}
.ship-sprite--theme-default.ship-sprite--size5.ship-sprite--v.ship-sprite--sunk {
background-image: url('../assets/sprites/default/size5_v_sunk.png');
--sprite-ratio: 0.385;
}
.ship-sprite--theme-default.ship-sprite--cargo {
background-image: none;
}
.ship-sprite--theme-default.ship-sprite--cargo::before {
content: '';
position: absolute;
inset: 0;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
--cargo-flip: scaleX(-1);
transform: var(--cargo-flip);
pointer-events: none;
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--h {
--sprite-ratio: 3.385;
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--h::before {
background-image: url('../assets/sprites/default/cargo_h.png');
inset: -14% 0 14%;
}
.ship-sprite--cargo.ship-sprite--heading-e::before { --cargo-flip: scaleX(-1); }
.ship-sprite--cargo.ship-sprite--heading-w::before { --cargo-flip: none; }
.ship-sprite--cargo.ship-sprite--heading-n::before { --cargo-flip: none; }
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--v.ship-sprite--heading-s {
--sprite-ratio: 0.256;
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--v.ship-sprite--heading-s::before {
background-image: url('../assets/sprites/default/cargo_v_down.png');
--cargo-flip: none;
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--v {
--sprite-ratio: 0.255;
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--v::before {
background-image: url('../assets/sprites/default/cargo_v.png');
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--h.ship-sprite--sunk {
--sprite-ratio: 3.210;
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--h.ship-sprite--sunk::before {
background-image: url('../assets/sprites/default/cargo_h_sunk.png');
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--v.ship-sprite--sunk {
--sprite-ratio: 0.266;
}
.ship-sprite--theme-default.ship-sprite--cargo.ship-sprite--v.ship-sprite--sunk::before {
background-image: url('../assets/sprites/default/cargo_v_sunk.png');
}
.ship-sprite--normal {
filter: brightness(1.05) drop-shadow(0 1px 3px rgba(0, 180, 255, 0.25));
}
.ship-sprite--normal.ship-sprite--h { animation: shipBobH 4.2s ease-in-out infinite; }
.ship-sprite--normal.ship-sprite--v { animation: shipBobV 4.6s ease-in-out infinite; }
.ship-sprite--hit.ship-sprite--h {
animation: spriteHitPulse 1.5s ease-in-out infinite alternate,
shipBobH 4.2s ease-in-out infinite;
}
.ship-sprite--hit.ship-sprite--v {
animation: spriteHitPulse 1.5s ease-in-out infinite alternate,
shipBobV 4.6s ease-in-out infinite;
}
@keyframes spriteHitPulse {
0%   { filter: brightness(1) drop-shadow(0 0 3px rgba(255, 80, 40, 0.3)); }
100% { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 60, 20, 0.7))
sepia(0.3) saturate(2) hue-rotate(-10deg); }
}
.ship-sprite--sunk {
opacity: 1;
animation: spriteSinking 1.8s ease-in forwards;
}
@keyframes spriteSinking {
0%   { transform: translateY(0) rotate(0deg); filter: grayscale(0.4) brightness(0.75) saturate(0.4); }
40%  { transform: translateY(3px) rotate(1.5deg); }
100% { transform: translateY(6px) rotate(2.2deg); filter: grayscale(1) brightness(0.55) contrast(0.9) saturate(0); }
}
.ship-sprite--sunk .deck-damage__scorch,
.ship-sprite--sunk .deck-damage__fire,
.ship-sprite--sunk .deck-damage--restored .deck-damage__scorch,
.ship-sprite--sunk .deck-damage--restored .deck-damage__fire {
animation: none;
opacity: 0;
transition: opacity 0.6s ease;
}
.deck-explosion {
position: absolute;
width: 0;
height: 0;
pointer-events: none;
z-index: 6;
}
.deck-explosion__flash {
position: absolute;
left: 0;
top: 0;
width: 10px;
height: 9px;
border-radius: 48% 52% 51% 49%;
background: radial-gradient(circle,
rgba(255, 255, 255, 0.95) 0%,
rgba(255, 210, 80, 0.9) 25%,
rgba(255, 120, 30, 0.6) 55%,
rgba(255, 60, 20, 0) 75%);
transform: translate(-50%, -50%) rotate(-11deg) scale(0);
animation: explosionFlash 0.46s ease-out forwards;
}
@keyframes explosionFlash {
0%   { transform: translate(-50%, -50%) rotate(-11deg) scale(0);      opacity: 1; }
28%  { transform: translate(-50%, -50%) rotate(-11deg) scale(3.9, 3.3); opacity: 1; }
100% { transform: translate(-50%, -50%) rotate(-11deg) scale(4.4, 5);   opacity: 0; }
}
.deck-explosion__smoke {
position: absolute;
left: 0;
top: 0;
width: 20px;
height: 20px;
border-radius: 50%;
background: radial-gradient(circle,
rgba(120, 120, 120, 0.85) 0%,
rgba(80, 80, 80, 0.6) 45%,
rgba(70, 70, 70, 0) 80%);
filter: blur(1.5px);
transform: translate(-50%, -40%) scale(0.5);
opacity: 0;
animation: explosionSmoke 1.6s ease-out 0.1s forwards;
}
@keyframes explosionSmoke {
0%   { transform: translate(-50%, -40%) scale(0.5); opacity: 0; }
15%  { opacity: 0.95; }
100% { transform: translate(-50%, -220%) scale(4); opacity: 0; }
}
.deck-explosion__sparks,
.deck-explosion__debris-group {
position: absolute;
left: 0;
top: 0;
}
.deck-explosion__spark {
position: absolute;
left: 0;
top: 0;
width: var(--spark-size, 4px);
height: var(--spark-size, 4px);
border-radius: 50%;
background: #ffd24a;
box-shadow: 0 0 4px 1px rgba(255, 160, 40, 0.8);
transform: translate(-50%, -50%);
opacity: 0;
animation: explosionSpark var(--spark-dur, 0.6s) ease-out forwards;
animation-delay: var(--spark-delay, 0.03s);
}
.deck-explosion__spark:nth-child(1) { --angle: -8deg;  --dist: 24px; --spark-size: 5px;   --spark-dur: 0.55s; --spark-delay: 0s; }
.deck-explosion__spark:nth-child(2) { --angle: 54deg;  --dist: 32px; --spark-size: 3px;   --spark-delay: 0.05s; }
.deck-explosion__spark:nth-child(3) { --angle: 135deg; --dist: 26px; --spark-size: 4.5px; --spark-dur: 0.7s; --spark-delay: 0.02s; }
.deck-explosion__spark:nth-child(4) { --angle: 172deg; --dist: 20px; --spark-size: 3.5px; --spark-dur: 0.5s; --spark-delay: 0.08s; }
.deck-explosion__spark:nth-child(5) { --angle: 248deg; --dist: 30px; --spark-size: 4px;   --spark-dur: 0.65s; --spark-delay: 0.01s; }
.deck-explosion__spark:nth-child(6) { --angle: 296deg; --dist: 22px; --spark-size: 3px;   --spark-dur: 0.55s; --spark-delay: 0.06s; }
@keyframes explosionSpark {
0%   { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(1);    opacity: 1; }
100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--dist, 28px)) scale(0.2); opacity: 0; }
}
.deck-explosion__debris {
position: absolute;
left: 0;
top: 0;
width: 7px;
height: 7px;
background: linear-gradient(135deg, #6b6055 0%, #3a332c 60%, #221e19 100%);
clip-path: polygon(15% 0%, 100% 20%, 85% 100%, 0% 70%);
opacity: 0;
animation: debrisFly 0.85s cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
animation-delay: 0.02s;
}
.deck-explosion__debris:nth-child(1) { --angle: 20deg;  --dist: 30px; --spin: 340deg;  width: 8px; height: 6px; }
.deck-explosion__debris:nth-child(2) { --angle: 100deg; --dist: 22px; --spin: -260deg; width: 6px; height: 8px; }
.deck-explosion__debris:nth-child(3) { --angle: 200deg; --dist: 34px; --spin: 300deg;  width: 9px; height: 7px; }
@keyframes debrisFly {
0%   { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) rotate(0deg) translateY(0) scale(1); opacity: 1; }
35%  { opacity: 1; }
100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--dist)) rotate(var(--spin)) translateY(16px) scale(0.7); opacity: 0; }
}
.water-splash {
position: absolute;
width: 0;
height: 0;
pointer-events: none;
z-index: 5;
}
.water-splash__hole {
position: absolute;
left: 0;
top: 0;
width: 12px;
height: 12px;
border-radius: 50%;
background: radial-gradient(circle,
rgba(3, 20, 34, 0.85) 0%,
rgba(8, 38, 60, 0.5) 55%,
rgba(10, 45, 70, 0) 80%);
transform: translate(-50%, -50%) scale(0);
animation: splashHole 0.42s ease-out forwards;
}
@keyframes splashHole {
0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
30%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
}
.water-splash__crown {
position: absolute;
left: 0;
top: 0;
width: 14px;
height: 13px;
border-radius: 50%;
border: 3px solid rgba(226, 246, 255, 0.9);
box-shadow:
0 0 6px 1px rgba(190, 232, 255, 0.5),
inset 0 0 4px rgba(255, 255, 255, 0.6);
transform: translate(-50%, -50%) scale(0);
opacity: 0;
animation: splashCrown 0.5s cubic-bezier(0.15, 0.7, 0.35, 1) 0.06s forwards;
}
@keyframes splashCrown {
0%   { transform: translate(-50%, -50%) scale(0.15); opacity: 0; border-width: 3px; }
18%  { opacity: 1; }
100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; border-width: 0.5px; }
}
.water-splash__drops {
position: absolute;
left: 0;
top: 0;
}
.water-splash__drop {
position: absolute;
left: 0;
top: 0;
width: var(--drop-size, 3px);
height: var(--drop-size, 3px);
border-radius: 50%;
background: radial-gradient(circle at 35% 30%,
rgba(255, 255, 255, 0.95) 0%,
rgba(198, 236, 255, 0.85) 45%,
rgba(150, 210, 245, 0.7) 100%);
opacity: 0;
animation: splashDrop var(--drop-dur, 0.55s) cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
animation-delay: var(--drop-delay, 0.04s);
}
.water-splash__drop:nth-child(1) { --angle: 14deg;  --dist: 21px; --drop-size: 3.5px; --drop-dur: 0.55s; --drop-delay: 0.04s; }
.water-splash__drop:nth-child(2) { --angle: 67deg;  --dist: 16px; --drop-size: 2.5px; --drop-dur: 0.48s; --drop-delay: 0.07s; }
.water-splash__drop:nth-child(3) { --angle: 121deg; --dist: 23px; --drop-size: 3px;   --drop-dur: 0.62s; --drop-delay: 0.03s; }
.water-splash__drop:nth-child(4) { --angle: 168deg; --dist: 14px; --drop-size: 2px;   --drop-dur: 0.45s; --drop-delay: 0.09s; }
.water-splash__drop:nth-child(5) { --angle: 214deg; --dist: 20px; --drop-size: 3.2px; --drop-dur: 0.58s; --drop-delay: 0.05s; }
.water-splash__drop:nth-child(6) { --angle: 259deg; --dist: 17px; --drop-size: 2.4px; --drop-dur: 0.5s;  --drop-delay: 0.08s; }
.water-splash__drop:nth-child(7) { --angle: 305deg; --dist: 24px; --drop-size: 2.8px; --drop-dur: 0.6s;  --drop-delay: 0.02s; }
.water-splash__drop:nth-child(8) { --angle: 340deg; --dist: 15px; --drop-size: 2.2px; --drop-dur: 0.47s; --drop-delay: 0.10s; }
@keyframes splashDrop {
0%   { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(2px) translateY(0) scale(1); opacity: 1; }
70%  { opacity: 1; }
100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--dist)) translateY(9px) scale(0.45); opacity: 0; }
}
.water-splash__ripple {
position: absolute;
left: 0;
top: 0;
width: 16px;
height: 15px;
border-radius: 50%;
border: 1.5px solid rgba(178, 224, 252, 0.55);
transform: translate(-50%, -50%) scale(0.2);
opacity: 0;
animation: splashRipple 0.75s ease-out 0.26s forwards;
}
.water-splash__ripple--b {
animation-delay: 0.46s;
animation-duration: 0.66s;
border-color: rgba(178, 224, 252, 0.35);
}
@keyframes splashRipple {
0%   { transform: translate(-50%, -50%) scale(0.25); opacity: 0; border-width: 1.5px; }
22%  { opacity: 0.8; }
100% { transform: translate(-50%, -50%) scale(2.9); opacity: 0; border-width: 0.4px; }
}
@media (prefers-reduced-motion: reduce) {
.water-splash { display: none; }
}
.mine-blast {
position: absolute;
width: 0;
height: 0;
pointer-events: none;
z-index: 3;
}
.mine-blast__flash {
position: absolute;
left: 0;
top: 0;
width: 46px;
height: 46px;
margin: -23px 0 0 -23px;
border-radius: 50%;
background: radial-gradient(circle,
rgba(255, 255, 240, 0.95) 0%,
rgba(255, 205, 110, 0.8) 35%,
rgba(233, 130, 40, 0.35) 60%,
transparent 75%);
opacity: 0;
animation: mineFlash 0.35s ease-out forwards;
}
@keyframes mineFlash {
0%   { transform: scale(0.3); opacity: 0; }
12%  { transform: scale(1);   opacity: 1; }
100% { transform: scale(1.5); opacity: 0; }
}
.mine-blast__fire {
position: absolute;
left: 0;
top: 0;
width: 74px;
height: 74px;
margin: -37px 0 0 -37px;
border-radius: 50%;
background:
radial-gradient(circle at 44% 40%,
rgba(255, 252, 226, 0.95) 0%,
rgba(255, 214, 120, 0.9) 22%,
rgba(247, 148, 44, 0.75) 42%,
rgba(190, 74, 22, 0.45) 62%,
transparent 78%);
filter: blur(1px);
opacity: 0;
transform: scale(0.2);
animation: mineFireCore 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
z-index: 2;
}
.mine-blast__fire--mid {
width: 92px;
height: 92px;
margin: -46px 0 0 -46px;
background:
radial-gradient(ellipse 52% 48% at 54% 46%,
rgba(255, 206, 106, 0.85) 0%,
rgba(238, 126, 34, 0.7) 38%,
rgba(158, 56, 18, 0.4) 64%,
transparent 80%);
filter: blur(2.5px);
animation: mineFireMid 0.95s cubic-bezier(0.15, 0.75, 0.35, 1) forwards;
z-index: 1;
}
.mine-blast__fire--outer {
width: 108px;
height: 108px;
margin: -54px 0 0 -54px;
background:
radial-gradient(ellipse 50% 52% at 46% 52%,
rgba(214, 104, 34, 0.55) 0%,
rgba(132, 52, 20, 0.42) 42%,
rgba(74, 40, 26, 0.25) 66%,
transparent 82%);
filter: blur(4px);
animation: mineFireOuter 1.25s ease-out forwards;
z-index: 0;
}
@keyframes mineFireCore {
0%   { transform: scale(0.2);  opacity: 0; }
14%  { transform: scale(1.05); opacity: 1; }
45%  { transform: scale(0.95); opacity: 0.9; }
100% { transform: scale(0.55); opacity: 0; }
}
@keyframes mineFireMid {
0%   { transform: scale(0.25) rotate(0deg);   opacity: 0; }
18%  { transform: scale(1)    rotate(6deg);   opacity: 0.95; }
55%  { transform: scale(1.08) rotate(10deg);  opacity: 0.6; }
100% { transform: scale(0.8)  rotate(16deg);  opacity: 0; }
}
@keyframes mineFireOuter {
0%   { transform: scale(0.3) rotate(0deg);    opacity: 0; }
22%  { transform: scale(1)   rotate(-5deg);   opacity: 0.8; }
100% { transform: scale(1.35) rotate(-14deg); opacity: 0; }
}
.mine-blast__shock {
position: absolute;
left: 0;
top: 0;
width: 30px;
height: 30px;
margin: -15px 0 0 -15px;
border: 2px solid rgba(255, 198, 120, 0.75);
border-radius: 50%;
opacity: 0;
animation: mineShock 0.8s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
}
@keyframes mineShock {
0%   { transform: scale(0.2); opacity: 0;    border-width: 2.5px; }
18%  { opacity: 0.9; }
100% { transform: scale(3.2); opacity: 0;    border-width: 0.4px; }
}
.mine-blast__shards {
position: absolute;
left: 0;
top: 0;
}
.mine-blast__shard {
position: absolute;
left: 0;
top: 0;
width: 6px;
height: 5px;
background: linear-gradient(135deg, #7a6450 0%, #453529 55%, #241b14 100%);
clip-path: polygon(12% 0%, 100% 25%, 82% 100%, 0% 65%);
opacity: 0;
animation:
mineShardFly var(--shard-dur, 0.7s) cubic-bezier(0.15, 0.75, 0.35, 1) forwards,
mineShardRest 2s ease-in var(--shard-rest, 1.6s) forwards;
}
@keyframes mineShardFly {
0% {
transform: translate(-50%, -50%) rotate(var(--angle))
translateX(0) rotate(0deg) scale(1);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) rotate(var(--angle))
translateX(var(--dist)) rotate(var(--spin)) scale(0.82);
opacity: 1;
}
}
@keyframes mineShardRest {
0%   { opacity: 1; }
100% { opacity: 0; }
}
.mine-blast__shard:nth-child(1)  { --angle:  -6deg; --dist: 30px; --spin:  310deg; --shard-dur: 0.62s; --shard-rest: 1.5s; }
.mine-blast__shard:nth-child(2)  { --angle:  27deg; --dist: 21px; --spin: -240deg; --shard-dur: 0.70s; --shard-rest: 1.8s; width: 5px; height: 6px; }
.mine-blast__shard:nth-child(3)  { --angle:  63deg; --dist: 34px; --spin:  280deg; --shard-dur: 0.75s; --shard-rest: 1.6s; width: 7px; }
.mine-blast__shard:nth-child(4)  { --angle:  95deg; --dist: 25px; --spin: -330deg; --shard-dur: 0.58s; --shard-rest: 2.0s; }
.mine-blast__shard:nth-child(5)  { --angle: 121deg; --dist: 32px; --spin:  260deg; --shard-dur: 0.72s; --shard-rest: 1.7s; width: 5px; height: 4px; }
.mine-blast__shard:nth-child(6)  { --angle: 154deg; --dist: 19px; --spin: -290deg; --shard-dur: 0.65s; --shard-rest: 1.9s; }
.mine-blast__shard:nth-child(7)  { --angle: 183deg; --dist: 29px; --spin:  350deg; --shard-dur: 0.68s; --shard-rest: 1.5s; width: 7px; height: 6px; }
.mine-blast__shard:nth-child(8)  { --angle: 209deg; --dist: 23px; --spin: -270deg; --shard-dur: 0.60s; --shard-rest: 2.1s; }
.mine-blast__shard:nth-child(9)  { --angle: 241deg; --dist: 35px; --spin:  300deg; --shard-dur: 0.78s; --shard-rest: 1.6s; }
.mine-blast__shard:nth-child(10) { --angle: 272deg; --dist: 20px; --spin: -320deg; --shard-dur: 0.63s; --shard-rest: 1.8s; width: 5px; }
.mine-blast__shard:nth-child(11) { --angle: 302deg; --dist: 31px; --spin:  250deg; --shard-dur: 0.71s; --shard-rest: 1.7s; width: 6px; height: 7px; }
.mine-blast__shard:nth-child(12) { --angle: 334deg; --dist: 26px; --spin: -305deg; --shard-dur: 0.66s; --shard-rest: 2.0s; }
.mine-blast__smoke-group {
position: absolute;
left: 0;
top: 0;
z-index: 0;
}
.mine-blast__smoke {
position: absolute;
left: 0;
top: 0;
width: 30px;
height: 30px;
margin: -15px 0 0 -15px;
border-radius: 50%;
background: radial-gradient(circle at 45% 42%,
rgba(92, 84, 76, 0.8) 0%,
rgba(62, 56, 50, 0.55) 42%,
rgba(44, 40, 36, 0) 76%);
filter: blur(2px);
opacity: 0;
animation: mineSmokeRise var(--smoke-dur, 2.4s) ease-out var(--smoke-delay, 0.2s) forwards;
}
@keyframes mineSmokeRise {
0%   { transform: translate(-50%, -45%) scale(0.35); opacity: 0; }
20%  { opacity: 0.9; }
100% { transform: translate(calc(-50% + var(--drift, 0px)), -230%) scale(3.2);
opacity: 0; }
}
.mine-blast__smoke:nth-child(1) { --smoke-delay: 0.18s; --smoke-dur: 2.4s; --drift:  6px; }
.mine-blast__smoke:nth-child(2) { --smoke-delay: 0.42s; --smoke-dur: 2.9s; --drift: -9px;
width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.mine-blast__smoke:nth-child(3) { --smoke-delay: 0.66s; --smoke-dur: 3.2s; --drift: 13px;
width: 34px; height: 34px; margin: -17px 0 0 -17px; }
@media (prefers-reduced-motion: reduce) {
.mine-blast { display: none; }
}
.deck-damage {
position: absolute;
width: 0;
height: 0;
pointer-events: none;
z-index: 4;
}
.deck-damage--restored .deck-damage__scorch {
animation: none;
transform: translate(-50%, -50%) rotate(var(--dmg-rotate, -6deg)) scale(var(--dmg-scale, 1));
}
.deck-damage--restored .deck-damage__fire {
animation: none;
opacity: 1;
}
.deck-damage__scorch {
position: absolute;
left: 0;
top: 0;
width: 26px;
height: 26px;
transform: translate(-50%, -50%) rotate(var(--dmg-rotate, -6deg)) scale(var(--dmg-scale, 1));
animation: damageScorchIn 0.4s ease-out 0.35s forwards;
}
.deck-damage__scorch::before,
.deck-damage__scorch::after {
content: '';
position: absolute;
inset: 0;
}
.deck-damage__scorch::before {
clip-path: polygon(
48% 0%, 62% 6%, 78% 2%, 88% 16%, 100% 24%,
94% 40%, 100% 54%, 86% 62%, 90% 78%, 74% 82%,
64% 98%, 50% 88%, 34% 100%, 24% 84%, 8% 86%,
4% 68%, 0% 52%, 10% 38%, 2% 22%, 20% 18%,
22% 4%, 38% 10%
);
background: radial-gradient(circle at 45% 42%,
rgba(190, 172, 140, 0.55) 0%,
rgba(150, 132, 105, 0.4) 35%,
rgba(90, 80, 65, 0.28) 60%,
rgba(60, 55, 45, 0) 85%);
}
.deck-damage__scorch::after {
clip-path: polygon(
50% 8%, 66% 14%, 76% 28%, 92% 34%, 88% 50%,
96% 64%, 80% 70%, 76% 86%, 60% 82%, 48% 96%,
36% 84%, 20% 88%, 16% 72%, 4% 62%, 14% 48%,
6% 34%, 22% 30%, 28% 14%, 40% 20%
);
transform: rotate(14deg) scale(0.78);
background: radial-gradient(circle at 48% 45%,
rgba(0, 0, 0, 0.94) 0%,
rgba(5, 5, 5, 0.9) 45%,
rgba(10, 10, 10, 0.6) 75%,
rgba(10, 10, 10, 0) 100%);
}
@keyframes damageScorchIn {
to { transform: translate(-50%, -50%) rotate(var(--dmg-rotate, -6deg)) scale(var(--dmg-scale, 1)); }
}
.deck-damage__fire {
position: absolute;
left: 0;
top: 0;
width: 6px;
height: 6px;
transform: translate(-50%, -60%);
opacity: 0;
filter: blur(0.6px);
animation: damageFireIn 0.4s ease-out 0.3s forwards;
}
@keyframes damageFireIn {
to { opacity: 1; }
}
.deck-damage__fire::before,
.deck-damage__fire::after {
content: '';
position: absolute;
left: 50%;
bottom: 0;
border-radius: 50%;
background: radial-gradient(circle at 50% 60%,
rgba(255, 200, 120, 0.55) 0%,
rgba(230, 110, 30, 0.5) 40%,
rgba(200, 60, 15, 0.3) 70%,
rgba(200, 60, 15, 0) 100%);
transform-origin: 50% 100%;
}
.deck-damage__fire::before {
width: 6px;
height: 6px;
margin-left: -3px;
animation: fireFlickerA 1.4s ease-in-out infinite alternate;
}
.deck-damage__fire::after {
width: 3.5px;
height: 3.5px;
margin-left: -1.75px;
opacity: 0.7;
animation: fireFlickerB 1.1s ease-in-out infinite alternate;
animation-delay: 0.2s;
}
@keyframes fireFlickerA {
0%   { transform: scale(0.85, 0.85); opacity: 0.55; }
50%  { transform: scale(1, 1.05); opacity: 0.8; }
100% { transform: scale(0.9, 0.9); opacity: 0.6; }
}
@keyframes fireFlickerB {
0%   { transform: scale(0.8, 0.8) translateX(0.5px); opacity: 0.5; }
50%  { transform: scale(1, 1); opacity: 0.75; }
100% { transform: scale(0.85, 0.9) translateX(-0.5px); opacity: 0.55; }
}
.deck-damage__smoke {
position: absolute;
left: 0;
top: 0;
width: 12px;
height: 12px;
border-radius: 50%;
background: radial-gradient(circle,
rgba(25, 25, 28, 0.92) 0%,
rgba(10, 10, 12, 0.75) 45%,
rgba(5, 20, 5, 0.35) 70%,
rgba(5, 20, 5, 0) 85%);
filter: blur(1px);
transform: translate(-50%, -30%) scale(0.4);
opacity: 0;
animation: damageSmokeRise 3.2s ease-in 0.6s infinite;
}
@keyframes damageSmokeRise {
0%   { transform: translate(-50%, -30%) scale(0.4); opacity: 0; }
15%  { opacity: 0.85; }
70%  { opacity: 0.55; }
100% { transform: translate(-50%, -260%) scale(2.2); opacity: 0; }
}
.deck-damage__smoke--b {
animation-delay: 1.9s;
animation-duration: 3.6s;
transform: translate(-65%, -30%) scale(0.3);
}
.ship-sprite--shake-wrap {
animation: shipShake 3.4s cubic-bezier(0.1, 0.5, 0.25, 1);
}
@keyframes shipShake {
0%   { transform: translate(0, 0) rotate(0); }
12%  { transform: translate(-3px, 1.5px) rotate(-1.1deg); }
32%  { transform: translate(2.5px, -1.5px) rotate(0.9deg); }
52%  { transform: translate(-1.8px, 1px) rotate(-0.6deg); }
72%  { transform: translate(1px, -0.7px) rotate(0.35deg); }
88%  { transform: translate(-0.5px, 0.4px) rotate(-0.15deg); }
100% { transform: translate(0, 0) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
.ship-sprite--normal.ship-sprite--h,
.ship-sprite--normal.ship-sprite--v,
.ship-sprite--hit.ship-sprite--h,
.ship-sprite--hit.ship-sprite--v,
.ship-sprite--shake-wrap,
.deck-explosion,
.deck-damage__smoke,
.deck-damage__fire::before,
.deck-damage__fire::after {
animation: none !important;
}
.deck-explosion {
display: none;
}
.deck-damage__smoke {
opacity: 0;
}
.ship-sprite--hit {
filter: brightness(1.1) drop-shadow(0 0 6px rgba(255, 60, 20, 0.5))
sepia(0.3) saturate(2) hue-rotate(-10deg);
}
.ship-sprite--sunk {
animation: none !important;
transform: translateY(6px) rotate(2.2deg);
filter: grayscale(1) brightness(0.55) contrast(0.9) saturate(0);
}
.deck-damage__scorch {
animation: none !important;
}
.deck-damage__fire {
animation: none !important;
opacity: 1;
}
}
.dock-ship__preview--sprite {
display: flex;
align-items: center;
min-height: 28px;
overflow: visible;
border-radius: 4px;
}
.dock-ship__preview--sprite .ship-sprite {
flex-shrink: 0;
filter: brightness(1.1) drop-shadow(0 1px 2px rgba(0, 180, 255, 0.2));
animation: none;
}
.ship-sprite--ally {
filter: sepia(0.25) hue-rotate(170deg) saturate(0.9) brightness(0.92);
}
.ship-sprite--ally { pointer-events: none; }

/* ── css/placement.css ── */
.placement-stage {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-md);
width: 100%;
flex: 1 1 auto;
min-height: 0;
}
.board-frame {
position: relative;
}
.board-lamp {
position: absolute;
top: -70px;
left: 50%;
transform: translateX(-50%);
width: 560px;
max-width: 90vw;
height: 260px;
background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(240, 208, 140, 0.14), transparent 70%);
pointer-events: none;
filter: blur(2px);
}
#placement-grid.grid-wrapper {
position: relative;
padding: 21px 24px;
}
#placement-grid.grid-wrapper::before {
content: '';
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
background: linear-gradient(165deg, rgba(18, 31, 49, 0.5), rgba(7, 13, 23, 0.6));
clip-path: polygon(
10px 0, calc(100% - 10px) 0,
100% 10px, 100% calc(100% - 10px),
calc(100% - 10px) 100%, 10px 100%,
0 calc(100% - 10px), 0 10px
);
filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}
#placement-grid.grid-wrapper > * {
position: relative;
z-index: 1;
}
#placement-grid.grid-wrapper .game-grid {
z-index: 4;
}
#placement-grid.grid-wrapper::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
z-index: 3;
border-style: solid;
border-width: 44px;
border-image-source: url('../media/ui/battle/frame-plain.png');
border-image-slice: 170;
border-image-repeat: stretch;
}
#placement-grid {
--placement-cell: clamp(32px, min(6.6vw, 6.1vh), 72px);
}
#placement-grid .game-grid {
grid-template-columns: repeat(var(--grid-cols, 10), var(--placement-cell));
}
#placement-grid .grid-cell {
width: var(--placement-cell);
height: var(--placement-cell);
}
#placement-grid .grid-cols-header {
grid-template-columns: 28px repeat(var(--grid-cols, 10), var(--placement-cell));
}
#placement-grid .grid-rows-header span {
height: var(--placement-cell);
}
.ship-sprite-wrap.placeable {
cursor: grab;
touch-action: none;
}
.ship-sprite-wrap.placeable:active {
cursor: grabbing;
}
.ship-sprite-wrap.dragging {
z-index: 20;
filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
pointer-events: none;
}
.ship-sprite-wrap.placeable .placement-ring {
position: absolute;
inset: -4px;
border: 1.5px dashed transparent;
border-radius: 8px;
transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
pointer-events: none;
}
.ship-sprite-wrap.placeable:hover .placement-ring {
border-color: rgba(212, 165, 63, 0.55);
}
.ship-sprite-wrap.dragging .placement-ring {
border-color: var(--brass-light);
background: rgba(212, 165, 63, 0.08);
}
.ship-rotate-hint {
position: absolute;
top: -16px;
right: -16px;
width: 42px;
height: 42px;
background: none;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: scale(0.6);
transition: all 0.25s var(--ease-spring);
cursor: pointer;
z-index: 21;
border: none;
padding: 0;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
}
.ship-sprite-wrap.placeable:hover .ship-rotate-hint,
.ship-rotate-hint:focus-visible {
opacity: 1;
transform: scale(1);
}
.ship-rotate-hint img {
width: 100%;
height: 100%;
object-fit: contain;
pointer-events: none;
}
.ship-sprite-wrap.spin-feedback .ship-sprite {
animation: shipRotateSpin 0.4s var(--ease-spring);
}
@keyframes shipRotateSpin {
0%   { transform: scale(1); }
45%  { transform: scale(0.84); }
100% { transform: scale(1); }
}
.grid-cell--drop-ok {
background: rgba(90, 158, 111, 0.22) !important;
border-color: rgba(90, 158, 111, 0.5) !important;
}
.grid-cell--drop-bad {
background: rgba(217, 104, 82, 0.22) !important;
border-color: rgba(217, 104, 82, 0.5) !important;
}
.drag-ghost {
position: fixed;
z-index: 60;
pointer-events: none;
opacity: 0;
transition: opacity 0.15s;
display: flex;
align-items: center;
justify-content: center;
}
.drag-ghost.active { opacity: 0.92; }
.drag-ghost img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 14px rgba(212, 165, 63, 0.25));
}
@media (prefers-reduced-motion: reduce) {
.ship-sprite-wrap.spin-feedback .ship-sprite { animation: none; }
}
.fleet-flyout {
position: fixed;
top: 76px;
right: 0;
height: calc(100% - 76px);
z-index: 40;
display: flex;
align-items: stretch;
transform: translateX(calc(100% - 46px));
transition: transform 0.45s var(--ease-out);
}
.fleet-flyout.open { transform: translateX(0); }
.fleet-flyout__handle {
position: relative;
width: 54px;
flex-shrink: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 28px;
gap: 10px;
background: linear-gradient(180deg, var(--ocean-800), var(--ocean-900));
border: 1px solid var(--border-glow);
border-right: none;
border-radius: var(--radius-lg) 0 0 var(--radius-lg);
cursor: pointer;
box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
font-family: var(--font-main);
}
.fleet-flyout__handle-label {
writing-mode: vertical-rl;
transform: rotate(180deg);
font-family: var(--font-display);
font-size: 0.82rem;
letter-spacing: 0.14em;
color: var(--brass-light);
}
.fleet-flyout__handle-badge {
font-family: var(--font-mono);
font-size: 0.68rem;
font-weight: 600;
color: var(--ocean-900);
background: var(--brass-plate);
border-radius: 999px;
padding: 2px 7px;
min-width: 20px;
text-align: center;
box-shadow: inset 0 1px 0 rgba(247, 226, 168, 0.5);
}
.fleet-flyout__compass-dial {
position: absolute;
top: 58%;
left: 0;
width: 68px;
height: 68px;
transform: translate(-50%, -50%);
z-index: 5;
cursor: pointer;
filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}
.fleet-flyout__compass {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
opacity: 0;
transition: opacity 0.3s var(--ease-out);
pointer-events: none;
}
.fleet-flyout__compass--closed-desktop { opacity: 1; }
.fleet-flyout.open .fleet-flyout__compass--closed-desktop { opacity: 0; }
.fleet-flyout.open .fleet-flyout__compass--open-desktop { opacity: 1; }
.fleet-flyout__compass--closed-mobile,
.fleet-flyout__compass--open-mobile { display: none; }
.fleet-flyout__panel {
width: min(340px, 84vw);
background:
linear-gradient(155deg, rgba(20, 33, 52, 0.94), rgba(9, 17, 28, 0.97)),
radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
background-size: auto, 3px 3px;
border: 1px solid var(--border-glow);
border-right: none;
box-shadow: -14px 0 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(247, 226, 168, 0.05);
display: flex;
flex-direction: column;
padding: 20px 16px 16px;
gap: 14px;
overflow: hidden;
position: relative;
z-index: 1;
}
.fleet-flyout__panel::before {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
background: radial-gradient(ellipse 70% 40% at 15% 0%, rgba(212, 165, 63, 0.06), transparent 60%);
}
.fleet-flyout__head {
display: flex;
align-items: baseline;
justify-content: space-between;
}
.fleet-flyout__title {
font-family: var(--font-display);
font-size: 1.05rem;
color: var(--brass-light);
letter-spacing: 0.02em;
margin: 0;
}
.fleet-flyout__count {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-secondary);
}
.fleet-flyout__count b { color: var(--accent-green); }
.fleet-flyout__hint {
font-size: 0.72rem;
color: var(--text-muted);
line-height: 1.4;
padding: 8px 10px;
background: rgba(0, 0, 0, 0.2);
border-radius: var(--radius-sm);
border: 1px dashed rgba(140, 175, 215, 0.2);
}
.fleet-flyout__list {
display: flex;
flex-direction: column;
gap: 10px;
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
padding-right: 2px;
scrollbar-width: thin;
scrollbar-color: rgba(212, 165, 63, 0.3) transparent;
}
.fleet-flyout__footer {
display: flex;
flex-direction: column;
gap: 10px;
padding-top: 6px;
}
.fleet-progress__bar {
height: 5px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--border-subtle);
overflow: hidden;
}
.fleet-progress__fill {
height: 100%;
width: 0;
border-radius: 999px;
background: var(--brass-fill);
box-shadow: 0 0 8px var(--accent-brass-glow);
transition: width 0.4s var(--ease-out);
}
.fleet-progress__note {
margin: 6px 0 0;
font-size: 0.68rem;
color: var(--accent-brass);
text-align: center;
}
.fleet-progress__note:empty {
display: none;
}
.command-card {
background: linear-gradient(160deg, var(--ocean-700), var(--ocean-800));
border: 1px solid rgba(140, 175, 215, 0.24);
border-radius: var(--radius-md);
overflow: hidden;
cursor: grab;
touch-action: none;
position: relative;
flex-shrink: 0;
transition: border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.command-card::after {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(247, 226, 168, 0.25), transparent);
opacity: 0;
}
.command-card:hover {
border-color: var(--accent-brass);
box-shadow: var(--shadow-glow-cyan);
transform: translateY(-1px);
}
.command-card:hover::after { opacity: 1; }
.command-card--placed {
opacity: 0.42;
cursor: default;
}
.command-card--placed:hover {
transform: none;
box-shadow: none;
border-color: rgba(140, 175, 215, 0.24);
}
.command-card--lifting { opacity: 0.3; }
.command-card--unaffordable {
opacity: 0.34;
cursor: not-allowed;
filter: grayscale(0.7);
}
.command-card--unaffordable:hover {
transform: none;
box-shadow: none;
border-color: rgba(140, 175, 215, 0.24);
}
.command-card--unaffordable::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: repeating-linear-gradient(
135deg,
transparent 0 6px,
rgba(217, 104, 82, 0.12) 6px 12px
);
pointer-events: none;
}
.command-card__top {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px 0;
}
.command-card__badge {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 34px;
flex-shrink: 0;
}
.command-card__badge img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.command-card__name {
font-family: var(--font-main);
font-weight: 700;
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.02em;
color: var(--text-primary);
flex: 1;
min-width: 0;
}
.command-card__class {
font-family: var(--font-mono);
font-size: 0.6rem;
color: var(--text-muted);
letter-spacing: 0.05em;
}
.command-card__portrait {
height: 50px;
display: flex;
align-items: center;
justify-content: center;
padding: 2px 10px;
}
.command-card__portrait img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55));
}
.command-card__bottom {
display: flex;
align-items: center;
padding: 0 10px 9px;
}
.command-card__size {
font-size: 0.68rem;
color: var(--text-secondary);
}
.command-card__check {
position: absolute;
top: 8px;
right: 8px;
color: var(--accent-green);
font-size: 0.85rem;
opacity: 0;
transition: opacity 0.2s;
}
.command-card--placed .command-card__check { opacity: 1; }
.command-card__check[data-count]:not(:empty) {
opacity: 1;
color: var(--accent-gold);
font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
.fleet-flyout {
top: auto;
bottom: 0;
left: 0;
right: 0;
height: auto;
flex-direction: column;
transform: translateY(calc(100% - 46px));
}
.fleet-flyout.open { transform: translateY(0); }
.fleet-flyout__handle {
width: 100%;
height: 46px;
flex-direction: row;
justify-content: center;
padding-top: 0;
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
border: 1px solid var(--border-glow);
border-bottom: none;
box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}
.fleet-flyout__handle-label {
writing-mode: horizontal-tb;
transform: none;
}
.fleet-flyout__compass--closed-desktop,
.fleet-flyout__compass--open-desktop { display: none; }
.fleet-flyout__compass--closed-mobile { display: block; opacity: 1; }
.fleet-flyout__compass--open-mobile { display: block; opacity: 0; }
.fleet-flyout.open .fleet-flyout__compass--closed-mobile { opacity: 0; }
.fleet-flyout.open .fleet-flyout__compass--open-mobile { opacity: 1; }
.fleet-flyout__compass-dial {
top: 0;
left: 50%;
width: 52px;
height: 52px;
transform: translate(-50%, -55%);
}
.fleet-flyout__handle-badge,
.fleet-flyout__handle-label {
margin-top: 14px;
}
.fleet-flyout__panel {
width: 100%;
max-height: 56vh;
border-right: 1px solid var(--border-glow);
border-bottom: none;
border-radius: 0;
}
.fleet-flyout__list {
flex-direction: row;
overflow-x: auto;
overflow-y: hidden;
padding-bottom: 4px;
}
.command-card {
min-width: 132px;
flex-shrink: 0;
touch-action: pan-x;
}
.placement-stage { padding-bottom: 120px; }
#placement-grid { --placement-cell: clamp(28px, min(7.6vw, 5vh), 60px); }
#placement-grid.grid-wrapper { padding: 13px 15px; }
#placement-grid.grid-wrapper::after { border-width: 28px; }
#placement-grid.grid-wrapper::before {
clip-path: polygon(
7px 0, calc(100% - 7px) 0,
100% 7px, 100% calc(100% - 7px),
calc(100% - 7px) 100%, 7px 100%,
0 calc(100% - 7px), 0 7px
);
}
}
@media (prefers-reduced-motion: reduce) {
.fleet-flyout,
.fleet-flyout__compass,
.command-card,
.ship-rotate-hint { transition: none; }
}
.grid-cell--ally {
background: repeating-linear-gradient(
45deg,
rgba(122, 162, 196, 0.18) 0 4px,
rgba(122, 162, 196, 0.06) 4px 8px
);
border-color: rgba(122, 162, 196, 0.45);
cursor: not-allowed;
}
.grid-cell--equator {
position: relative;
}
.equator-line {
position: absolute;
left: 0;
right: 0;
bottom: -1px;
height: 0;
border-top: 2px dashed rgba(240, 195, 104, 0.62);
filter: drop-shadow(0 0 3px rgba(240, 195, 104, 0.35));
pointer-events: none;
z-index: 1;
}
.equator-line--labeled::after {
content: attr(data-label);
position: absolute;
left: 6%;
bottom: 1px;
font-family: var(--font-hand);
font-size: 1.05rem;
line-height: 1;
letter-spacing: 0.18em;
white-space: nowrap;
color: rgba(240, 195, 104, 0.82);
text-shadow: 0 1px 3px rgba(7, 13, 23, 0.9);
transform: rotate(-1.6deg);
transform-origin: left bottom;
pointer-events: none;
}
.grid-cell--zone {
background-image: radial-gradient(circle at center, rgba(122, 162, 196, 0.32) 0 22%, transparent 24%);
box-shadow: inset 0 0 0 1px rgba(122, 162, 196, 0.42);
}
.placement-legend__swatch--lane {
background: linear-gradient(180deg,
transparent 0 40%,
rgba(240, 195, 104, 0.75) 40% 60%,
transparent 60% 100%);
border-color: rgba(240, 195, 104, 0.6);
}
.placement-legend__swatch--zone {
background-image: radial-gradient(circle at center, rgba(122, 162, 196, 0.7) 0 25%, transparent 27%);
border-color: rgba(122, 162, 196, 0.6);
}
.placement-mode {
margin: 0;
font-size: 0.85rem;
letter-spacing: 0.04em;
color: var(--text-secondary);
}

/* ── css/auth-modal.css ── */
.auth-modal {
position: relative;
background:
linear-gradient(rgba(10, 18, 30, 0.8), rgba(8, 14, 24, 0.85)),
url('../media/ui/bg-blueprint.jpg') center / cover no-repeat;
overflow: hidden;
}
.auth-modal::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--brass-edge);
pointer-events: none;
}
.auth-modal__head {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-bottom: var(--space-lg);
padding-right: 32px;
font-family: var(--font-mono);
font-size: 0.6rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-muted);
}
.auth-modal__line {
flex: 1;
border-bottom: 1px dotted rgba(180, 150, 95, 0.28);
}
.auth-tabs {
display: flex;
border-bottom: 2px solid var(--border-subtle);
margin-bottom: var(--space-lg);
}
.auth-tab {
flex: 1;
padding: var(--space-md);
background: none;
border: none;
color: var(--text-secondary);
font-family: var(--font-display);
font-size: 0.95rem;
letter-spacing: 0.04em;
font-weight: 400;
cursor: pointer;
transition: all 0.3s var(--ease-out);
border-bottom: 2px solid transparent;
margin-bottom: -2px;
}
.auth-tab:hover {
color: var(--text-primary);
}
.auth-tab.active {
color: var(--accent-brass);
border-bottom-color: var(--accent-brass);
}
.auth-form {
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.auth-form .input-group {
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.auth-form .input-group label {
font-family: var(--font-mono);
font-size: 0.72rem;
letter-spacing: 0.06em;
}
.auth-form .input {
background: rgba(7, 13, 23, 0.75);
border: 1px solid rgba(212, 165, 63, 0.3);
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}
.auth-form .input:focus {
border-color: var(--accent-brass);
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--accent-brass-glow);
}
.auth-modal .btn-plate {
display: flex;
align-items: center;
justify-content: center;
align-self: center;
width: fit-content;
padding: 0 var(--space-xl);
border-style: solid;
border-width: 15px 20px;
border-image-source: url('../media/ui/battle/plate-btn.png');
border-image-slice: 26 40 fill;
border-image-repeat: stretch;
background: none;
cursor: pointer;
font-family: var(--font-display);
font-size: 0.76rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.auth-modal .btn-plate:hover:not(:disabled) { filter: brightness(1.2); }
.auth-modal .btn-plate:active:not(:disabled) { transform: translateY(1px); }
.auth-modal .btn-plate[hidden] { display: none; }
.auth-modal .auth-link {
align-self: center;
background: none;
border: none;
padding: var(--space-xs) 0;
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 0.78rem;
letter-spacing: 0.03em;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: rgba(159, 179, 204, 0.4);
transition: color 0.2s var(--ease-out);
}
.auth-modal .auth-link:hover {
color: var(--accent-brass);
text-decoration-color: var(--accent-brass);
}
.auth-confirm {
text-align: center;
padding: var(--space-xl) 0;
}
.auth-confirm-icon {
font-size: 3rem;
margin-bottom: var(--space-md);
}
.auth-error {
color: var(--accent-red);
font-size: 0.85rem;
min-height: 1.2em;
}
.auth-link {
color: var(--accent-brass);
cursor: pointer;
font-size: 0.85rem;
background: none;
border: none;
font-family: var(--font-main);
text-decoration: underline;
}
.auth-link:hover {
color: var(--text-primary);
}
.auth-link--muted {
color: var(--text-muted);
font-size: 0.8rem;
}
.auth-link--muted:hover,
.auth-link--muted:focus-visible {
color: var(--text-secondary);
}
.input--readonly {
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 0.92rem;
cursor: default;
border-style: dashed;
}
.input--readonly:focus {
border-color: var(--border-subtle);
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}
.reg-steps {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-bottom: var(--space-xs);
}
.reg-steps__dot {
display: flex;
align-items: center;
gap: 7px;
font-family: var(--font-mono);
font-size: 0.64rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
transition: color 0.3s var(--ease-out);
}
.reg-steps__num {
width: 20px;
height: 20px;
display: grid;
place-items: center;
border-radius: var(--radius-full);
border: 1px solid var(--border-subtle);
font-size: 0.65rem;
transition: all 0.3s var(--ease-out);
}
.reg-steps__dot.is-active { color: var(--accent-gold); }
.reg-steps__dot.is-active .reg-steps__num {
border-color: var(--accent-brass);
background: rgba(212, 165, 63, 0.16);
color: var(--accent-gold);
}
.reg-steps__line {
flex: 1;
height: 1px;
background: var(--border-subtle);
}
.reg-lead {
margin: 0;
color: var(--text-secondary);
font-size: 0.88rem;
line-height: 1.55;
}
.reg-benefits {
display: grid;
gap: 2px;
margin: 0;
padding: 0;
list-style: none;
font-size: 0.82rem;
color: var(--text-secondary);
}
.reg-benefits li::before {
content: '◆';
margin-right: 6px;
font-size: 0.6rem;
color: var(--brass-light);
}
.auth-confirm__progress {
margin: 0 0 var(--space-lg);
color: var(--accent-gold);
font-size: 0.9rem;
}
.auth-confirm__progress[hidden] { display: none; }
.role-label {
display: flex;
align-items: baseline;
gap: var(--space-sm);
flex-wrap: wrap;
}
.vis-chip {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 2px 8px;
border-radius: var(--radius-full);
font-family: var(--font-mono);
font-size: 0.58rem;
letter-spacing: 0.08em;
text-transform: uppercase;
white-space: nowrap;
}
.vis-chip img {
width: 13px;
height: 13px;
object-fit: contain;
flex-shrink: 0;
}
.vis-chip--public {
background: rgba(91, 143, 199, 0.14);
border: 1px solid rgba(91, 143, 199, 0.4);
color: var(--accent-steel);
}
.vis-chip--private {
background: rgba(107, 127, 153, 0.14);
border: 1px solid rgba(107, 127, 153, 0.4);
color: var(--text-secondary);
}
.name-preview {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-top: var(--space-sm);
padding: 8px 12px;
background: rgba(7, 13, 23, 0.6);
border: 1px dashed rgba(140, 175, 215, 0.22);
border-radius: var(--radius-sm);
}
.name-preview__avatar {
width: 30px;
height: 30px;
border-radius: var(--radius-full);
border: 1px solid var(--border-glow);
object-fit: cover;
flex-shrink: 0;
}
.name-preview__text {
font-size: 0.82rem;
color: var(--text-secondary);
min-width: 0;
overflow-wrap: anywhere;
}
.name-preview__text b { color: var(--text-primary); font-weight: 600; }
.reg-name-status {
min-height: 1.1em;
font-size: 0.78rem;
line-height: 1.3;
color: var(--text-muted);
transition: color 0.2s var(--ease-out);
}
.reg-name-status--checking { color: var(--text-muted); }
.reg-name-status--free     { color: var(--accent-green); }
.reg-name-status--taken    { color: var(--accent-orange); }
.pw-field {
position: relative;
display: flex;
}
.pw-field .input {
flex: 1;
padding-right: 52px;
}
.pw-field .input::-ms-reveal,
.pw-field .input::-ms-clear {
display: none;
width: 0;
height: 0;
}
.pw-reveal {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
width: 38px;
height: 38px;
display: grid;
place-items: center;
background: none;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
padding: 0;
transition: background 0.2s var(--ease-out);
}
.pw-reveal:hover { background: rgba(212, 165, 63, 0.12); }
.pw-reveal:focus-visible {
outline: 2px solid var(--accent-brass);
outline-offset: 1px;
}
.pw-reveal img {
width: 26px;
height: 26px;
object-fit: contain;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
opacity: 0.75;
transition: opacity 0.2s var(--ease-out);
}
.pw-reveal:hover img { opacity: 1; }
.pw-reveal[aria-pressed="true"] { background: rgba(212, 165, 63, 0.14); }
.pw-reveal[aria-pressed="true"] img { opacity: 1; }

/* ── css/profile.css ── */
.profile-modal {
max-width: 760px;
max-height: 85vh;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: rgba(212, 165, 63, 0.4) transparent;
}
.profile-modal::-webkit-scrollbar { width: 7px; }
.profile-modal::-webkit-scrollbar-track { background: transparent; }
.profile-modal::-webkit-scrollbar-thumb {
background: rgba(212, 165, 63, 0.4);
border-radius: 4px;
}
.profile-modal::-webkit-scrollbar-thumb:hover { background: var(--accent-brass); }
.profile-dossier {
display: flex;
align-items: center;
gap: var(--space-md);
margin-bottom: var(--space-lg);
padding-bottom: var(--space-md);
border-bottom: 1px solid var(--border-subtle);
}
.profile-dossier__portrait {
position: relative;
width: 76px;
height: 76px;
flex-shrink: 0;
}
.profile-dossier__avatar {
position: absolute;
top: 50%;
left: 50%;
width: 55px;
height: 55px;
border-radius: 50%;
object-fit: cover;
transform: translate(-50%, -50%);
}
.profile-dossier__frame {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
pointer-events: none;
filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}
.profile-dossier__info {
display: flex;
flex: 1 1 auto;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.profile-dossier__name {
font-family: var(--font-display);
font-size: 1.15rem;
letter-spacing: 0.02em;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.profile-dossier__title {
display: flex;
align-items: center;
gap: var(--space-xs);
min-width: 0;
font-family: var(--font-mono);
font-size: 0.74rem;
letter-spacing: 0.04em;
color: var(--text-secondary);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.profile-dossier__title-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.profile-dossier__title-badge {
flex: none;
width: 14px;
height: 14px;
object-fit: contain;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}
.profile-dossier__record {
font-family: var(--font-mono);
font-size: 0.74rem;
letter-spacing: 0.04em;
color: var(--text-secondary);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}
.profile-tabs {
display: flex;
border-bottom: 2px solid var(--border-subtle);
margin-bottom: var(--space-lg);
flex-wrap: wrap;
}
.profile-tabs .auth-tab {
flex: 1 1 auto;
min-width: 0;
padding-inline: var(--space-sm);
white-space: nowrap;
}
.profile-panel {
display: flex;
flex-direction: column;
gap: var(--space-lg);
padding: var(--space-xs) 2px;
}
.profile-panel .auth-form,
.profile-panel.auth-form {
gap: 0;
}
.profile-panel .input-group,
.profile-panel .profile-field-row {
margin-bottom: 28px;
}
.profile-panel .input-group:last-child,
.profile-panel .profile-field-row:last-child {
margin-bottom: 0;
}
.profile-panel .input-group {
gap: 10px;
}
.profile-panel .input-group label,
.profile-panel .input-group__label {
font-size: 0.78rem;
letter-spacing: 0.05em;
color: var(--text-secondary);
}
.profile-panel .input {
padding: 15px 18px;
line-height: 1.4;
}
.profile-panel .profile-field-row {
gap: var(--space-lg);
}
.profile-section-label {
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent-brass);
margin-bottom: 4px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
.profile-section-label:not(:first-child) {
margin-top: 12px;
}
.profile-panel > .auth-form,
.profile-panel > form {
margin-bottom: 28px;
}
.profile-panel > .auth-form:last-child,
.profile-panel > form:last-child {
margin-bottom: 0;
}
.profile-field-row {
display: flex;
gap: var(--space-md);
}
.profile-field-row .input-group {
flex: 1;
min-width: 0;
}
.profile-divider {
width: 26px;
height: 223px;
margin-left: auto;
margin-right: auto;
background: url('../media/ui/frame/divider-line.png') center / contain no-repeat;
transform: rotate(90deg);
margin-top: calc(var(--space-md) - 98.5px);
margin-bottom: calc(var(--space-md) - 98.5px);
opacity: 0.8;
}
.profile-panel select.input {
appearance: none;
-webkit-appearance: none;
padding-right: 42px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23d4a53f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 13px 8px;
cursor: pointer;
}
.profile-panel select.input::-ms-expand {
display: none;
}
.file-upload {
position: relative;
}
.file-upload__input {
position: absolute;
inset: 0;
width: 1px;
height: 1px;
opacity: 0;
overflow: hidden;
}
.file-upload__label {
display: flex;
align-items: center;
gap: var(--space-md);
cursor: pointer;
}
.file-upload__btn {
flex-shrink: 0;
padding: 11px 20px;
background: rgba(212, 165, 63, 0.12);
border: 1px solid rgba(212, 165, 63, 0.4);
border-radius: var(--radius-md);
font-family: var(--font-display);
font-size: 0.82rem;
letter-spacing: 0.04em;
color: var(--accent-gold);
transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.file-upload__name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--text-muted);
}
.file-upload__input:hover ~ .file-upload__label .file-upload__btn,
.file-upload__label:hover .file-upload__btn {
background: rgba(212, 165, 63, 0.2);
border-color: var(--accent-brass);
}
.file-upload__input:focus-visible ~ .file-upload__label .file-upload__btn {
outline: 2px solid var(--accent-brass);
outline-offset: 2px;
}
.profile-hint {
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--text-muted);
}
.profile-hint--body {
font-family: var(--font-main);
font-size: 0.85rem;
color: var(--text-secondary);
}
.portrait-coming-soon {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 12px;
border: 1px dashed var(--border-subtle);
border-radius: 6px;
}
.portrait-coming-soon[hidden] { display: none; }
.portrait-coming-soon__chip {
flex-shrink: 0;
font-family: var(--font-mono);
font-size: 0.66rem;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 2px 8px;
border-radius: 999px;
border: 1px solid var(--accent-brass);
color: var(--accent-brass);
white-space: nowrap;
}
.portrait-coming-soon .profile-hint--body { margin: 0; }
#btn-profile-random-name[disabled] {
opacity: 0.4;
filter: grayscale(1);
pointer-events: none;
}
#profile-name-row:has(#btn-profile-random-name[disabled]) {
cursor: not-allowed;
}
.rank-progress {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.rank-progress__track {
display: flex;
flex: 1;
flex-direction: column;
gap: var(--space-xs);
min-width: 0;
}
.rank-progress__badge {
width: 56px;
height: 56px;
object-fit: contain;
flex-shrink: 0;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
}
.rank-progress__badge--next {
opacity: 0.6;
filter: grayscale(1) brightness(0.9) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}
.rank-progress-bar {
height: 12px;
border-radius: 6px;
border: 1px solid #7a5a1e;
background: linear-gradient(180deg, #02060c, #0c1624 70%, #15202f);
box-shadow:
inset 0 2px 3px rgba(0, 0, 0, 0.9),
0 0 0 1px rgba(0, 0, 0, 0.55),
0 1px 0 1px rgba(255, 222, 150, 0.18);
overflow: hidden;
}
.rank-progress-bar__fill {
height: 100%;
border-radius: 5px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.12) 38%,
rgba(255, 255, 255, 0) 52%, rgba(60, 35, 5, 0.35) 100%),
repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
linear-gradient(90deg, #8a6417, var(--accent-brass) 35%, #fbe39a 72%, var(--accent-gold));
box-shadow:
inset 0 0 0 1px rgba(90, 55, 10, 0.55),
1px 0 3px rgba(0, 0, 0, 0.6);
transition: width 0.3s var(--ease-out);
}
.rank-progress-label {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-secondary);
}
.avatar-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: var(--space-lg) var(--space-md);
padding: 8px 6px;
}
.avatar-grid__item {
position: relative;
padding: 0;
border: none;
border-radius: 50%;
background: rgba(7, 13, 23, 0.75);
cursor: pointer;
overflow: visible;
aspect-ratio: 1;
transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.avatar-grid__item.selected::after {
content: '';
position: absolute;
inset: -4px;
border: 2px solid var(--accent-gold);
border-radius: 50%;
box-shadow: 0 0 8px var(--accent-gold-glow);
pointer-events: none;
z-index: 1;
}
.avatar-grid__item img:not(.avatar-grid__badge) {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
display: block;
}
.avatar-grid__item:hover:not(.locked) {
transform: translateY(-2px);
}
.avatar-grid__item.locked img:not(.avatar-grid__badge) {
filter: grayscale(1) brightness(0.6);
}
.avatar-grid__item.locked {
cursor: not-allowed;
}
.avatar-grid__toggle {
grid-column: 1 / -1;
display: flex;
align-items: center;
gap: var(--space-sm);
width: 100%;
margin-top: 2px;
padding: var(--space-sm) 0 0;
border: none;
border-top: 1px solid var(--border-subtle);
background: none;
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent-brass);
cursor: pointer;
transition: color 0.2s var(--ease-out);
}
.avatar-grid__toggle:hover {
color: var(--accent-gold);
}
.avatar-grid__toggle-caret {
width: 0;
height: 0;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
border-left: 5px solid currentColor;
transition: transform 0.2s var(--ease-out);
}
.avatar-grid__toggle[aria-expanded="true"] .avatar-grid__toggle-caret {
transform: rotate(90deg);
}
.avatar-grid__more {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: var(--space-lg) var(--space-md);
padding: 4px 6px;
}
.avatar-grid__more[hidden] {
display: none;
}
.avatar-grid__badge {
position: absolute;
top: 0;
right: 0;
width: 26px;
height: 26px;
object-fit: contain;
z-index: 2;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 1))
drop-shadow(0 0 6px rgba(0, 0, 0, 0.85))
drop-shadow(0 0 5px var(--accent-gold));
}
:root {
--frame-width: 107.7%;
--frame-cy: 56.6%;
}
.avatar-frame {
position: absolute;
left: 50%;
width: var(--frame-width);
height: auto;
top: 50%;
transform: translate(-50%, calc(-1 * var(--frame-cy)));
pointer-events: none;
object-fit: contain;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
.frame-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
gap: var(--space-lg) var(--space-md);
padding: 8px 4px;
}
.frame-grid__item {
position: relative;
padding: 0;
border: none;
background: none;
cursor: pointer;
aspect-ratio: 1;
overflow: visible;
transition: transform 0.15s var(--ease-out), filter 0.2s var(--ease-out);
}
.frame-grid__item:hover:not(.locked) {
transform: translateY(-2px);
}
.frame-grid__item.locked {
cursor: not-allowed;
}
.frame-grid__avatar {
position: absolute;
top: 50%;
left: 50%;
width: 62%;
height: 62%;
transform: translate(-50%, -50%);
border-radius: 50%;
object-fit: cover;
}
.frame-grid__item .avatar-frame {
width: 66.8%;
}
.frame-grid__item.selected {
filter: drop-shadow(0 0 10px var(--accent-brass-glow));
}
.frame-grid__item.selected::after {
content: '';
position: absolute;
inset: -6px;
border: 1px solid var(--accent-brass);
border-radius: var(--radius-md);
pointer-events: none;
z-index: 1;
}
.frame-grid__item.locked .avatar-frame,
.frame-grid__item.locked .frame-grid__avatar {
filter: grayscale(1) brightness(0.6);
}
.frame-grid__label {
position: absolute;
left: 0;
right: 0;
bottom: -18px;
text-align: center;
font-family: var(--font-mono);
font-size: 0.6rem;
letter-spacing: 0.06em;
color: var(--text-muted);
pointer-events: none;
}
.frame-grid__item.selected .frame-grid__label {
color: var(--accent-gold);
}
.frame-grid__none {
position: absolute;
top: 50%;
left: 50%;
width: 66.8%;
height: 66.8%;
transform: translate(-50%, -50%);
border-radius: 50%;
border: 1px dashed rgba(140, 175, 215, 0.35);
pointer-events: none;
}
.frame-grid__badge {
position: absolute;
top: 0;
right: 0;
width: 24px;
height: 24px;
object-fit: contain;
z-index: 2;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 1))
drop-shadow(0 0 6px rgba(0, 0, 0, 0.85))
drop-shadow(0 0 5px var(--accent-gold));
}
.input-group label:has(.visibility-icon) {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.visibility-icon {
width: 30px;
height: 30px;
object-fit: contain;
cursor: help;
flex-shrink: 0;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}
@supports not selector(:has(*)) {
.visibility-icon {
vertical-align: -9px;
margin-right: var(--space-sm);
}
}
.family-slots {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: var(--space-md);
}
.family-slots__head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--space-sm);
}
.family-slots__label {
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-muted);
}
.family-slots__count {
font-family: var(--font-display);
font-size: 1rem;
letter-spacing: 0.02em;
color: var(--accent-gold);
}
.family-slots__max {
font-size: 0.8rem;
color: var(--text-muted);
}
.family-slots__bar {
height: 5px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--border-subtle);
overflow: hidden;
}
.family-slots__fill {
height: 100%;
width: 0;
border-radius: 999px;
background: var(--brass-fill);
box-shadow: 0 0 8px var(--accent-brass-glow);
transition: width 0.4s var(--ease-out), background 0.3s var(--ease-out);
}
.family-slots__hint {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-muted);
}
.family-slots.is-full .family-slots__fill {
background: linear-gradient(90deg, #7a2c1f, var(--accent-red));
box-shadow: 0 0 8px var(--accent-red-glow);
}
.family-slots.is-full .family-slots__hint,
.family-slots.is-full .family-slots__count {
color: var(--accent-red);
}
.slots-invite {
display: flex;
align-items: center;
gap: var(--space-sm);
width: 100%;
margin-top: 2px;
padding: 10px var(--space-sm);
min-height: 44px;
background: rgba(240, 195, 104, 0.06);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
color: var(--accent-gold);
font-family: var(--font-mono);
font-size: 0.78rem;
letter-spacing: 0.04em;
text-align: left;
cursor: pointer;
transition: background 0.2s var(--ease-out),
border-color 0.2s var(--ease-out),
transform 0.12s var(--ease-out);
}
.slots-invite img {
width: 18px;
height: 18px;
flex-shrink: 0;
opacity: 0.85;
}
.slots-invite__arrow {
margin-left: auto;
font-size: 1.1rem;
line-height: 1;
color: var(--text-muted);
transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.slots-invite:hover,
.slots-invite:focus-visible {
background: rgba(240, 195, 104, 0.12);
border-color: var(--accent-gold);
}
.slots-invite:hover .slots-invite__arrow,
.slots-invite:focus-visible .slots-invite__arrow {
transform: translateX(3px);
color: var(--accent-gold);
}
.slots-invite:active {
transform: translateY(1px);
}
@media (prefers-reduced-motion: reduce) {
.slots-invite,
.slots-invite__arrow {
transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.slots-invite:hover .slots-invite__arrow,
.slots-invite:focus-visible .slots-invite__arrow {
transform: none;
}
.slots-invite:active {
transform: none;
}
}
.family-roster {
display: flex;
flex-direction: column;
gap: var(--space-md);
padding-top: 18px;
margin-bottom: var(--space-lg);
}
.family-row {
min-height: 78px;
}
.roster-name__block {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.family-row__meta {
font-family: var(--font-mono);
font-size: 0.72rem;
color: rgba(255, 255, 255, 0.62);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.family-row__type {
display: inline-block;
margin-left: var(--space-sm);
padding: 1px 8px;
border: 1px solid var(--border-glow);
border-radius: 999px;
font-family: var(--font-mono);
font-size: 0.62rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-gold);
vertical-align: middle;
white-space: nowrap;
}
.family-row__actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-md);
margin-top: 4px;
}
.family-limit {
display: inline-flex;
flex-direction: column;
gap: var(--space-sm);
}
.family-limit.is-editing {
flex-basis: 100%;
}
.family-limit__value {
align-self: flex-start;
padding: 2px 0;
border: none;
background: none;
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
border-bottom: 1px dashed rgba(240, 195, 104, 0.5);
cursor: pointer;
transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.family-limit__value:hover,
.family-limit__value:focus-visible {
color: var(--brass-shine);
border-bottom-color: var(--brass-shine);
border-bottom-style: solid;
outline: none;
}
.family-limit:not(.is-editing) {
padding-right: var(--space-md);
border-right: 1px solid var(--border-subtle);
}
.family-limit.is-editing .family-limit__value {
opacity: 0.55;
}
.family-limit__editor {
display: flex;
flex-direction: column;
gap: var(--space-sm);
padding: var(--space-sm);
background: rgba(7, 13, 23, 0.82);
border: 1px solid var(--border-glow);
border-radius: var(--radius-md);
animation: rowIn 0.25s var(--ease-out) backwards;
}
.family-limit__editor .limit-chip {
min-height: 34px;
font-size: 0.7rem;
}
.family-limit__custom {
display: flex;
align-items: center;
gap: var(--space-xs);
flex-wrap: wrap;
}
.family-limit__custom .input {
width: 92px;
flex: none;
text-align: center;
font-family: var(--font-mono);
-moz-appearance: textfield;
appearance: textfield;
}
.family-limit__custom .input::-webkit-outer-spin-button,
.family-limit__custom .input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.family-limit__custom .btn {
padding: 6px var(--space-sm);
font-size: 0.74rem;
}
.family-row__switch {
align-self: flex-start;
margin-left: -10px;
font-family: var(--font-main);
letter-spacing: normal;
}
.family-row__switch .audio-menu__label {
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.family-row__switch:has(input:disabled) {
opacity: 0.6;
cursor: progress;
}
.family-row__admiral {
width: 52px;
height: 52px;
flex: none;
object-fit: contain;
filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
cursor: help;
}
.family-row--invite {
border-style: dashed;
border-color: rgba(140, 175, 215, 0.28);
}
.family-roster .family-row__silhouette {
filter: grayscale(1) brightness(0.5);
opacity: 0.75;
border-color: var(--border-subtle);
}
.family-roster .family-row:hover .family-row__silhouette {
filter: grayscale(1) brightness(0.7);
opacity: 0.9;
}
.family-row .lamp {
width: 30px;
height: 30px;
}
.family-row.roster-row--ready .lamp {
background-image: url('../media/ui/lobby/lamp-green-on.png');
filter: drop-shadow(0 0 8px rgba(111, 224, 140, 0.8));
}
.family-row.roster-row--ready .lamp::after {
content: none;
}
.family-row:not(.roster-row--ready) .lamp {
background-image: url('../media/ui/lobby/lamp-amber-off.png');
}
.family-row:not(.roster-row--ready) .lamp::after {
content: '';
position: absolute;
inset: 0;
background: url('../media/ui/lobby/lamp-amber-on.png') center / contain no-repeat;
filter: drop-shadow(0 0 6px var(--accent-gold-glow));
animation: lampPulse 2.4s ease-in-out infinite;
}
@keyframes lampPulse {
0%, 100% { opacity: 1; }
50%      { opacity: 0.35; }
}
@media (max-width: 560px) {
.family-row__actions {
gap: var(--space-sm);
}
.family-row__admiral {
width: 40px;
height: 40px;
}
}
.limit-picker {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.limit-picker__presets {
display: flex;
gap: var(--space-xs);
flex-wrap: wrap;
}
.limit-chip {
flex: 1 1 auto;
min-height: 44px;
padding: 0 var(--space-sm);
background: rgba(7, 13, 23, 0.6);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 0.74rem;
white-space: nowrap;
cursor: pointer;
transition: border-color 0.2s var(--ease-out),
color 0.2s var(--ease-out),
background 0.2s var(--ease-out);
}
.limit-chip:hover {
border-color: var(--border-glow);
color: var(--text-primary);
}
.limit-chip.selected {
background: rgba(212, 165, 63, 0.14);
border-color: var(--brass-light);
color: var(--accent-gold);
}
.limit-picker__stepper {
display: flex;
align-items: stretch;
gap: var(--space-xs);
}
.limit-step {
width: 44px;
min-height: 44px;
flex: none;
background: rgba(7, 13, 23, 0.6);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
color: var(--accent-gold);
font-size: 1.25rem;
line-height: 1;
cursor: pointer;
transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.limit-step:hover:not(:disabled) {
border-color: var(--brass-light);
background: rgba(212, 165, 63, 0.12);
}
.limit-step:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.limit-picker__value {
flex: 1;
min-width: 0;
text-align: center;
font-family: var(--font-mono);
}
.limit-picker__value::-webkit-outer-spin-button,
.limit-picker__value::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.limit-picker__value {
-moz-appearance: textfield;
appearance: textfield;
}
.limit-picker.is-unlimited .limit-picker__stepper {
opacity: 0.45;
transition: opacity 0.2s var(--ease-out);
}
.limit-picker.is-unlimited .limit-picker__stepper:hover,
.limit-picker.is-unlimited .limit-picker__stepper:focus-within {
opacity: 0.75;
}
.limit-picker__readout {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-muted);
min-height: 1.1em;
}
@media (max-width: 560px) {
.limit-chip {
flex: 1 1 40%;
}
}
.premium-gate {
display: flex;
align-items: flex-start;
gap: var(--space-lg);
padding: var(--space-lg);
position: relative;
isolation: isolate;
overflow: hidden;
border: 1px solid var(--brass-light);
border-radius: var(--radius-md);
background:
linear-gradient(135deg,
rgba(20, 32, 50, 0.94) 0%,
rgba(10, 18, 30, 0.97) 60%,
rgba(24, 34, 52, 0.94) 100%);
box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5),
inset 0 1px 0 rgba(247, 226, 168, 0.16);
animation: rowIn 0.4s var(--ease-out) backwards;
}
.premium-gate::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: radial-gradient(ellipse 70% 60% at 12% 0%,
rgba(212, 165, 63, 0.16), transparent 70%);
pointer-events: none;
}
.premium-gate__icon {
width: 84px;
height: 84px;
flex: none;
object-fit: contain;
filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}
.premium-gate__body {
min-width: 0;
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.premium-gate__eyebrow {
font-family: var(--font-mono);
font-size: 0.64rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--accent-gold);
}
.premium-gate__title {
font-family: var(--font-display);
font-size: clamp(1.05rem, 2vw, 1.3rem);
font-weight: 400;
letter-spacing: 0.02em;
color: var(--text-primary);
margin: 0;
}
.premium-gate__text {
margin: 0;
font-size: 0.86rem;
line-height: 1.6;
color: var(--text-secondary);
}
.premium-gate__text strong { color: var(--accent-gold); }
.premium-gate__list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: var(--space-xs);
font-size: 0.82rem;
color: var(--text-secondary);
}
.premium-gate__list li {
position: relative;
padding-left: 1.6em;
}
.premium-gate__list li::before {
content: '';
position: absolute;
left: 0;
top: 0.42em;
width: 11px;
height: 11px;
background: url('../media/ui/battle/stud-sm.png') center / contain no-repeat;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
.premium-gate .btn-plate {
align-self: flex-start;
margin-top: var(--space-xs);
}
@media (max-width: 560px) {
.premium-gate {
flex-direction: column;
align-items: center;
text-align: center;
gap: var(--space-md);
}
.premium-gate__icon {
width: 64px;
height: 64px;
}
.premium-gate__list {
text-align: left;
}
.premium-gate .btn-plate {
align-self: stretch;
}
}
.input-group__label {
font-size: 0.85rem;
font-weight: 500;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.rank-select {
position: relative;
}
.rank-select__trigger {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
text-align: left;
cursor: pointer;
font-size: 1rem;
}
.rank-select__trigger:hover {
border-color: var(--border-glow);
}
.rank-select[aria-expanded='true'] .rank-select__trigger,
.rank-select__trigger[aria-expanded='true'] {
border-color: var(--accent-brass);
}
.rank-select__current {
display: flex;
align-items: center;
gap: var(--space-sm);
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rank-select__caret {
flex: none;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 6px solid var(--accent-brass);
transition: transform 0.2s var(--ease-out);
}
.rank-select__trigger[aria-expanded='true'] .rank-select__caret {
transform: rotate(180deg);
}
.rank-select__menu {
position: fixed;
z-index: 2100;
margin: 0;
padding: var(--space-xs);
list-style: none;
max-height: 260px;
overflow-y: auto;
background: var(--ocean-800);
border: 1px solid var(--accent-brass);
border-radius: var(--radius-md);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
scrollbar-width: thin;
scrollbar-color: rgba(212, 165, 63, 0.4) transparent;
animation: rowIn 0.18s var(--ease-out) backwards;
}
.rank-select__menu::-webkit-scrollbar { width: 7px; }
.rank-select__menu::-webkit-scrollbar-track { background: transparent; }
.rank-select__menu::-webkit-scrollbar-thumb {
background: rgba(212, 165, 63, 0.4);
border-radius: 4px;
}
.rank-select__option {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: 10px var(--space-md);
border-radius: var(--radius-md);
color: var(--text-primary);
font-size: 0.94rem;
cursor: pointer;
transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.rank-select__option:hover,
.rank-select__option.is-active {
background: rgba(212, 165, 63, 0.14);
}
.rank-select__option[aria-selected='true'] {
color: var(--accent-gold);
}
.rank-select__option[aria-disabled='true'] {
color: var(--text-muted);
cursor: not-allowed;
}
.rank-select__option[aria-disabled='true']:hover {
background: rgba(212, 165, 63, 0.06);
}
.rank-select__option-label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.rank-select__badge {
flex: none;
width: 20px;
height: 20px;
object-fit: contain;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}
.account-type-choice {
display: flex;
align-items: stretch;
gap: var(--space-sm);
margin-bottom: var(--space-md);
}
.account-type-choice__or {
align-self: center;
flex: none;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-muted);
}
.account-type-card {
flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
gap: var(--space-xs);
padding: var(--space-md);
text-align: left;
background: rgba(7, 13, 23, 0.6);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
cursor: pointer;
transition: border-color 0.2s var(--ease-out),
background 0.2s var(--ease-out),
transform 0.2s var(--ease-out);
}
.account-type-card:hover {
border-color: var(--border-glow);
background: rgba(212, 165, 63, 0.07);
transform: translateY(-2px);
}
.account-type-card[aria-checked='true'] {
border-color: var(--brass-light);
background: rgba(212, 165, 63, 0.14);
box-shadow: inset 0 1px 0 rgba(247, 226, 168, 0.18);
}
.account-type-card:focus-visible {
outline: 2px solid var(--accent-brass);
outline-offset: 2px;
}
.account-type-card__head {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.account-type-card__radio {
flex: 0 0 auto;
width: 21px;
min-width: 21px;
height: 21px;
object-fit: contain;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
.account-type-card__title {
font-family: var(--font-display);
font-size: 1rem;
line-height: 21px;
letter-spacing: 0.02em;
color: var(--accent-gold);
position: relative;
top: 1px;
}
.account-type-card__text {
font-size: 0.78rem;
line-height: 1.5;
color: var(--text-secondary);
}
@media (max-width: 560px) {
.account-type-choice {
flex-direction: column;
}
.account-type-choice__or {
align-self: flex-start;
}
}
.profile-actions {
display: flex;
gap: var(--space-sm);
align-items: center;
}
.subscription-benefits {
display: flex;
flex-direction: column;
gap: var(--space-xs);
padding-left: var(--space-lg);
color: var(--text-secondary);
font-size: 0.85rem;
}
.subscription-benefits li {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.subscription-benefits__icon {
width: 18px;
height: 18px;
object-fit: contain;
flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
.family-row .lamp::after {
animation: none;
opacity: 1;
}
.family-row {
animation: none;
}
}
.family-roster .roster-row {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: var(--space-md);
padding: var(--space-md);
background-color: transparent;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
text-align: left;
position: relative;
isolation: isolate;
transition: border-color 0.3s var(--ease-out),
box-shadow 0.3s var(--ease-out),
transform 0.3s var(--ease-out);
animation: rowIn 0.4s var(--ease-out) backwards;
}
.family-roster .roster-row:hover {
border-color: rgba(212, 165, 63, 0.55);
transform: translateX(3px) translateY(-2px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}
.family-roster .roster-row--ready {
border-color: var(--brass-light);
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(247, 226, 168, 0.18);
}
.family-roster .roster-row--ready:hover { border-color: var(--brass-shine); }
.family-roster .roster-row__bg {
position: absolute;
inset: 0;
z-index: 0;
border-radius: inherit;
overflow: hidden;
pointer-events: none;
}
.family-roster .roster-row__bg::before {
content: '';
position: absolute;
inset: 0;
background: var(--ocean-900) url('../media/ui/lobby/row-bg.jpg') center 72% / 100% auto no-repeat;
transform: scale(1.02);
transition: transform 0.7s var(--ease-out);
}
.family-roster .roster-row:hover .roster-row__bg::before { transform: scale(1.1); }
.family-roster .roster-row__bg::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(100deg,
rgba(8, 14, 24, 0.72) 0%,
rgba(8, 14, 24, 0.62) 55%,
rgba(10, 18, 30, 0.5) 100%);
transition: background 0.3s var(--ease-out);
}
.family-roster .roster-row:hover .roster-row__bg::after {
background: linear-gradient(100deg,
rgba(8, 14, 24, 0.5) 0%,
rgba(8, 14, 24, 0.34) 55%,
rgba(10, 18, 30, 0.2) 100%);
}
.family-roster .family-row--invite .roster-row__bg::before { display: none; }
.family-roster .family-row--invite .roster-row__bg::after { background: rgba(10, 17, 28, 0.72); }
.family-roster .roster-avatar {
position: relative;
width: 58px;
height: 58px;
flex: none;
z-index: 1;
align-self: center;
}
.family-roster .roster-avatar img {
position: static;
left: auto;
bottom: auto;
transform: none;
object-position: center;
border-bottom-right-radius: 50%;
pointer-events: auto;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
border: 2px solid var(--accent-brass);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7),
inset 0 0 12px rgba(0, 0, 0, 0.5);
transition: border-color 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}
.family-roster .roster-row--ready .roster-avatar img {
border-color: var(--brass-light);
}
.family-roster .roster-row:hover .roster-avatar img {
border-color: var(--accent-gold);
}
.family-roster .roster-name {
min-width: 0;
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: var(--space-sm);
font-family: var(--font-display);
font-size: clamp(0.9rem, 1.2vw, 1.02rem);
font-weight: 400;
letter-spacing: 0.02em;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8);
}
.family-roster .roster-name__text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.family-roster .roster-name__you { color: var(--text-muted); font-weight: 400; }
.family-roster .roster-level {
width: 34px;
height: 34px;
flex: none;
object-fit: contain;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
border: none;
border-radius: 0;
}
.family-roster .roster-pve {
padding: 0;
border: none;
background: none;
font-family: var(--font-main);
font-size: 0.78rem;
font-weight: 600;
color: var(--accent-steel);
text-align: left;
cursor: pointer;
border-bottom: 1px solid transparent;
transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.family-roster .roster-pve:hover,
.family-roster .roster-pve:focus-visible {
color: var(--accent-gold);
border-bottom-color: var(--accent-gold);
outline: none;
}
.family-roster .roster-tags {
display: flex;
align-items: center;
gap: var(--space-md);
position: relative;
z-index: 1;
}
.family-roster .lamp {
position: relative;
flex: none;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
cursor: help;
}
@keyframes rowIn {
from { opacity: 0; transform: translateY(8px); }
to   { opacity: 1; transform: none; }
}
.danger-zone {
margin-top: var(--space-2xl);
border: 1px solid rgba(217, 104, 82, 0.45);
border-radius: var(--radius-md);
background: linear-gradient(135deg,
rgba(58, 22, 16, 0.55) 0%,
rgba(24, 16, 20, 0.6) 100%);
overflow: hidden;
}
.danger-zone__label {
padding: var(--space-xs) var(--space-md);
background: rgba(217, 104, 82, 0.16);
border-bottom: 1px solid rgba(217, 104, 82, 0.35);
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--accent-red);
}
.danger-zone__body {
display: flex;
flex-direction: column;
gap: var(--space-sm);
padding: var(--space-lg) var(--space-md) var(--space-md);
}
.danger-zone__title {
margin: 0;
font-family: var(--font-display);
font-size: 1.05rem;
font-weight: 400;
letter-spacing: 0.02em;
color: var(--text-primary);
}
.danger-zone__text {
margin: 0;
font-size: 0.85rem;
line-height: 1.6;
color: var(--text-secondary);
}
.danger-zone__text strong { color: var(--accent-red); }
.danger-zone__text em {
font-style: normal;
font-family: var(--font-mono);
font-size: 0.8rem;
color: var(--text-muted);
}
.danger-zone__form {
margin-top: var(--space-sm);
padding-top: var(--space-md);
border-top: 1px solid rgba(217, 104, 82, 0.25);
animation: rowIn 0.25s var(--ease-out) backwards;
}
.btn-danger {
align-self: flex-start;
padding: 11px 20px;
background: rgba(217, 104, 82, 0.12);
border: 1px solid rgba(217, 104, 82, 0.5);
border-radius: var(--radius-md);
font-family: var(--font-display);
font-size: 0.85rem;
letter-spacing: 0.04em;
color: var(--accent-red);
cursor: pointer;
transition: background 0.2s var(--ease-out),
border-color 0.2s var(--ease-out),
color 0.2s var(--ease-out);
}
.btn-danger:hover:not(:disabled) {
background: linear-gradient(135deg, #7a2c1f, var(--accent-red));
border-color: var(--accent-red);
color: var(--text-primary);
}
.btn-danger:focus-visible {
outline: 2px solid var(--accent-red);
outline-offset: 2px;
}
.btn-danger:disabled {
opacity: 0.5;
cursor: not-allowed;
}
#profile-delete-confirm {
font-family: var(--font-mono);
letter-spacing: 0.14em;
text-transform: uppercase;
}
@media (max-width: 560px) {
.profile-dossier {
gap: var(--space-sm);
}
.profile-dossier__portrait {
width: 60px;
height: 60px;
}
.profile-dossier__avatar {
width: 44px;
height: 44px;
}
.rank-progress__badge {
width: 44px;
height: 44px;
}
.profile-field-row {
flex-direction: column;
gap: var(--space-md);
}
.btn-danger {
align-self: stretch;
text-align: center;
}
}
.premium-modal {
max-width: 780px;
width: 100%;
background: var(--surface-overlay);
padding-top: 64px;
}
.premium-modal-frame {
position: relative;
width: 100%;
max-width: 780px;
display: flex;
}
.premium-modal-frame > .premium-modal {
max-width: none;
}
.premium-modal__crest {
position: absolute;
top: -33px;
left: 0;
right: 0;
margin-inline: auto;
z-index: 3;
display: block;
width: 132px;
height: auto;
opacity: 0.95;
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
pointer-events: none;
}
@media (max-width: 480px) {
.premium-modal { padding-top: 46px; }
.premium-modal__crest {
width: 96px;
top: -24px;
}
}
.plans-cta {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
text-align: center;
margin-bottom: var(--space-lg);
}
.plans-cta__title {
font-family: var(--font-display);
font-size: clamp(1.15rem, 3.4vw, 1.45rem);
letter-spacing: 0.02em;
line-height: 1.25;
color: var(--accent-gold);
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
margin: 0;
text-wrap: balance;
}
.premium-modal__title {
font-family: var(--font-display);
font-size: clamp(1.3rem, 4vw, 1.7rem);
letter-spacing: 0.04em;
line-height: 1.2;
text-align: center;
color: var(--accent-gold);
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
margin: 0 0 var(--space-lg);
}
.plans-cta__sub {
font-size: 0.88rem;
line-height: 1.55;
color: var(--text-secondary);
max-width: 54ch;
margin: 0;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.plans-cta__sub strong {
display: block;
margin-bottom: 2px;
font-family: var(--font-display);
font-size: 1.05rem;
font-weight: 400;
letter-spacing: 0.02em;
color: var(--text-primary);
}
.billing-toggle {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
justify-content: center;
gap: var(--space-sm) var(--space-md);
margin-bottom: var(--space-lg);
width: fit-content;
margin-inline: auto;
max-width: 100%;
}
.billing-toggle__caption {
grid-column: 1 / -1;
justify-self: center;
font-size: 0.85rem;
letter-spacing: 0.01em;
color: var(--text-secondary);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
margin-bottom: 4px;
}
.billing-toggle__side {
background: none;
border: none;
padding: 8px 4px;
min-height: 44px;
font-family: var(--font-display);
font-size: 0.95rem;
letter-spacing: 0.05em;
color: var(--text-muted);
cursor: pointer;
white-space: nowrap;
transition: color 0.25s var(--ease-out), text-shadow 0.25s var(--ease-out);
}
.billing-toggle__side--left  { text-align: right; }
.billing-toggle__side--right { text-align: left; }
.billing-toggle__side:hover { color: var(--text-secondary); }
.billing-toggle__side[aria-pressed="true"] {
color: var(--accent-gold);
text-shadow: 0 0 10px rgba(240, 195, 104, 0.4);
}
.billing-toggle__side:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
border-radius: var(--radius-sm);
}
.billing-toggle__rail {
position: relative;
width: min(112px, 30vw);
aspect-ratio: 564 / 192;
background-color: transparent;
background-image: url('../media/ui/toggle/knob-left.png');
background-size: 100% 100%;
background-repeat: no-repeat;
border: none;
padding: 0;
appearance: none;
-webkit-appearance: none;
cursor: pointer;
filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
-webkit-tap-highlight-color: transparent;
}
.billing-toggle__rail[aria-checked="true"] {
background-image: url('../media/ui/toggle/knob-right.png');
}
.billing-toggle__rail:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 3px;
border-radius: var(--radius-full);
}
.billing-toggle__rail::after {
content: '';
position: absolute;
inset: -10px -6px;
}
.billing-toggle__choice {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
}
.billing-toggle__save {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px 3px 5px;
margin-left: -2px;
font-family: var(--font-display);
font-size: 0.7rem;
letter-spacing: 0.05em;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
white-space: nowrap;
background:
linear-gradient(rgba(212, 165, 63, 0.10), rgba(212, 165, 63, 0.04)),
rgba(7, 13, 23, 0.7);
border: 1px solid rgba(212, 165, 63, 0.45);
border-radius: var(--radius-full);
box-shadow:
inset 0 1px 0 rgba(247, 226, 168, 0.12),
0 2px 10px rgba(0, 0, 0, 0.45);
}
.billing-toggle__save::before {
content: '';
width: 19px;
height: 19px;
flex: none;
background: url('../media/icons/ui_icon_discount.png') center / contain no-repeat;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
animation: discountSway 5s var(--ease-out) infinite;
transform-origin: 50% 15%;
}
@keyframes discountSway {
0%, 82%, 100% { transform: rotate(0deg); }
86%           { transform: rotate(-7deg); }
91%           { transform: rotate(5deg); }
96%           { transform: rotate(-2deg); }
}
.billing-toggle__save[hidden] {
display: none;
}
.plan-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
gap: var(--space-xl) var(--space-md);
}
.plan-card {
position: relative;
display: flex;
flex-direction: column;
gap: var(--space-sm);
padding: var(--space-md);
text-align: left;
background:
linear-gradient(rgba(8, 15, 26, 0.74), rgba(6, 11, 20, 0.80)),
url('../media/ui/bg-blueprint.jpg') center / cover no-repeat;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
font-family: var(--font-main);
color: var(--text-primary);
transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
overflow: visible;
container-type: inline-size;
}
.plan-card > :not(.plan-card__art):not(.plan-card__banner):not(.plan-card__check):not(.thin-frame__v),
.plan-card__price-row > * {
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.plan-card__amount,
.plan-card__title {
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9);
}
.plan-card.thin-frame {
--thin-frame-size: 15px;
padding: var(--space-md);
}
.plan-card[aria-pressed="true"].thin-frame::before,
.plan-card[aria-pressed="true"].thin-frame::after,
.plan-card[aria-pressed="true"] .thin-frame__v {
filter: brightness(1.25) drop-shadow(0 0 3px rgba(240, 195, 104, 0.4));
}
.plan-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.plan-card:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.plan-card[aria-pressed="true"] {
box-shadow: var(--shadow-glow-gold);
}
.plan-card__check {
position: absolute;
bottom: 0;
left: 50%;
width: 45px; height: 45px;
background: url('../media/ui/frame/symbol-check-circle.png') center / contain no-repeat;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
pointer-events: none;
opacity: 0;
transform: translate(-50%, 50%) scale(0.7);
transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-spring);
z-index: 4;
}
.plan-card[aria-pressed="true"] .plan-card__check {
opacity: 1;
transform: translate(-50%, 50%) scale(1);
}
.plan-card__art {
width: auto;
margin: calc(var(--space-md) * -1) calc(var(--space-md) * -1) 0;
aspect-ratio: 4 / 3;
object-fit: cover;
object-position: 50% 12%;
border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
background: rgba(7, 13, 23, 0.5);
border-bottom: 1px solid rgba(212, 165, 63, 0.35);
}
.plan-card__art--placeholder {
display: flex;
width: auto;
align-items: center;
justify-content: center;
background:
repeating-linear-gradient(45deg,
rgba(212, 165, 63, 0.05) 0 8px,
transparent 8px 16px),
rgba(7, 13, 23, 0.5);
}
.plan-card__art--placeholder img {
width: 38px; height: 38px;
opacity: 0.4;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
.plan-card__title {
font-family: var(--font-display);
font-size: 1.1rem;
letter-spacing: 0.03em;
color: var(--accent-gold);
margin: 0;
}
.plan-card__desc {
font-size: 0.8rem;
color: var(--text-muted);
line-height: 1.45;
margin: 0;
}
.plan-card__price {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 2px;
margin-top: auto;
padding-top: var(--space-sm);
font-variant-numeric: tabular-nums;
}
.plan-card__price::before {
content: '';
display: block;
width: 10px;
height: calc(100cqi - 2 * var(--space-md));
margin-left: auto;
margin-right: auto;
background: url('../media/ui/frame/divider-line.png') center / 100% 100% no-repeat;
transform: rotate(90deg);
opacity: 0.85;
margin-top: calc((10px - (100cqi - 2 * var(--space-md))) / 2);
margin-bottom: calc((10px - (100cqi - 2 * var(--space-md))) / 2 + var(--space-xs));
}
.plan-card__price-row {
display: flex;
align-items: baseline;
gap: 6px;
flex-wrap: nowrap;
white-space: nowrap;
min-width: 0;
}
.plan-card__amount {
font-family: var(--font-display);
font-size: clamp(1.15rem, 4.2cqi, 1.45rem);
color: var(--text-primary);
line-height: 1.05;
white-space: nowrap;
}
.plan-card__per {
font-size: 0.75rem;
color: var(--text-muted);
white-space: nowrap;
}
.plan-card__struck {
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--text-muted);
text-decoration: line-through;
white-space: nowrap;
line-height: 1;
}
.plan-card__equiv {
font-family: var(--font-mono);
font-size: 0.68rem;
color: var(--accent-green);
letter-spacing: 0.02em;
}
.plan-card__seats {
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 6px;
}
.plan-card__seats img { width: 14px; height: 14px; opacity: 0.75; }
.plan-card__banner {
position: absolute;
top: -3px;
right: -5px;
z-index: 4;
width: 96px;
aspect-ratio: 400/394;
background: url('../media/ui/frame/banner-corner.png') top right / 100% auto no-repeat;
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
pointer-events: none;
}
.plan-card__banner-text {
position: absolute;
top: 30%;
right: -14%;
width: 96%;
text-align: center;
transform: rotate(45deg);
transform-origin: center;
font-family: var(--font-display);
font-size: clamp(0.6rem, 2.4cqi, 0.74rem);
letter-spacing: 0.05em;
text-transform: uppercase;
line-height: 1;
white-space: nowrap;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}
.plan-card__flag {
position: absolute;
top: -9px;
left: var(--space-sm);
right: var(--space-sm);
padding: 3px 8px;
background: var(--accent-brass);
color: #1a1206;
font-family: var(--font-mono);
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
text-align: center;
line-height: 1.25;
border-radius: var(--radius-full);
box-shadow: var(--shadow-sm);
z-index: 3;
}
.plan-card--bannered .plan-card__title { padding-right: 46px; }
.plan-card[disabled] { opacity: 0.55; cursor: default; transform: none; }
.plan-card[disabled]:hover { box-shadow: none; transform: none; }
.plan-card__current {
position: absolute;
top: -9px; right: var(--space-md);
padding: 2px 10px;
background: var(--surface-elevated);
border: 1px solid var(--border-subtle);
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 0.62rem;
letter-spacing: 0.08em;
text-transform: uppercase;
border-radius: var(--radius-full);
}
.promo { margin-top: var(--space-md); }
.promo__toggle {
background: none;
border: none;
padding: 4px 0;
color: var(--text-secondary);
font-family: var(--font-main);
font-size: 0.83rem;
text-decoration: underline;
text-underline-offset: 3px;
cursor: pointer;
}
.promo__toggle:hover { color: var(--accent-gold); }
.promo__toggle:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.promo__body { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-sm); }
.promo__row { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.promo__input {
flex: 1;
min-width: 140px;
min-height: 44px;
padding: 10px 14px;
background: rgba(7, 13, 23, 0.6);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-family: var(--font-mono);
font-size: 0.9rem;
letter-spacing: 0.08em;
text-transform: uppercase;
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}
.promo__input::placeholder { color: var(--text-muted); letter-spacing: 0.04em; text-transform: none; }
.promo__input:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 1px; }
.promo__apply {
min-height: 44px;
padding: 10px 18px;
background: var(--surface-elevated);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-family: var(--font-main);
font-size: 0.85rem;
cursor: pointer;
white-space: nowrap;
transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.promo__apply:hover { color: var(--text-primary); border-color: var(--accent-brass); }
.promo__apply:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.promo__msg { font-size: 0.8rem; margin: 0; line-height: 1.45; }
.promo__msg--ok    { color: var(--accent-green); }
.promo__msg--error { color: var(--accent-red); }
.promo__chip {
display: inline-flex;
align-items: center;
gap: var(--space-sm);
padding: 6px 8px 6px 12px;
background: rgba(90, 158, 111, 0.12);
border: 1px solid rgba(90, 158, 111, 0.45);
border-radius: var(--radius-full);
font-size: 0.8rem;
color: var(--text-primary);
}
.promo__chip strong { font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--accent-green); }
.promo__chip button {
width: 24px; height: 24px;
display: grid; place-items: center;
background: none; border: none; cursor: pointer;
color: var(--text-muted); font-size: 1rem; line-height: 1;
border-radius: 50%;
}
.promo__chip button:hover { color: var(--accent-red); background: rgba(217, 104, 82, 0.15); }
.promo__chip button:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 1px; }
.subscription-benefits li { position: relative; padding-left: 1.6em; }
.subscription-benefits li .subscription-benefits__icon { display: none; }
.subscription-benefits li::before {
content: '';
position: absolute;
left: 0;
top: 0.42em;
width: 11px;
height: 11px;
background: url('../media/ui/battle/stud-sm.png') center / contain no-repeat;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
.plan-features {
margin-top: var(--space-lg);
padding: var(--space-md);
background: rgba(7, 13, 23, 0.35);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
}
.plan-features__head {
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-muted);
margin: 0 0 var(--space-sm);
}
.plan-features__note {
margin: var(--space-sm) 0 0;
padding-top: var(--space-sm);
border-top: 1px dashed var(--border-subtle);
font-size: 0.8rem;
line-height: 1.55;
color: var(--text-muted);
}
.plan-features__note strong { color: var(--text-secondary); font-weight: 600; }
.thin-frame {
position: relative;
padding: var(--space-lg);
}
.thin-frame::before,
.thin-frame::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
}
.thin-frame::before {
inset: 0 var(--thin-frame-size);
}
.thin-frame__v {
content: '';
position: absolute;
inset: var(--thin-frame-size) 0;
pointer-events: none;
background-image:
url('../media/ui/frame/thin/edge-left.png'),
url('../media/ui/frame/thin/edge-right.png');
background-position: left center, right center;
background-repeat: repeat-y, repeat-y;
background-size: var(--thin-frame-size) auto, var(--thin-frame-size) auto;
}
.thin-frame {
--thin-frame-size: 22px;
}
.thin-frame::before {
background-image:
url('../media/ui/frame/thin/edge-top.png'),
url('../media/ui/frame/thin/edge-bottom.png');
background-position: top center, bottom center;
background-repeat: repeat-x, repeat-x;
background-size: auto var(--thin-frame-size), auto var(--thin-frame-size);
}
.thin-frame::after {
background-image:
url('../media/ui/frame/thin/corner-tl.png'),
url('../media/ui/frame/thin/corner-tr.png'),
url('../media/ui/frame/thin/corner-bl.png'),
url('../media/ui/frame/thin/corner-br.png');
background-position: top left, top right, bottom left, bottom right;
background-repeat: no-repeat;
background-size: var(--thin-frame-size) var(--thin-frame-size);
}
.sub-status {
display: flex;
gap: var(--space-md);
align-items: flex-start;
padding: var(--space-md);
background: var(--surface-card);
border-radius: var(--radius-md);
}
.sub-status__icon {
width: 52px; height: 52px;
object-fit: contain;
flex-shrink: 0;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}
.sub-status__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sub-status__plan {
font-family: var(--font-display);
font-size: 1.2rem;
color: var(--accent-gold);
letter-spacing: 0.03em;
}
.sub-status__line { font-size: 0.85rem; color: var(--text-secondary); }
.sub-status__line strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.sub-badge {
display: inline-flex;
align-items: center;
gap: 6px;
align-self: flex-start;
padding: 3px 10px;
border-radius: var(--radius-full);
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.08em;
text-transform: uppercase;
border: 1px solid;
}
.sub-badge--active    { color: var(--accent-green); border-color: rgba(90, 158, 111, 0.45); background: rgba(90, 158, 111, 0.1); }
.sub-badge--cancelled { color: var(--accent-orange); border-color: rgba(210, 133, 58, 0.45); background: rgba(210, 133, 58, 0.1); }
.sub-badge--suspended { color: var(--accent-red); border-color: rgba(217, 104, 82, 0.45); background: rgba(217, 104, 82, 0.1); }
.sub-badge--pending   { color: var(--accent-steel); border-color: rgba(91, 143, 199, 0.45); background: rgba(91, 143, 199, 0.1); }
.sub-badge__lamp {
position: relative;
width: 18px;
height: 18px;
flex: none;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}
.sub-badge--active .sub-badge__lamp {
background-image: url('../media/ui/lobby/lamp-green-on.png');
filter: drop-shadow(0 0 6px rgba(111, 224, 140, 0.75));
}
.sub-badge--cancelled .sub-badge__lamp { background-image: url('../media/ui/lobby/lamp-amber-off.png'); }
.sub-badge--cancelled .sub-badge__lamp::after {
content: '';
position: absolute;
inset: 0;
background: url('../media/ui/lobby/lamp-amber-on.png') center / contain no-repeat;
filter: drop-shadow(0 0 5px var(--accent-gold-glow));
animation: lampPulse 2.4s ease-in-out infinite;
}
.sub-badge--suspended .sub-badge__lamp { background-image: url('../media/ui/lobby/lamp-red-off.png'); }
.sub-badge--suspended .sub-badge__lamp::after {
content: '';
position: absolute;
inset: 0;
background: url('../media/ui/lobby/lamp-red-on.png') center / contain no-repeat;
filter: drop-shadow(0 0 5px rgba(217, 104, 82, 0.8));
animation: lampPulse 1.6s ease-in-out infinite;
}
.sub-badge--pending .sub-badge__lamp { background-image: url('../media/ui/lobby/lamp-amber-on.png'); }
.alert-lamp {
position: relative;
width: 20px;
height: 20px;
flex: none;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}
.alert-lamp--red   { background-image: url('../media/ui/lobby/lamp-red-on.png');   filter: drop-shadow(0 0 5px rgba(217, 104, 82, 0.7)); }
.alert-lamp--amber { background-image: url('../media/ui/lobby/lamp-amber-on.png'); filter: drop-shadow(0 0 5px var(--accent-gold-glow)); }
.alert-lamp--green { background-image: url('../media/ui/lobby/lamp-green-on.png'); filter: drop-shadow(0 0 5px rgba(111, 224, 140, 0.7)); }
.sub-alert {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
background: rgba(217, 104, 82, 0.1);
border: 1px solid rgba(217, 104, 82, 0.4);
border-left: 3px solid var(--accent-red);
border-radius: var(--radius-sm);
font-size: 0.83rem;
color: var(--text-secondary);
line-height: 1.5;
}
.sub-alert strong { color: var(--accent-red); }
.sub-alert[hidden] { display: none; }
.sub-alert--notice {
background: rgba(240, 195, 104, 0.08);
border-color: rgba(240, 195, 104, 0.35);
border-left-color: var(--accent-gold);
}
.sub-alert--notice strong { color: var(--accent-gold); }
.sub-alert--success {
background: rgba(111, 224, 140, 0.08);
border-color: rgba(111, 224, 140, 0.35);
border-left-color: #6fe08c;
}
.sub-alert--success strong { color: #6fe08c; }
#plan-ended-hint { margin-bottom: var(--space-lg); }
.fair-note {
display: flex;
gap: var(--space-md);
align-items: flex-start;
padding: var(--space-md);
background: rgba(90, 158, 111, 0.07);
border: 1px solid rgba(90, 158, 111, 0.28);
border-radius: var(--radius-md);
}
.fair-note__icon {
width: 30px; height: 30px;
object-fit: contain;
flex-shrink: 0;
opacity: 0.85;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}
.fair-note__body { display: flex; flex-direction: column; gap: 4px; }
.fair-note__body strong { color: var(--text-primary); font-size: 0.88rem; font-weight: 600; }
.fair-note__body span { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.5; }
.fair-note--support {
background: rgba(91, 143, 199, 0.07);
border-color: rgba(91, 143, 199, 0.28);
}
.fair-note__more {
align-self: flex-start;
margin-top: 6px;
padding: 2px 0;
background: none;
border: none;
font-family: var(--font-main);
font-size: 0.8rem;
color: var(--accent-steel);
cursor: pointer;
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: rgba(91, 143, 199, 0.45);
transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
.fair-note__more:hover {
color: var(--text-primary);
text-decoration-color: var(--text-primary);
}
.fair-note__more:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
border-radius: 2px;
}
.pending-change {
display: flex;
gap: var(--space-sm);
align-items: center;
padding: var(--space-sm) var(--space-md);
background: rgba(91, 143, 199, 0.1);
border: 1px solid rgba(91, 143, 199, 0.4);
border-left: 3px solid var(--accent-steel);
border-radius: var(--radius-sm);
font-size: 0.83rem;
color: var(--text-secondary);
line-height: 1.5;
}
.pending-change strong { color: var(--accent-steel); }
.pending-change button {
margin-left: auto;
flex-shrink: 0;
background: none;
border: none;
color: var(--text-muted);
font-size: 0.78rem;
text-decoration: underline;
text-underline-offset: 2px;
cursor: pointer;
padding: 4px;
}
.pending-change button:hover { color: var(--accent-red); }
.pending-change button:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.logbook-head {
display: flex;
align-items: flex-start;
gap: var(--space-lg);
flex-wrap: wrap;
padding: var(--space-md) var(--space-lg);
background: rgba(7, 13, 23, 0.45);
border-radius: var(--radius-md);
margin-bottom: var(--space-md);
}
.logbook-head[hidden] { display: none; }
.logbook-head__crest {
height: 44px;
width: auto;
flex: none;
align-self: center;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}
.logbook-head__body {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.logbook-head__method {
font-family: var(--font-display);
font-size: 1.15rem;
color: var(--text-primary);
letter-spacing: 0.03em;
font-variant-numeric: tabular-nums;
}
.logbook-head__dots { color: var(--text-muted); letter-spacing: 0.1em; }
.logbook-head__sub { font-size: 0.76rem; color: var(--text-muted); }
.logbook-head__sub--warn { color: var(--accent-red); }
.logbook-head__aside {
display: flex;
flex-direction: column;
gap: 2px;
padding-left: var(--space-lg);
border-left: 1px solid rgba(212, 165, 63, 0.22);
text-align: right;
align-self: stretch;
}
.logbook-head__body + .logbook-head__aside { margin-left: auto; }
.logbook-stat__label {
font-family: var(--font-mono);
font-size: 0.62rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-muted);
}
.logbook-stat__value {
font-family: var(--font-display);
font-size: 1.05rem;
color: var(--text-primary);
font-variant-numeric: tabular-nums;
}
.logbook-list { display: block; }
.logbook {
list-style: none;
margin: 0;
padding: 0 0 0 var(--space-lg);
border-left: 2px solid rgba(212, 165, 63, 0.3);
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.logbook-entry {
position: relative;
display: grid;
grid-template-columns: auto 1fr auto 34px;
align-items: center;
gap: 2px var(--space-md);
padding: var(--space-sm) var(--space-md);
background: rgba(11, 22, 38, 0.55);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
}
.logbook-entry__node {
position: absolute;
left: calc(var(--space-lg) * -1 - 1px);
top: 50%;
transform: translate(-50%, -50%);
box-sizing: border-box;
width: 14px; height: 14px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #e3c073, #8a6a2f 70%);
border: 1px solid rgba(240, 195, 104, 0.55);
box-shadow: 0 0 6px rgba(212, 165, 63, 0.4);
}
.logbook-entry__node--star {
width: 20px; height: 20px;
background: radial-gradient(circle at 35% 30%, #f0c368, #9c6f1f 70%);
border: 2px solid var(--accent-gold);
box-shadow: 0 0 10px var(--accent-gold-glow);
}
.logbook-entry--start { background: rgba(212, 165, 63, 0.07); border-color: rgba(212, 165, 63, 0.3); }
.logbook-entry__date {
font-family: var(--font-mono);
font-size: 0.82rem;
color: var(--accent-gold);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.logbook-entry__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.logbook-entry__title {
font-family: var(--font-display);
font-size: 0.92rem;
letter-spacing: 0.03em;
color: var(--text-primary);
}
.logbook-entry__meta { font-size: 0.76rem; color: var(--text-muted); }
.logbook-entry__amount {
font-family: var(--font-display);
font-size: 1rem;
color: var(--text-primary);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.logbook-entry__pdf {
display: grid;
place-items: center;
width: 34px; height: 34px;
justify-self: end;
border-radius: var(--radius-sm);
border: 1px solid rgba(212, 165, 63, 0.4);
background: linear-gradient(160deg, rgba(212, 165, 63, 0.16), rgba(212, 165, 63, 0.05));
color: var(--accent-gold);
font-family: var(--font-mono);
font-size: 0.6rem;
letter-spacing: 0.06em;
text-decoration: none;
transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.logbook-entry__pdf:hover {
background: linear-gradient(160deg, rgba(212, 165, 63, 0.3), rgba(212, 165, 63, 0.12));
border-color: var(--accent-gold);
transform: translateY(-1px);
}
.logbook-entry__pdf:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
}
.logbook-note {
margin: var(--space-sm) 0 0;
padding-left: var(--space-lg);
font-size: 0.74rem;
line-height: 1.5;
color: var(--text-muted);
}
.logbook-entry--failed { border-color: rgba(217, 104, 82, 0.45); }
.logbook-entry--failed .logbook-entry__title,
.logbook-entry--failed .logbook-entry__amount { color: var(--accent-red); }
.logbook-entry--failed .logbook-entry__node { background: var(--accent-red); border-color: rgba(217, 104, 82, 0.7); }
.logbook-entry--refunded .logbook-entry__amount { text-decoration: line-through; color: var(--text-muted); }
.logbook-entry--open .logbook-entry__node,
.logbook-entry--pending .logbook-entry__node { background: var(--text-muted); box-shadow: none; }
.logbook-foot {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
margin: var(--space-md) 0 0;
font-size: 0.76rem;
color: var(--text-muted);
text-align: center;
}
.logbook-foot img { width: 18px; height: 18px; opacity: 0.6; flex: none; }
@media (max-width: 560px) {
.logbook-head { gap: var(--space-md); }
.logbook-head__aside {
margin-left: 0;
padding-left: 0;
padding-top: var(--space-sm);
border-left: 0;
border-top: 1px solid rgba(212, 165, 63, 0.22);
text-align: left;
width: 100%;
}
.logbook-entry { grid-template-columns: 1fr auto auto; }
.logbook-entry__date { grid-column: 1 / -1; }
.logbook-entry__amount { grid-column: 2; grid-row: 2; }
.logbook-entry__pdf { grid-column: 3; grid-row: 2; }
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
padding: var(--space-xl) var(--space-md);
text-align: center;
color: var(--text-muted);
font-size: 0.85rem;
}
.empty-state img { width: 44px; height: 44px; opacity: 0.35; }
.checkout-wait {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
padding: var(--space-2xl) var(--space-md);
text-align: center;
}
.checkout-wait__ring {
width: 54px; height: 54px;
border: 3px solid rgba(212, 165, 63, 0.2);
border-top-color: var(--accent-brass);
border-radius: 50%;
animation: cw-spin 0.9s linear infinite;
}
@keyframes cw-spin { to { transform: rotate(360deg); } }
.checkout-wait__title { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-primary); letter-spacing: 0.02em; }
.checkout-wait__hint { font-size: 0.85rem; color: var(--text-muted); max-width: 46ch; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) {
.plan-card:hover { transform: none; }
.billing-toggle__save,
.billing-toggle__save::before { animation: none; }
.sub-badge__lamp::after { animation: none; opacity: 1; }
}
.change-compare {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: var(--space-sm);
align-items: center;
background: rgba(7, 13, 23, 0.35);
border-radius: var(--radius-md);
}
.change-compare__side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.change-compare__side--to { text-align: right; }
.change-compare__label {
font-family: var(--font-mono);
font-size: 0.62rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
}
.change-compare__plan { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); }
.change-compare__side--to .change-compare__plan { color: var(--accent-gold); }
.change-compare__price { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.change-compare__arrow {
width: 40px;
height: 40px;
filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}
.change-detail {
flex-direction: column;
gap: var(--space-md);
margin-top: var(--space-md);
}
.change-charge {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: var(--space-md);
padding: var(--space-sm) var(--space-md);
background: rgba(212, 165, 63, 0.08);
border: 1px solid rgba(212, 165, 63, 0.35);
border-radius: var(--radius-sm);
font-size: 0.85rem;
color: var(--text-secondary);
}
.change-charge__amount {
font-family: var(--font-display);
font-size: 1.15rem;
color: var(--accent-gold);
font-variant-numeric: tabular-nums;
}
.sub-legal {
font-size: 0.82rem;
color: var(--text-muted);
line-height: 1.6;
text-align: center;
padding-top: var(--space-xs);
max-width: 58ch;
margin-inline: auto;
}
.sub-legal a { color: var(--text-secondary); }
.sub-consent {
display: flex;
align-items: flex-start;
gap: var(--space-sm);
max-width: 58ch;
margin-inline: auto;
padding: var(--space-sm) var(--space-md);
background: rgba(8, 14, 24, 0.45);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
cursor: pointer;
transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.sub-consent:hover { border-color: var(--border-glow); }
.sub-consent--idle {
opacity: 0.5;
cursor: default;
}
.sub-consent--idle:hover { border-color: var(--border-subtle); }
.sub-consent__box {
flex: none;
width: 18px;
height: 18px;
margin-top: 2px;
accent-color: var(--accent-brass);
cursor: pointer;
}
.sub-consent--idle .sub-consent__box { cursor: default; }
.sub-consent__box:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
}
.sub-consent__text {
font-size: 0.84rem;
line-height: 1.6;
color: var(--text-secondary);
text-align: left;
}
.sub-consent__box:checked ~ .sub-consent__text { color: var(--text-primary); }
.sub-consent:has(.sub-consent__box:checked) {
border-color: var(--border-glow);
background: rgba(212, 165, 63, 0.07);
}
.sub-consent__text a {
color: var(--accent-steel);
text-decoration: underline;
text-underline-offset: 2px;
}
.sub-consent__text a:hover { color: var(--accent-gold); }
.premium-actions {
display: flex;
flex-direction: column;
gap: var(--space-sm);
margin-top: var(--space-md);
}
.premium-actions--row {
flex-direction: row;
flex-wrap: wrap;
align-items: center;
gap: var(--space-lg);
}
.premium-actions--row .btn-danger { align-self: auto; }
.premium-actions .btn-plate:disabled {
filter: saturate(0.35) brightness(0.72);
cursor: not-allowed;
opacity: 0.85;
}
@media (max-width: 560px) {
.change-compare { grid-template-columns: 1fr; text-align: left; }
.change-compare__side--to { text-align: left; }
.change-compare__arrow {
content: url('../media/ui/arrows/arrow-down.png');
width: 40px;
height: 40px;
justify-self: center;
}
}
.ns-spinner {
display: inline-block;
flex: none;
width: var(--spin-size, 28px);
height: var(--spin-size, 28px);
background: url('../media/ui/spinner-compass.png') center / contain no-repeat;
filter: drop-shadow(0 0 6px var(--accent-brass-glow));
animation: ns-spin 2.4s linear infinite;
will-change: transform;
}
.ns-spinner--sm { --spin-size: 20px; }
.ns-spinner--lg { --spin-size: 64px; }
@keyframes ns-spin { to { transform: rotate(360deg); } }
.dialog-busy {
position: fixed;
inset: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: center;
background: rgba(8, 14, 24, 0.72);
backdrop-filter: blur(2px);
animation: db-fade 0.18s var(--ease-out, ease-out);
}
.dialog-busy[hidden] { display: none; }
@keyframes db-fade { from { opacity: 0; } to { opacity: 1; } }
.dialog-busy__box {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
text-align: center;
padding: var(--space-md);
}
.dialog-busy__text {
font-family: var(--font-display);
font-size: 1rem;
letter-spacing: 0.02em;
color: var(--text-primary);
max-width: 34ch;
line-height: 1.5;
}
.premium-modal [inert] {
pointer-events: none;
user-select: none;
}
.checkout-wait__ring {
width: 64px; height: 64px;
border: 0;
border-radius: 0;
background: url('../media/ui/spinner-compass.png') center / contain no-repeat;
filter: drop-shadow(0 0 10px var(--accent-brass-glow));
animation: ns-spin 2.4s linear infinite;
}
.change-detail--loading { min-height: 128px; }
@media (prefers-reduced-motion: reduce) {
.ns-spinner,
.checkout-wait__ring { animation: none; }
.dialog-busy { animation: none; }
}
.transparency-modal { max-width: 680px; }
.transparency-cta { margin-bottom: var(--space-md); }
.transparency-cta__illu {
width: min(340px, 72%);
height: auto;
margin-bottom: 2px;
filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}
.transparency-toc {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
margin-bottom: var(--space-lg);
padding-bottom: var(--space-md);
border-bottom: 1px solid var(--border-subtle);
}
.transparency-toc__item {
padding: 5px 11px;
background: rgba(8, 14, 24, 0.45);
border: 1px solid var(--border-subtle);
border-radius: 999px;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.06em;
color: var(--text-secondary);
cursor: pointer;
transition: color 0.2s var(--ease-out),
border-color 0.2s var(--ease-out),
background 0.2s var(--ease-out);
}
.transparency-toc__item:hover,
.transparency-toc__item:focus-visible {
color: var(--accent-gold);
border-color: var(--accent-brass);
background: rgba(212, 165, 63, 0.1);
}
.transparency-tldr {
padding: var(--space-md);
margin-bottom: 28px;
background: rgba(8, 14, 24, 0.45);
border: 1px solid var(--border-subtle);
border-left: 2px solid var(--accent-brass);
border-radius: var(--radius-md);
}
.transparency-tldr__mark {
display: block;
font-family: var(--font-mono);
font-size: 0.66rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent-brass);
margin-bottom: 6px;
}
.transparency-tldr p {
font-size: 0.92rem;
line-height: 1.6;
color: var(--text-primary);
margin: 0;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.transparency-statement {
border-left: 2px solid var(--accent-brass);
padding-left: var(--space-md);
margin-bottom: 28px;
}
.transparency-statement p {
font-size: 0.9rem;
line-height: 1.65;
color: var(--text-secondary);
margin: 0 0 var(--space-md);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.transparency-statement p:last-child { margin-bottom: 0; }
.transparency-statement strong {
color: var(--accent-gold);
font-weight: 500;
}
.transparency-story {
display: block;
padding: var(--space-md);
margin-bottom: 32px;
background:
linear-gradient(rgba(91, 143, 199, 0.09), rgba(91, 143, 199, 0.04));
border: 1px solid rgba(91, 143, 199, 0.28);
border-left: 2px solid var(--accent-steel);
border-radius: var(--radius-md);
}
.transparency-story__mark {
display: block;
font-family: var(--font-mono);
font-size: 0.66rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--accent-steel);
margin-bottom: 8px;
}
.transparency-story p {
font-size: 0.86rem;
line-height: 1.6;
color: var(--text-secondary);
margin: 0 0 var(--space-sm);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.transparency-story p:last-child { margin-bottom: 0; }
.transparency-shot {
margin-top: var(--space-md);
}
.transparency-shot__toggle {
display: flex;
align-items: center;
gap: 8px;
min-height: 44px;
padding: 0 2px;
font-family: var(--font-mono);
font-size: 0.72rem;
letter-spacing: 0.06em;
color: var(--accent-steel);
cursor: pointer;
list-style: none;
transition: color 0.2s var(--ease-out);
}
.transparency-shot__toggle::-webkit-details-marker { display: none; }
.transparency-shot__toggle::before {
content: '';
width: 0;
height: 0;
border-left: 5px solid currentColor;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
transition: transform 0.2s var(--ease-out);
}
.transparency-shot[open] .transparency-shot__toggle::before {
transform: rotate(90deg);
}
.transparency-shot__toggle:hover { color: var(--accent-gold); }
.transparency-shot__figure {
position: relative;
margin: var(--space-sm) 0 0;
overflow: visible;
}
.transparency-shot__img {
display: block;
width: 100%;
height: auto;
border-radius: var(--radius-sm);
opacity: 0.92;
transition: opacity 0.3s var(--ease-out);
}
.transparency-shot__img:hover { opacity: 1; }
.transparency-shot__banner {
position: absolute;
top: 3px;
right: 0;
z-index: 2;
width: 86px;
aspect-ratio: 400/394;
background: url('../media/ui/frame/banner-corner.png') top right / 100% auto no-repeat;
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
pointer-events: none;
}
.transparency-shot__banner-text {
position: absolute;
top: 30%;
right: -14%;
width: 96%;
text-align: center;
transform: rotate(45deg);
transform-origin: center;
font-family: var(--font-display);
font-size: 0.68rem;
letter-spacing: 0.05em;
text-transform: uppercase;
line-height: 1;
white-space: nowrap;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}
.transparency-shot__caption {
margin-top: 8px;
font-size: 0.78rem;
line-height: 1.5;
color: var(--text-muted);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
@media (prefers-reduced-motion: reduce) {
.transparency-shot__toggle::before { transition: none; }
}
.source-list {
list-style: none;
margin: 0 0 28px;
padding: 0;
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.source-item {
display: flex;
flex-direction: column;
gap: 3px;
padding: 10px var(--space-md);
background: rgba(8, 14, 24, 0.45);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
}
.source-item__name {
font-family: var(--font-mono);
font-size: 0.78rem;
letter-spacing: 0.06em;
color: var(--accent-gold);
}
.source-item__use {
font-size: 0.85rem;
line-height: 1.5;
color: var(--text-secondary);
}
.source-item__link {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-muted);
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: rgba(159, 179, 204, 0.35);
align-self: flex-start;
margin-top: 2px;
transition: color 0.2s var(--ease-out);
}
.source-item__link:hover,
.source-item__link:focus-visible {
color: var(--accent-brass);
text-decoration-color: var(--accent-brass);
}
.transparency-foot {
text-align: center;
max-width: 52ch;
margin: 0 auto;
opacity: 0.85;
}
@media (max-width: 480px) {
.transparency-cta__illu { width: min(240px, 78%); }
.transparency-statement {
padding-left: var(--space-sm);
}
}
.mode-info-modal { max-width: 680px; }
.mode-info-cta { margin-bottom: var(--space-md); }
.mode-info__emblem {
width: 96px;
height: 96px;
object-fit: contain;
margin-bottom: var(--space-sm);
filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}
.mode-info__chips {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
margin-top: var(--space-xs);
}
.mode-info__chip {
padding: 4px 10px;
background: rgba(8, 14, 24, 0.45);
border: 1px solid var(--border-subtle);
border-radius: 999px;
font-family: var(--font-mono);
font-size: 0.66rem;
letter-spacing: 0.08em;
color: var(--text-secondary);
}
.mode-info__body p {
font-size: 0.9rem;
line-height: 1.7;
color: var(--text-secondary);
margin: 0 0 var(--space-md);
}
.mode-info__body p:last-child { margin-bottom: 0; }
.mode-info__subhead {
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--accent-brass);
margin: var(--space-xl) 0 var(--space-sm);
}
.mode-info__role {
padding: var(--space-sm) var(--space-md);
margin-bottom: var(--space-sm);
background: rgba(8, 14, 24, 0.45);
border: 1px solid var(--border-subtle);
border-left: 2px solid var(--accent-brass);
border-radius: var(--radius-md);
}
.mode-info__role:last-child { margin-bottom: 0; }
.mode-info__role-name {
display: block;
font-family: var(--font-display);
font-size: 0.88rem;
letter-spacing: 0.02em;
color: var(--accent-gold);
margin-bottom: 4px;
}
.mode-info__role-text {
margin: 0;
font-size: 0.85rem;
line-height: 1.6;
color: var(--text-secondary);
}
.mode-info__rules ul {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 6px;
}
.mode-info__rules li {
position: relative;
padding-left: 18px;
font-size: 0.85rem;
line-height: 1.55;
color: var(--text-secondary);
}
.mode-info__rules li::before {
content: '';
position: absolute;
left: 4px;
top: 0.6em;
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--accent-brass);
}
.mode-info__roles[hidden],
.mode-info__rules[hidden] { display: none; }
.mode-info__nav {
display: flex;
justify-content: space-between;
align-items: stretch;
gap: var(--space-sm);
margin: var(--space-md) 0 var(--space-sm);
}
.mode-info__nav[hidden] { display: none; }
.mode-info__nav-btn {
display: flex;
align-items: center;
gap: 10px;
flex: 1 1 0;
min-width: 0;
justify-content: flex-start;
text-align: left;
padding: 8px 10px;
color: var(--accent-brass);
}
.mode-info__nav-btn:hover {
color: var(--accent-gold);
}
.mode-info__nav-btn--next {
justify-content: flex-end;
text-align: right;
}
.mode-info__nav-btn img {
width: 28px;
height: 28px;
flex-shrink: 0;
filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}
.mode-info__nav-label {
font-family: var(--font-mono);
font-size: 0.82rem;
letter-spacing: 0.06em;
color: inherit;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (max-width: 480px) {
.mode-info__emblem { width: 72px; height: 72px; }
.mode-info__nav-label { display: none; }
.mode-info__nav-btn { flex: 0 0 auto; }
}
.portrait-progress {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-top: var(--space-md);
padding: var(--space-sm) var(--space-md);
background: rgba(8, 14, 24, 0.45);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
}
.portrait-progress__spinner {
flex: none;
width: 20px;
height: 20px;
border: 2px solid var(--border-subtle);
border-top-color: var(--accent-brass);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.portrait-progress__text {
font-size: 0.85rem;
color: var(--text-secondary);
}
.portrait-result { margin-top: var(--space-md); }
.portrait-result__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
gap: var(--space-sm);
}
.portrait-result__item {
margin: 0;
text-align: center;
}
.portrait-result__item img {
display: block;
width: 100%;
height: auto;
background: rgba(8, 14, 24, 0.55);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
}
.portrait-result__item figcaption {
margin-top: 4px;
font-size: 0.75rem;
color: var(--text-secondary);
}
.portrait-result__actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-sm);
margin-top: var(--space-md);
}
.gen-overlay {
position: fixed;
inset: 0;
z-index: 2400;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-lg);
background: rgba(4, 8, 14, 0.82);
backdrop-filter: blur(8px);
animation: fadeIn 0.3s var(--ease-out);
}
.gen-card {
position: relative;
width: min(420px, 100%);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
padding: var(--space-xl) var(--space-lg) var(--space-lg);
text-align: center;
background:
linear-gradient(rgba(10, 18, 30, 0.84), rgba(8, 14, 24, 0.9)),
url('../media/ui/bg-blueprint.jpg') center / cover no-repeat;
border: 1px solid var(--border-glow);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg);
overflow: hidden;
animation: gen-pop 0.35s var(--ease-out);
}
.gen-card::before {
content: '';
position: absolute;
inset: 0 0 auto 0;
height: 2px;
background: var(--brass-edge);
pointer-events: none;
}
.gen-card:focus { outline: none; }
@keyframes gen-pop {
from { opacity: 0; transform: translateY(12px) scale(0.98); }
to   { opacity: 1; transform: none; }
}
.gen-spinner {
position: relative;
width: 188px;
aspect-ratio: 1;
margin-bottom: var(--space-xs);
}
.gen-spinner__ring {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 2;
animation: gen-ring-spin 12s linear infinite;
filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3));
}
@keyframes gen-ring-spin {
to { transform: rotate(360deg); }
}
.gen-photo {
--develop: 0;
position: absolute;
inset: 14%;
z-index: 1;
border-radius: 50%;
overflow: hidden;
background: #0b1420;
box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8);
}
.gen-photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
filter:
grayscale(calc(1 - var(--develop)))
sepia(calc(0.75 * (1 - var(--develop))))
blur(calc(5px * (1 - var(--develop))))
brightness(calc(0.7 + 0.3 * var(--develop)))
contrast(calc(0.85 + 0.15 * var(--develop)));
transition: filter 0.6s linear;
}
.gen-photo--bust {
inset: 18%;
border-radius: 0;
overflow: visible;
background: none;
box-shadow: none;
}
.gen-photo--bust img {
object-fit: contain;
filter: none;
animation: gen-bust-breathe 3.2s ease-in-out infinite;
}
@keyframes gen-bust-breathe {
0%, 100% { opacity: 0.82; }
50%      { opacity: 1; }
}
.gen-title {
margin: 0;
font-family: var(--font-display);
font-size: 1.35rem;
font-weight: 400;
letter-spacing: 0.02em;
color: var(--text-primary);
}
.gen-progress { width: 100%; }
.gen-progress__head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: var(--space-sm);
margin-bottom: 6px;
}
.gen-status {
margin: 0;
font-size: 0.92rem;
color: var(--text-primary);
text-align: left;
min-height: 1.4em;
}
.gen-status span { color: var(--text-secondary); }
.gen-timer {
font-size: 0.92rem;
font-variant-numeric: tabular-nums;
color: var(--accent-gold);
}
.gen-bar,
.gen-labels {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 4px;
margin: 0;
padding: 0;
list-style: none;
}
.gen-bar__segment {
position: relative;
height: 6px;
border-radius: 3px;
background: rgba(140, 175, 215, 0.14);
overflow: hidden;
}
.gen-bar__segment--done { background: var(--accent-brass); }
.gen-bar__segment--active { background: rgba(212, 165, 63, 0.22); }
.gen-bar__segment--active::after {
content: '';
position: absolute;
inset: 0;
width: 45%;
background: linear-gradient(90deg, transparent, rgba(240, 195, 104, 0.85), transparent);
animation: gen-shimmer 1.6s ease-in-out infinite;
}
@keyframes gen-shimmer {
from { transform: translateX(-110%); }
to   { transform: translateX(240%); }
}
.gen-labels {
margin-top: 6px;
font-size: 0.74rem;
line-height: 1.25;
color: var(--text-secondary);
}
.gen-labels li { text-align: left; }
.gen-labels li:nth-child(2) { text-align: center; }
.gen-labels li:nth-child(3) { text-align: right; }
.gen-labels .is-active { color: var(--accent-gold); }
.gen-labels .is-done { color: var(--text-primary); }
.gen-expect {
margin: 0;
font-size: 0.85rem;
color: var(--text-secondary);
}
.gen-expect--late { color: var(--accent-gold); }
.gen-note {
margin: 0;
padding: var(--space-sm) var(--space-md);
font-size: 0.85rem;
line-height: 1.45;
color: var(--text-secondary);
background: rgba(7, 13, 23, 0.45);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
}
.gen-later {
position: relative;
display: block;
width: min(300px, 100%);
margin: 0;
padding: 0;
border: none;
background: transparent;
font: inherit;
line-height: 0;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: transform 0.15s var(--ease-out), filter 0.15s var(--ease-out);
}
.gen-later img {
display: block;
width: 100%;
height: auto;
}
.gen-later span {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 0.15em;
font-family: var(--font-main);
font-weight: 500;
font-size: 0.95rem;
line-height: 1;
letter-spacing: 0.04em;
color: #f3dfae;
text-shadow:
0 -1px 1px rgba(0, 0, 0, 0.85),
0 1px 0 rgba(255, 241, 199, 0.5);
}
.gen-later:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.12); }
.gen-later:active:not(:disabled) { transform: translateY(0); filter: brightness(0.95); }
.gen-later:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 3px;
border-radius: var(--radius-sm);
}
.gen-later:disabled { cursor: default; filter: grayscale(0.4) brightness(0.8); }
@media (prefers-reduced-motion: reduce) {
.gen-overlay,
.gen-card,
.gen-spinner__ring,
.gen-photo--bust img,
.gen-bar__segment--active::after { animation: none; }
}
.crop-modal { max-width: 520px; }
.crop-stage {
position: relative;
margin: var(--space-md) auto;
max-width: 100%;
background: rgba(4, 8, 14, 0.6);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
overflow: hidden;
touch-action: none;
user-select: none;
}
.crop-stage img {
display: block;
width: 100%;
height: auto;
pointer-events: none;
-webkit-user-drag: none;
}
.crop-frame {
position: absolute;
box-sizing: border-box;
border: 2px solid var(--accent-gold);
border-radius: 2px;
box-shadow: 0 0 0 9999px rgba(4, 8, 14, 0.66);
cursor: move;
}
.crop-frame::before,
.crop-frame::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
opacity: 0.35;
}
.crop-frame::before {
background:
linear-gradient(to right, transparent 33.33%, var(--accent-gold) 33.33%, var(--accent-gold) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
linear-gradient(to right, transparent 66.66%, var(--accent-gold) 66.66%, var(--accent-gold) calc(66.66% + 1px), transparent calc(66.66% + 1px));
}
.crop-frame::after {
background:
linear-gradient(to bottom, transparent 33.33%, var(--accent-gold) 33.33%, var(--accent-gold) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
linear-gradient(to bottom, transparent 66.66%, var(--accent-gold) 66.66%, var(--accent-gold) calc(66.66% + 1px), transparent calc(66.66% + 1px));
}
.crop-frame__handle {
position: absolute;
width: 22px;
height: 22px;
background: var(--accent-gold);
border: 2px solid rgba(4, 8, 14, 0.8);
border-radius: 50%;
z-index: 1;
}
.crop-frame__handle[data-handle="nw"] { top: -11px;    left: -11px;   cursor: nwse-resize; }
.crop-frame__handle[data-handle="ne"] { top: -11px;    right: -11px;  cursor: nesw-resize; }
.crop-frame__handle[data-handle="sw"] { bottom: -11px; left: -11px;   cursor: nesw-resize; }
.crop-frame__handle[data-handle="se"] { bottom: -11px; right: -11px;  cursor: nwse-resize; }
.crop-zoom {
display: flex;
align-items: center;
gap: var(--space-sm);
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--text-muted);
}
.crop-zoom input {
flex: 1;
accent-color: var(--accent-brass);
}
.medal-summary {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 4px var(--space-md);
align-items: center;
}
.medal-summary__count {
font-family: var(--font-display);
font-size: 1.6rem;
line-height: 1;
color: var(--accent-gold);
font-variant-numeric: tabular-nums;
}
.medal-summary__count small { font-size: 0.9rem; color: var(--text-muted); }
.medal-summary__xp {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-secondary);
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.medal-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.medal-filter button {
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 4px 10px;
border-radius: 999px;
border: 1px solid var(--border-subtle);
background: none;
color: var(--text-secondary);
cursor: pointer;
}
.medal-filter button[aria-pressed="true"] {
border-color: var(--accent-brass);
color: var(--accent-brass);
background: rgba(212, 165, 63, 0.08);
}
.medal-filter button:focus-visible,
.medal-tile:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
}
.medal-detail {
display: grid;
grid-template-columns: 96px minmax(0, 1fr);
gap: var(--space-md);
align-items: center;
padding: var(--space-md);
background: rgba(7, 13, 23, 0.45);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
}
.medal-detail[hidden] { display: none; }
.medal-detail__art .medal-art { width: 96px; height: 120px; display: block; }
.medal-detail__art.is-locked .medal-art { filter: grayscale(1) brightness(0.6); }
.medal-detail__body { display: grid; gap: 6px; min-width: 0; }
.medal-detail__name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.medal-detail__cond { font-size: 0.88rem; color: var(--text-secondary); }
.medal-detail__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.medal-detail__status { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.medal-detail .rank-progress-bar { max-width: 260px; }
.medal-chip {
font-family: var(--font-mono);
font-size: 0.66rem;
letter-spacing: 0.06em;
padding: 2px 8px;
border-radius: 999px;
border: 1px solid var(--border-subtle);
color: var(--text-secondary);
white-space: nowrap;
}
.medal-chip--bronze { border-color: #b77a42; color: #d9a26b; }
.medal-chip--silver { border-color: #9aa6b3; color: #d3dbe4; }
.medal-chip--gold { border-color: var(--accent-gold); color: var(--accent-gold); }
.medal-group { display: grid; gap: var(--space-sm); }
.medal-group + .medal-group { margin-top: var(--space-lg); }
.medal-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); }
.medal-group__count { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted); }
.medal-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
gap: var(--space-md) var(--space-sm);
}
.medal-tile {
position: relative;
display: grid;
justify-items: center;
align-content: start;
gap: 4px;
padding: 6px 2px 8px;
border: 1px solid transparent;
border-radius: var(--radius-md);
background: none;
color: var(--text-primary);
cursor: pointer;
transition: transform 0.15s var(--ease-out), background 0.2s var(--ease-out);
}
.medal-tile:hover { transform: translateY(-2px); background: rgba(140, 175, 215, 0.05); }
.medal-tile[aria-current="true"] { border-color: var(--border-glow); background: rgba(212, 165, 63, 0.06); }
.medal-tile .medal-art { width: 56px; height: 70px; display: block; }
.medal-tile__name {
font-size: 0.68rem;
line-height: 1.2;
text-align: center;
color: var(--text-secondary);
overflow-wrap: anywhere;
}
.medal-tile.is-locked .medal-art { filter: grayscale(1) brightness(0.55); opacity: 0.55; }
.medal-tile.is-locked .medal-tile__name { color: var(--text-muted); }
.medal-tile.is-soon .medal-art { opacity: 0.3; }
.medal-tile__pips { display: flex; gap: 3px; height: 6px; }
.medal-tile__pips i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--text-muted); }
.medal-tile__pips i.on-bronze { background: #c98a4f; border-color: #c98a4f; }
.medal-tile__pips i.on-silver { background: #cfd7e0; border-color: #cfd7e0; }
.medal-tile__pips i.on-gold { background: var(--accent-gold); border-color: var(--accent-gold); }
@keyframes medalAward {
0% { transform: scale(0.4) rotate(-12deg); filter: brightness(2); }
60% { transform: scale(1.15) rotate(3deg); filter: brightness(1.4) drop-shadow(0 0 10px var(--accent-gold)); }
100% { transform: scale(1); filter: none; }
}
.medal-tile.is-awarded .medal-art { animation: medalAward 1.1s var(--ease-spring); }
@media (prefers-reduced-motion: reduce) {
.medal-tile,
.medal-tile.is-awarded .medal-art { transition: none; animation: none; }
}
@media (max-width: 480px) {
.medal-summary { grid-template-columns: auto minmax(0, 1fr); }
.medal-summary__xp { grid-column: 1 / -1; }
.medal-detail { grid-template-columns: 72px minmax(0, 1fr); }
.medal-detail__art .medal-art { width: 72px; height: 90px; }
}
.archive-modes {
display: flex;
flex-wrap: wrap;
gap: var(--space-xs);
margin-bottom: var(--space-md);
}
.archive-modes:empty { display: none; }
.archive-mode {
padding: 3px 10px;
border: 1px solid var(--border-subtle);
border-radius: 999px;
font-size: 0.74rem;
color: var(--text-secondary);
}
.archive-mode strong { color: var(--text-primary); font-weight: 600; }
.archive-list {
display: flex;
flex-direction: column;
gap: 2px;
margin: 0;
padding: 0;
list-style: none;
}
.archive-row {
display: grid;
grid-template-columns: 8ch minmax(0, 1fr) auto auto;
align-items: center;
gap: var(--space-sm);
padding: 6px var(--space-xs);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
font-size: 0.84rem;
}
.archive-row__date,
.archive-row__stats {
font-family: var(--font-mono);
font-size: 0.74rem;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.archive-row__main {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-primary);
}
.archive-row__result { font-weight: 600; white-space: nowrap; }
.archive-row__result.is-won { color: var(--accent-gold); }
.archive-row__result.is-lost { color: var(--text-secondary); }
.archive-row__result.is-draw { color: var(--text-muted); }
.archive-teaser {
display: grid;
gap: var(--space-md);
justify-items: start;
}
.archive-teaser[hidden] { display: none; }
.archive-list--blur {
width: 100%;
filter: blur(3px);
opacity: 0.7;
user-select: none;
}
.archive-teaser__text {
margin: 0;
color: var(--text-secondary);
font-size: 0.9rem;
}
@media (max-width: 520px) {
.archive-row { grid-template-columns: minmax(0, 1fr) auto; }
.archive-row__date,
.archive-row__stats { grid-column: auto; }
}
.trial-offer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-sm) var(--space-md);
padding: var(--space-sm) var(--space-md);
border: 1px solid rgba(212, 165, 63, 0.35);
border-radius: var(--radius-md);
background: rgba(212, 165, 63, 0.06);
}
.trial-offer[hidden] { display: none; }
.trial-offer__text {
flex: 1 1 260px;
margin: 0;
font-size: 0.86rem;
color: var(--text-secondary);
}
.trial-offer__text strong { color: var(--accent-gold); }

/* ── css/password-strength.css ── */
.btn--sm {
padding: 6px 14px;
font-size: 0.8rem;
}
.pw-strength {
margin-top: 6px;
}
.pw-strength-bar {
height: 4px;
background: var(--surface-elevated);
border-radius: 2px;
overflow: hidden;
margin-bottom: 8px;
}
.pw-strength-fill {
height: 100%;
width: 0%;
border-radius: 2px;
transition: width 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.pw-strength-fill[data-level="0"] { width: 0%; }
.pw-strength-fill[data-level="1"] { width: 25%; background: var(--accent-red); }
.pw-strength-fill[data-level="2"] { width: 50%; background: var(--accent-orange); }
.pw-strength-fill[data-level="3"] { width: 75%; background: #b8cc00; }
.pw-strength-fill[data-level="4"] { width: 100%; background: var(--accent-green); }
.pw-strength-label {
font-size: 0.75rem;
font-weight: 600;
margin-bottom: 6px;
min-height: 1em;
transition: color 0.3s;
}
.pw-strength-label[data-level="1"] { color: var(--accent-red); }
.pw-strength-label[data-level="2"] { color: var(--accent-orange); }
.pw-strength-label[data-level="3"] { color: #b8cc00; }
.pw-strength-label[data-level="4"] { color: var(--accent-green); }
.pw-criteria {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2px 12px;
}
.pw-criteria span {
font-size: 0.7rem;
color: var(--text-muted);
transition: color 0.3s;
}
.pw-criteria span.met {
color: var(--accent-green);
}

/* ── css/lobby.css ── */
#screen-lobby {
justify-content: flex-start;
gap: var(--space-2xl);
padding: var(--space-2xl) var(--space-xl) var(--space-xl);
text-align: center;
position: relative;
isolation: isolate;
overflow: hidden;
--roster-head-room: 16px;
}
#screen-lobby::before,
#screen-lobby::after {
content: '';
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
}
#screen-lobby::before {
background-image: url('../media/backgrounds/lobby-bg.jpg');
background-size: cover;
background-position: center;
animation: lobbyKenBurns 36s ease-in-out infinite alternate;
transform-origin: 52% 58%;
will-change: transform;
}
#screen-lobby::after {
background:
radial-gradient(ellipse at 50% 45%, rgba(7, 13, 23, 0), rgba(7, 13, 23, 0.5) 80%),
linear-gradient(to bottom, rgba(7, 13, 23, 0.3), rgba(7, 13, 23, 0.12) 40%, rgba(7, 13, 23, 0.45));
}
@keyframes lobbyKenBurns {
from { transform: scale(1.04) translate(-1.8%, -1.2%); }
to   { transform: scale(1.22) translate(2.2%, 1.6%); }
}
.lobby-header {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-xs);
animation: plateDrop 0.5s var(--ease-out) backwards;
}
.lobby-title {
margin: 0;
padding: var(--space-sm) var(--space-2xl);
border-style: solid;
border-width: 22px 34px;
border-image-source: url('../media/ui/battle/plaque.png');
border-image-slice: 28 44 fill;
border-image-repeat: stretch;
font-family: var(--font-display);
font-size: clamp(1.1rem, 2.6vw, 1.75rem);
font-weight: 400;
letter-spacing: 0.22em;
text-indent: 0.22em;
text-transform: uppercase;
color: var(--accent-gold);
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}
.lobby-body {
display: grid;
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
align-items: start;
gap: var(--space-xl);
width: 100%;
max-width: 940px;
animation: plateDrop 0.5s var(--ease-out) 0.08s backwards;
}
.code-card {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
margin-top: calc(var(--roster-head-room) + 22px);
padding: var(--space-2xl) var(--space-md) var(--space-lg);
background:
linear-gradient(rgba(14, 24, 38, 0.86), rgba(10, 18, 30, 0.92)),
url('../media/ui/bg-blueprint.jpg') center / cover no-repeat;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.code-card__label {
display: inline-flex;
align-items: center;
justify-content: center;
margin: -70px 0 0;
min-height: 44px;
padding: 0 var(--space-xl);
border-style: solid;
border-width: 16px 26px;
border-image-source: url('../media/ui/battle/plaque-xs.png');
border-image-slice: 24 40 fill;
border-image-repeat: stretch;
font-family: var(--font-display);
font-size: 0.95rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--accent-gold);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
white-space: nowrap;
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.code-card__row {
display: flex;
align-items: stretch;
gap: var(--space-sm);
width: 100%;
}
.code-card__value {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-md) var(--space-sm);
background: rgba(7, 13, 23, 0.75);
border: 1px solid rgba(212, 165, 63, 0.45);
border-radius: var(--radius-md);
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
font-family: var(--font-mono);
font-size: clamp(1.3rem, 2.4vw, 1.9rem);
font-weight: 700;
letter-spacing: 0.24em;
text-indent: 0.24em;
color: var(--accent-gold);
text-shadow: 0 0 18px var(--accent-gold-glow), 0 1px 3px rgba(0, 0, 0, 0.9);
white-space: nowrap;
min-width: 0;
cursor: pointer;
transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.code-card__value:hover { border-color: rgba(212, 165, 63, 0.8); }
.code-card__value.is-copied {
border-color: rgba(111, 224, 140, 0.85);
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 14px rgba(111, 224, 140, 0.45);
}
.code-card__done {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4em;
min-width: 6.6em;
font-family: var(--font-display);
font-weight: 400;
font-size: 0.6em;
letter-spacing: 0.1em;
text-indent: 0;
color: #8fe0a4;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.code-card__tools {
flex: none;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
}
.code-card__divider {
width: 6px;
height: 44px;
background: url('../media/ui/frame/divider-line.png') center / 100% 100% no-repeat;
transform: rotate(90deg);
margin: -19px 0;
opacity: 0.85;
}
.code-card__btn {
flex: none;
width: 44px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
border: none;
background: none;
cursor: pointer;
transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.code-card__btn img {
width: 36px;
height: 36px;
object-fit: contain;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
}
.code-card__btn:hover { filter: brightness(1.2); }
.code-card__btn:active { transform: translateY(1px); }
.code-card__btn.is-copied img {
filter: drop-shadow(0 0 8px rgba(111, 224, 140, 0.9)) brightness(1.2);
}
.code-card__hint {
margin: 0;
font-size: 0.8rem;
line-height: 1.5;
color: var(--text-secondary);
}

/* ── css/mode-picker.css ── */
.lobby-aside {
display: flex;
flex-direction: column;
gap: var(--space-2xl);
min-width: 0;
}
.mode-card {
position: relative;
display: flex;
flex-direction: column;
align-items: stretch;
gap: var(--space-md);
padding: var(--space-2xl) var(--space-md) var(--space-lg);
background:
linear-gradient(rgba(14, 24, 38, 0.86), rgba(10, 18, 30, 0.92)),
url('../media/ui/bg-blueprint.jpg') center / cover no-repeat;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.mode-card.is-open { z-index: 30; }
.mode-card .code-card__label { align-self: center; }
.mode-card__current {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 2px var(--space-md);
padding: 10px var(--space-md);
font: inherit;
text-align: left;
color: var(--text-primary);
background: rgba(27, 44, 67, 0.55);
border: 1px solid var(--brass);
border-radius: var(--radius-md);
box-shadow: inset 0 1px 0 rgba(247, 226, 168, 0.18);
cursor: pointer;
transition: border-color 0.3s var(--ease-out),
background-color 0.3s var(--ease-out);
}
.mode-card__current:hover,
.mode-card__current:focus-visible {
border-color: var(--brass-light);
background-color: rgba(27, 44, 67, 0.8);
outline: none;
}
.mode-card__badge {
grid-row: 1 / span 2;
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
}
.mode-card__badge img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
}
.mode-card__name {
grid-column: 2;
grid-row: 1;
font-family: var(--font-display);
font-size: 1rem;
letter-spacing: 0.04em;
color: var(--accent-gold);
}
.mode-card__sub {
grid-column: 2;
grid-row: 2;
font-size: 0.72rem;
line-height: 1.35;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.mode-card__chevron {
grid-column: 3;
grid-row: 1 / span 2;
justify-self: end;
width: 18px;
height: 18px;
fill: none;
stroke: var(--accent-brass);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
transition: transform 0.3s var(--ease-out);
}
.mode-card__current[aria-expanded="true"] .mode-card__chevron {
transform: rotate(180deg);
}
.mode-card--guest .mode-card__current { cursor: default; }
.mode-card--guest .mode-card__current:hover {
border-color: var(--brass);
background-color: rgba(27, 44, 67, 0.55);
}
.mode-card--guest .mode-card__chevron { display: none; }
.mode-card__currentwrap {
position: relative;
display: flex;
}
.mode-card__currentwrap > .mode-card__current {
flex: 1 1 auto;
min-width: 0;
}
.mode-card__info {
position: absolute;
top: 50%;
right: 6px;
transform: translateY(-50%);
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
background: rgba(14, 24, 38, 0.92);
border: 1px solid var(--brass);
border-radius: 50%;
color: var(--brass-light);
cursor: help;
transition: color 0.2s var(--ease-out),
border-color 0.2s var(--ease-out),
background-color 0.2s var(--ease-out);
}
.mode-card__info[hidden] { display: none; }
.mode-card__info svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
pointer-events: none;
}
.mode-card__info:hover,
.mode-card__info:focus-visible {
color: var(--accent-gold);
border-color: var(--brass-light);
background-color: rgba(27, 44, 67, 0.95);
outline: none;
}
.mode-card__info:focus-visible {
box-shadow: 0 0 0 2px var(--accent-brass);
}
.mode-card__currentwrap .mode-card__current { padding-right: 46px; }
.mode-card__picker {
position: absolute;
z-index: 20;
left: var(--space-md);
width: min(560px, calc(100vw - 2 * var(--space-xl)));
top: calc(100% - var(--space-lg));
display: flex;
flex-direction: column;
gap: var(--space-sm);
max-height: min(560px, 70vh);
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--brass) transparent;
padding: var(--space-md);
background:
linear-gradient(rgba(14, 24, 38, 0.97), rgba(10, 18, 30, 0.99)),
url('../media/ui/bg-blueprint.jpg') center / cover no-repeat;
border: 1px solid var(--brass);
border-radius: var(--radius-md);
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
animation: pickerOpen 0.22s var(--ease-out);
}
.mode-card__picker--up {
top: auto;
bottom: var(--picker-bottom, 100%);
animation-name: pickerOpenUp;
}
@keyframes pickerOpen {
from { opacity: 0; transform: translateY(-6px); }
to   { opacity: 1; transform: none; }
}
@keyframes pickerOpenUp {
from { opacity: 0; transform: translateY(6px); }
to   { opacity: 1; transform: none; }
}
.mode-card__picker[hidden] { display: none; }
.mode-card__pickerhint {
margin: 0;
font-size: 0.72rem;
line-height: 1.4;
color: var(--text-muted);
}
.mode-card__pickerhint[hidden] { display: none; }
.mode-card--inline {
padding: 0;
background: none;
border: none;
box-shadow: none;
flex: 0 1 300px;
min-width: 0;
}
.mode-card--inline .mode-card__current {
height: 100%;
background: rgba(14, 24, 38, 0.82);
}
.mode-card--inline .mode-card__picker { left: 0; }
.battle-modes {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: var(--space-sm);
}
.battle-mode-wrap {
position: relative;
display: block;
min-width: 0;
}
.battle-mode-wrap > .battle-mode {
width: 100%;
}
.battle-mode__info {
position: absolute;
top: 50%;
right: 2px;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
background: none;
border: none;
border-radius: 50%;
color: var(--brass-light);
cursor: help;
opacity: 0.62;
transition: opacity 0.2s var(--ease-out),
color 0.2s var(--ease-out),
background-color 0.2s var(--ease-out);
}
.battle-mode__info svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
pointer-events: none;
}
.battle-mode-wrap:hover .battle-mode__info { opacity: 0.9; }
.battle-mode__info:hover,
.battle-mode__info:focus-visible {
opacity: 1;
color: var(--accent-gold);
background-color: rgba(212, 165, 63, 0.14);
outline: none;
}
.battle-mode__info:focus-visible {
box-shadow: 0 0 0 2px var(--accent-brass);
}
.battle-mode {
position: relative;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
grid-template-rows: auto auto;
align-items: center;
gap: 2px var(--space-sm);
padding: 8px var(--space-lg) 8px 8px;
font: inherit;
text-align: left;
color: var(--text-primary);
background-color: var(--surface-elevated);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
cursor: pointer;
transition: border-color 0.3s var(--ease-out),
background-color 0.3s var(--ease-out),
transform 0.3s var(--ease-out);
}
.battle-mode:hover:not([disabled]),
.battle-mode:focus-visible {
border-color: var(--brass);
background-color: var(--ocean-600);
transform: translateX(3px);
outline: none;
}
.battle-mode[aria-selected="true"] {
background-color: var(--ocean-600);
border-color: var(--brass-light);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(247, 226, 168, 0.18);
}
.battle-mode__badge {
grid-row: 1 / span 2;
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
}
.battle-mode__badge img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}
.battle-mode__name {
font-family: var(--font-display);
font-size: 0.84rem;
letter-spacing: 0.02em;
line-height: 1.2;
}
.battle-mode__sub {
font-size: 0.67rem;
line-height: 1.3;
color: var(--text-secondary);
}
.battle-mode--locked {
cursor: not-allowed;
border-style: dashed;
border-color: rgba(140, 175, 215, 0.22);
background-color: rgba(27, 44, 67, 0.35);
}
.battle-mode--locked .battle-mode__name { color: var(--text-secondary); }
.battle-mode--locked .battle-mode__sub { color: var(--text-muted); }
.battle-mode--locked .battle-mode__badge img {
opacity: 0.62;
filter: saturate(0.7) brightness(0.85);
}
.battle-mode__lock {
position: absolute;
top: 50%;
right: 38px;
transform: translateY(-50%);
width: 16px;
height: 16px;
fill: none;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
opacity: 0.75;
pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
.battle-mode { transition: none; }
.battle-mode:hover:not([disabled]),
.battle-mode:focus-visible { transform: none; }
.mode-card__picker { animation: none; }
.mode-card__chevron { transition: none; }
}

/* ── css/lobby-roster.css ── */
.roster {
display: flex;
flex-direction: column;
gap: var(--space-lg);
min-width: 0;
position: relative;
padding-top: var(--roster-head-room);
}
.roster-team {
display: flex;
flex-direction: column;
gap: var(--space-lg);
padding: var(--space-md) var(--space-md) var(--space-md);
border: 1px solid rgba(140, 175, 215, 0.16);
border-radius: var(--radius-md);
background: rgba(10, 17, 28, 0.35);
}
.roster-team__head {
display: flex;
align-items: baseline;
gap: var(--space-sm);
flex-wrap: wrap;
padding: 0 var(--space-xs);
margin-bottom: calc(var(--roster-head-room) - var(--space-sm));
}
.roster-team__name {
font-family: var(--font-display);
font-size: clamp(0.95rem, 1.5vw, 1.15rem);
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--brass-light);
}
.roster-team__hint {
font-size: 0.8rem;
color: var(--text-secondary);
}
.roster-team__count {
margin-left: auto;
font-size: 0.8rem;
font-variant-numeric: tabular-nums;
color: var(--text-muted);
}
.roster-vs {
display: flex;
align-items: center;
gap: var(--space-md);
color: var(--text-muted);
font-size: 0.75rem;
letter-spacing: 0.18em;
text-transform: uppercase;
}
.roster-vs::before,
.roster-vs::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(212, 165, 63, 0.45), transparent);
}
.roster--teams { gap: var(--space-md); padding-top: 0; }
.roster-row {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: var(--space-md);
padding: var(--space-md);
min-height: 88px;
background-color: transparent;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
text-align: left;
position: relative;
isolation: isolate;
transition: border-color 0.3s var(--ease-out),
box-shadow 0.3s var(--ease-out),
transform 0.3s var(--ease-out);
animation: rowIn 0.4s var(--ease-out) backwards;
}
.roster-row:hover {
border-color: rgba(212, 165, 63, 0.55);
transform: translateX(3px) translateY(-2px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}
.roster-row--ready {
border-color: var(--brass-light);
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(247, 226, 168, 0.18);
}
.roster-row--ready:hover { border-color: var(--brass-shine); }
.roster-row--empty {
border-style: dashed;
border-color: rgba(140, 175, 215, 0.22);
}
.roster-row--empty:hover { border-color: rgba(140, 175, 215, 0.4); }
.roster-row--optional {
opacity: 0.62;
min-height: 66px;
}
.roster-row--optional:hover { opacity: 0.85; }
.roster-row__bg {
position: absolute;
inset: 0;
z-index: 0;
border-radius: inherit;
overflow: hidden;
pointer-events: none;
}
.roster-row__bg::before {
content: '';
position: absolute;
inset: 0;
background: var(--ocean-900) url('../media/ui/lobby/row-bg.jpg') center 72% / 100% auto no-repeat;
transform: scale(1.02);
transition: transform 0.7s var(--ease-out);
}
.roster-row:hover .roster-row__bg::before { transform: scale(1.1); }
.roster-row__bg::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(100deg,
rgba(8, 14, 24, 0.7) 0%,
rgba(8, 14, 24, 0.58) 55%,
rgba(10, 18, 30, 0.46) 100%);
transition: background 0.3s var(--ease-out);
}
.roster-row:hover .roster-row__bg::after {
background: linear-gradient(100deg,
rgba(8, 14, 24, 0.4) 0%,
rgba(8, 14, 24, 0.22) 55%,
rgba(10, 18, 30, 0.06) 100%);
}
.roster-row--empty .roster-row__bg::before { display: none; }
.roster-row--empty .roster-row__bg::after { background: rgba(10, 17, 28, 0.72); }
.roster-row--empty:hover .roster-row__bg::after { background: rgba(10, 17, 28, 0.8); }
.roster-avatar {
position: relative;
width: 86px;
align-self: stretch;
flex: none;
z-index: 1;
}
.roster-avatar img {
position: absolute;
left: calc(var(--space-md) * -1);
bottom: calc(var(--space-md) * -1);
height: 100px;
width: auto;
object-fit: contain;
object-position: bottom left;
transform: scaleX(-1);
border-bottom-right-radius: var(--radius-md);
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.75));
transition: filter 0.3s var(--ease-out);
pointer-events: none;
}
.roster-avatar img.roster-avatar__portrait--catalog {
transform: none;
border-bottom-right-radius: 0;
border-bottom-left-radius: var(--radius-md);
}
.roster-row:hover .roster-avatar img {
filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.8));
}
.roster-row--empty .roster-avatar img {
filter: grayscale(1) brightness(0.55) contrast(1.4)
drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
opacity: 0.95;
}
.roster-row--empty:hover .roster-avatar img {
filter: grayscale(1) brightness(0.78) contrast(1.25)
drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85));
opacity: 1;
}
.roster-name {
min-width: 0;
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: var(--space-sm);
font-family: var(--font-display);
font-size: clamp(0.95rem, 1.35vw, 1.1rem);
font-weight: 400;
letter-spacing: 0.02em;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.8);
}
.roster-name__text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.roster-name__you { color: var(--text-muted); font-weight: 400; }
.roster-row--empty .roster-name {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
color: var(--text-muted);
font-style: italic;
white-space: normal;
overflow: visible;
}
.roster-level {
width: 38px;
height: 38px;
flex: none;
object-fit: contain;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75));
}
.roster-pve {
padding: 0;
border: none;
background: none;
font-family: var(--font-main);
font-size: 0.85rem;
font-style: normal;
font-weight: 600;
color: var(--accent-steel);
text-align: left;
cursor: pointer;
border-bottom: 1px solid transparent;
transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.roster-pve:hover,
.roster-pve:focus-visible {
color: var(--accent-gold);
border-bottom-color: var(--accent-gold);
outline: none;
}
.roster-tags {
display: flex;
align-items: center;
gap: var(--space-md);
position: relative;
z-index: 1;
}
.roster-host {
height: 24px;
width: auto;
flex: none;
object-fit: contain;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
cursor: help;
}
.lamp {
position: relative;
width: 38px;
height: 38px;
flex: none;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
cursor: help;
}
.roster-row--ready .lamp {
background-image: url('../media/ui/lobby/lamp-green-on.png');
filter: drop-shadow(0 0 8px rgba(111, 224, 140, 0.8));
}
.roster-row:not(.roster-row--ready):not(.roster-row--empty) .lamp {
background-image: url('../media/ui/lobby/lamp-amber-off.png');
}
.roster-row:not(.roster-row--ready):not(.roster-row--empty) .lamp::after {
content: '';
position: absolute;
inset: 0;
background: url('../media/ui/lobby/lamp-amber-on.png') center / contain no-repeat;
filter: drop-shadow(0 0 6px var(--accent-gold-glow));
animation: lampPulse 2.4s ease-in-out infinite;
}
.lobby-actions {
display: flex;
justify-content: center;
align-items: stretch;
gap: var(--space-md);
width: 100%;
max-width: 940px;
animation: plateDrop 0.5s var(--ease-out) 0.16s backwards;
}
#screen-lobby .btn-plate {
position: relative;
isolation: isolate;
border: none;
width: auto;
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
flex: 1 1 0;
max-width: 300px;
min-height: 62px;
padding: var(--space-sm) var(--space-md);
background: none;
border: none;
cursor: pointer;
font-family: var(--font-display);
font-size: 0.88rem;
letter-spacing: 0.14em;
text-transform: uppercase;
text-align: center;
color: var(--btn-text);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
transition: transform 0.15s var(--ease-out);
}
#screen-lobby .btn-plate::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
border-style: solid;
border-width: 16px 26px;
border-image-source: url('../media/ui/battle/plate-btn.png');
border-image-slice: 26 40 fill;
border-image-repeat: stretch;
filter: var(--btn-tint);
transition: filter 0.2s var(--ease-out);
pointer-events: none;
}
#screen-lobby .btn-plate:hover:not(:disabled)::before { filter: var(--btn-tint) brightness(1.18); }
#screen-lobby .btn-plate:hover:not(:disabled) { filter: none; }
#screen-lobby .btn-plate:active:not(:disabled) { transform: translateY(1px); }
#screen-lobby .btn-plate__label {
display: flex;
flex-direction: column;
gap: 3px;
white-space: nowrap;
}
#screen-lobby .btn-plate__sub {
font-family: var(--font-main);
font-size: 0.6rem;
letter-spacing: 0.06em;
line-height: 1.3;
color: var(--text-secondary);
text-transform: uppercase;
white-space: nowrap;
}
#screen-lobby .btn-plate--steel {
--btn-tint: hue-rotate(178deg) saturate(0.5) brightness(0.82);
--btn-text: var(--accent-gold);
}
#screen-lobby .btn-plate--green {
--btn-tint: hue-rotate(72deg) saturate(0.85) brightness(0.92);
--btn-text: #dff6e2;
}
#screen-lobby .btn-plate--green.is-ready {
--btn-tint: hue-rotate(0deg);
--btn-text: #ffe6a8;
}
#screen-lobby .btn-plate--brass {
--btn-tint: hue-rotate(0deg);
--btn-text: #ffe6a8;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}
#screen-lobby .btn-plate--brass:not(:disabled) {
--btn-tint: hue-rotate(-32deg) saturate(1.9) brightness(0.95);
--btn-text: #ffdfd2;
}
#screen-lobby .btn-plate:disabled {
--btn-tint: grayscale(0.85) brightness(0.55);
--btn-text: #9aa5b1;
cursor: not-allowed;
text-shadow: none;
}
#screen-lobby .btn-plate:disabled .btn-plate__sub { color: #7d8794; }
#screen-lobby .btn-plate:not(:disabled) .btn-plate__sub { display: none; }
@keyframes plateDrop {
from { opacity: 0; transform: translateY(-12px); }
to   { opacity: 1; transform: none; }
}
@keyframes rowIn {
from { opacity: 0; transform: translateX(-10px); }
to   { opacity: 1; transform: none; }
}
@keyframes lampPulse {
0%, 100% { opacity: 1; }
50%      { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
#screen-lobby::before { animation: none; }
.lobby-header,
.lobby-body,
.lobby-actions,
.roster-row { animation: none; }
.roster-row:not(.roster-row--ready):not(.roster-row--empty) .lamp::after {
animation: none;
opacity: 1;
}
.roster-row:hover { transform: none; }
}
@media (max-width: 900px) {
.lobby-body { grid-template-columns: 1fr; gap: var(--space-lg); }
.code-card { max-width: 420px; margin-left: auto; margin-right: auto; }
.lobby-actions { flex-wrap: wrap; }
#screen-lobby .btn-plate { flex: 1 1 260px; max-width: none; }
}
@media (max-width: 560px) {
#screen-lobby { padding: var(--space-lg) var(--space-sm) var(--space-md); }
.roster-row { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--space-sm); }
.roster-tags { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
.lobby-actions { flex-direction: column; }
}

/* ── css/opponent.css ── */
#screen-opponent {
justify-content: center;
gap: var(--space-lg);
position: relative;
overflow: hidden;
isolation: isolate;
background-image:
linear-gradient(to bottom,
rgba(7, 13, 23, 0.86) 0%,
rgba(7, 13, 23, 0.8) 45%,
rgba(7, 13, 23, 0.94) 100%);
}
#screen-opponent::before {
content: '';
position: absolute;
inset: -60px;
z-index: -1;
background-image: url('../media/backgrounds/opponent-bg.jpg');
background-size: cover;
background-position: center 30%;
background-repeat: no-repeat;
animation: kenBurns 32s ease-in-out infinite alternate;
}

/* ── css/placement-screen.css ── */
#screen-placement {
justify-content: center;
gap: var(--space-md);
position: relative;
height: 100vh;
height: 100dvh;
min-height: 0;
padding: var(--space-md) var(--space-lg);
overflow: hidden;
isolation: isolate;
background-image:
linear-gradient(to bottom,
rgba(7, 13, 23, 0.82) 0%,
rgba(7, 13, 23, 0.7) 45%,
rgba(7, 13, 23, 0.9) 100%);
}
#screen-placement::before {
content: '';
position: absolute;
inset: -60px;
z-index: -1;
background-image: url('../media/backgrounds/placement-bg.jpg');
background-size: cover;
background-position: center 40%;
background-repeat: no-repeat;
animation: kenBurnsSlow 50s ease-in-out infinite alternate;
}
@keyframes kenBurns {
0%   { transform: scale(1.04) translate(1.5%, 1.2%); }
100% { transform: scale(1.26) translate(-3.5%, -3%); }
}
@keyframes kenBurnsSlow {
0%   { transform: scale(1.03) translate(0.7%, 0.6%); }
100% { transform: scale(1.13) translate(-1.6%, -1.4%); }
}
.placement-toolbar {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: var(--space-lg);
width: 100%;
max-width: 1200px;
flex-shrink: 0;
}
.placement-header {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
}
.placement-timer__label {
font-family: var(--font-main);
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-secondary);
}
.placement-captain {
display: flex;
align-items: center;
gap: var(--space-md);
justify-self: start;
min-width: 0;
}
.placement-captain__portrait {
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 64px;
height: 64px;
border-radius: 50%;
overflow: hidden;
background: linear-gradient(150deg, #4a4234, #2a2620);
border: 2px solid var(--brass);
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55),
inset 0 1px 0 rgba(247, 226, 168, 0.25);
background-size: cover;
background-position: center 28%;
}
.placement-captain__initial {
font-family: var(--font-display);
font-size: 1.4rem;
color: var(--brass-light);
}
.placement-captain__portrait--has-image .placement-captain__initial {
display: none;
}
.placement-captain__text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
text-align: left;
}
.placement-captain__label {
font-size: 0.65rem;
font-weight: 600;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--brass-light);
}
.placement-captain__name {
font-family: var(--font-display);
font-size: 1.05rem;
color: var(--text-primary);
}
.placement-captain__quote {
font-size: 0.8rem;
font-style: italic;
color: var(--text-secondary);
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.placement-signal {
display: flex;
align-items: center;
gap: var(--space-sm);
justify-self: end;
text-align: right;
}
.placement-signal__icon {
width: 44px;
height: 44px;
object-fit: contain;
flex-shrink: 0;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}
.placement-signal__text {
display: flex;
flex-direction: column;
gap: 2px;
}
.placement-signal__title {
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--brass-light);
}
.placement-signal__status {
font-size: 0.8rem;
color: var(--text-secondary);
}
@media (max-width: 920px) {
.placement-toolbar {
grid-template-columns: 1fr;
justify-items: center;
text-align: center;
}
.placement-captain,
.placement-signal {
justify-self: center;
text-align: center;
}
.placement-captain__text {
text-align: center;
}
}
.placement-legend {
display: flex;
gap: var(--space-lg);
justify-content: center;
font-size: 0.75rem;
color: var(--text-secondary);
}
.placement-legend__item {
display: flex;
align-items: center;
gap: var(--space-xs);
}
.placement-legend__swatch {
width: 14px;
height: 14px;
border-radius: 3px;
}
.placement-legend__swatch--valid {
background: rgba(0, 230, 118, 0.25);
border: 1px solid rgba(0, 230, 118, 0.6);
}
.placement-legend__swatch--invalid {
background: rgba(255, 61, 90, 0.25);
border: 1px solid rgba(255, 61, 90, 0.6);
}
.placement-actions {
display: flex;
gap: var(--space-sm);
align-items: center;
}
.placement-actions__icons {
display: flex;
align-items: center;
gap: 6px;
}
.btn__icon {
width: 1.1em;
height: 1.1em;
object-fit: contain;
vertical-align: -0.15em;
margin-right: 0.35em;
}
.btn__icon--solo {
width: 60%;
height: 60%;
margin-right: 0;
}
.plate-btn {
position: relative;
display: block;
border: none;
background: transparent;
margin: 0;
padding: 0;
font: inherit;
line-height: 0;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: transform 0.15s var(--ease-out), filter 0.15s var(--ease-out);
}
.plate-btn img { display: block; width: 100%; height: auto; }
.plate-btn span {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 0.15em;
font-family: var(--font-main);
font-weight: 400;
font-size: clamp(0.8rem, 1.6vw, 0.95rem);
line-height: 1;
letter-spacing: 0.04em;
color: #f3dfae;
text-shadow:
0 -1px 1px rgba(0, 0, 0, 0.85),
0 1px 0 rgba(255, 241, 199, 0.5);
}
.plate-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.12); }
.plate-btn:active:not(:disabled) { transform: translateY(0); filter: brightness(0.95); }
.plate-btn:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 3px;
border-radius: var(--radius-sm);
}
.plate-btn:disabled { cursor: not-allowed; filter: grayscale(0.6) brightness(0.65); }
.placement-confirm {
flex: 0 0 auto;
align-self: center;
margin-left: 8px;
width: 170px;
padding: 0 10px 4px;
border-style: solid;
border-width: 13px 26px;
border-image-source: url('../media/ui/battle/plate-btn.png');
border-image-slice: 26 40 fill;
border-image-repeat: stretch;
background: none;
cursor: pointer;
font-family: var(--font-main);
font-size: 0.85rem;
letter-spacing: 0.04em;
color: #f3dfae;
text-shadow:
0 -1px 1px rgba(0, 0, 0, 0.85),
0 1px 0 rgba(255, 241, 199, 0.5);
transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.placement-confirm:hover:not(:disabled) { filter: brightness(1.15); transform: translateY(-2px); }
.placement-confirm:active:not(:disabled) { transform: translateY(0); filter: brightness(0.95); }
.placement-confirm:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
.placement-confirm:disabled {
cursor: not-allowed;
filter: grayscale(0.7) brightness(0.6);
color: var(--text-muted);
text-shadow: none;
}
.plate-btn--icon {
flex: 0 0 auto;
align-self: center;
width: 46px;
aspect-ratio: 1;
}
.plate-btn--icon img { width: 100%; height: 100%; }

/* ── css/battle.css ── */
#screen-battle {
justify-content: flex-start;
padding-top: 34px;
gap: var(--space-lg);
background:
linear-gradient(to bottom, rgba(7,13,23,.45), rgba(7,13,23,.25) 45%, rgba(7,13,23,.6)),
url('../media/backgrounds/battle-bg.jpg') center bottom / cover no-repeat fixed;
}
#screen-battle, #screen-battle *, #screen-battle *::before, #screen-battle *::after,
.battle-confirm-veil, .battle-confirm-veil * {
box-sizing: border-box;
}
.battle-panel {
position: relative;
border-style: solid;
border-width: 26px;
border-image-source: url('../media/ui/battle/panel-corner.png');
border-image-slice: 58;
border-image-repeat: stretch;
filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .6));
}
.battle-panel__inner {
position: relative;
margin: calc(var(--space-md) * -1) calc(var(--space-sm) * -1);
padding: var(--space-md) var(--space-sm);
}
.battle-plaque {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
min-height: 38px;
padding: 0 var(--space-lg);
border-style: solid;
border-width: 16px 26px;
border-image-source: url('../media/ui/battle/plaque-xs.png');
border-image-slice: 24 40 fill;
border-image-repeat: stretch;
font-family: var(--font-display);
font-size: .78rem;
letter-spacing: .16em;
text-transform: uppercase;
color: var(--accent-gold);
text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
white-space: nowrap;
}
.battle-header {
border-width: 0;
border-image-source: none;
padding: 44px;
text-align: center;
width: 100%;
max-width: 1180px;
margin: 0 auto;
}
.battle-header::after {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
z-index: 3;
border-style: solid;
border-width: 44px;
border-image-source: url('../media/ui/battle/frame-plain.png');
border-image-slice: 170;
border-image-repeat: stretch;
}
.battle-header__title {
position: absolute;
top: 6px; left: 50%;
transform: translate(-50%, -50%);
z-index: 4;
filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6));
}
.battle-players {
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
gap: var(--space-lg);
width: 100%;
padding: var(--space-xs) 0;
}
.battle-opponents {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-xs);
width: 100%;
padding: var(--space-xs) 0 0;
}
.battle-opponents[hidden],
.battle-roles[hidden],
.battle-cargo[hidden],
.placement-legend__item[hidden] { display: none; }
.opponent-chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 12px;
border: 1px solid var(--border-subtle);
border-radius: 999px;
background: rgba(7, 13, 23, .55);
color: var(--text-secondary);
font-size: .82rem;
cursor: pointer;
transition: border-color .18s, color .18s, background .18s;
}
.opponent-chip:hover:not([disabled]) {
border-color: var(--accent-steel);
color: var(--ocean-100);
}
.opponent-chip--active {
border-color: var(--accent-gold);
color: var(--accent-gold);
background: rgba(240, 195, 104, .12);
box-shadow: 0 0 14px rgba(240, 195, 104, .18);
}
.opponent-chip--out {
opacity: .4;
cursor: default;
text-decoration: line-through;
}
.opponent-chip__name {
max-width: 12ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.opponent-chip__ships {
font-variant-numeric: tabular-nums;
color: var(--text-muted);
}
.opponent-chip--active .opponent-chip__ships { color: inherit; }
.battle-roles {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-xs);
width: 100%;
padding: var(--space-xs) 0 0;
font-size: .82rem;
}
.role-chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 12px;
border: 1px solid var(--border-subtle);
border-radius: 999px;
background: rgba(7, 13, 23, .55);
color: var(--text-secondary);
}
.role-chip--active {
border-color: var(--accent-gold);
color: var(--accent-gold);
background: rgba(240, 195, 104, .12);
box-shadow: 0 0 14px rgba(240, 195, 104, .18);
}
.role-chip__icon { font-size: 1rem; line-height: 1; }
.role-phase,
.role-sonar {
color: var(--text-muted);
font-variant-numeric: tabular-nums;
}
.role-sonar {
color: var(--accent-gold);
padding: 4px 10px;
border: 1px solid rgba(240, 195, 104, .3);
border-radius: 999px;
background: rgba(240, 195, 104, .08);
}
.battle-cargo {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
width: 100%;
padding: var(--space-xs) 0 0;
font-size: .82rem;
color: var(--text-muted);
}
.cargo-label {
text-transform: uppercase;
letter-spacing: .08em;
font-size: .68rem;
}
.cargo-buoys {
display: inline-flex;
align-items: flex-end;
gap: 5px;
}
.cargo-buoy {
display: block;
width: 13px;
height: 22px;
background: url('../assets/sprites/default/waypoint.png') center bottom / contain no-repeat;
filter: grayscale(1) brightness(.55);
opacity: .65;
transition: filter .3s ease, opacity .3s ease;
}
.cargo-buoy--lit {
opacity: 1;
filter: drop-shadow(0 0 4px rgba(46, 224, 96, .75));
}
.cargo-buoy--revealed {
filter: drop-shadow(0 0 4px rgba(217, 104, 82, .85));
}
@media (prefers-reduced-motion: reduce) {
.cargo-buoy { transition: none; }
}
.cargo-value { font-variant-numeric: tabular-nums; }
.cargo-hull {
padding: 3px 9px;
border-radius: 999px;
border: 1px solid var(--border-subtle);
font-variant-numeric: tabular-nums;
}
.cargo-hull--damaged {
color: var(--accent-red);
border-color: rgba(217, 104, 82, .45);
background: rgba(217, 104, 82, .1);
}
.battle-portrait {
position: absolute;
bottom: 8px;
height: 80%;
width: 110px;
object-fit: contain;
z-index: 1;
pointer-events: none;
transform: scaleX(-1);
}
.battle-portrait--me { left: 16px; object-position: bottom right; }
.battle-portrait--enemy { right: 16px; object-position: bottom left; }
.battle-portrait--enemy.battle-portrait--no-mirror {
object-position: bottom right;
transform: none;
}
.battle-portrait--catalog {
width: auto;
height: 76%;
}
.battle-portrait--me.battle-portrait--catalog,
.battle-portrait--enemy.battle-portrait--catalog {
object-position: bottom left;
}
.battle-portrait--catalog {
--portrait-scale: 1;
--portrait-flip: 1;
--portrait-group: 1;
transform-origin: bottom center;
transform: scaleX(var(--portrait-flip))
scale(calc(var(--portrait-scale) * var(--portrait-group)));
}
.battle-portrait--catalog[src*="captain-battle"] {
--portrait-group: 0.98;
}
.battle-portrait--catalog[src*="captain-child-battle"] {
--portrait-group: 0.88;
}
.battle-portrait--me.battle-portrait--catalog    { --portrait-flip:  1; }
.battle-portrait--enemy.battle-portrait--catalog { --portrait-flip: -1; }
.battle-portrait--catalog[src$="captain-battle-01.png"] { --portrait-scale: 0.988; }
.battle-portrait--catalog[src$="captain-battle-02.png"] { --portrait-scale: 1.081; }
.battle-portrait--catalog[src$="captain-battle-03.png"] { --portrait-scale: 0.972; }
.battle-portrait--catalog[src$="captain-battle-04.png"] { --portrait-scale: 1.055; }
.battle-portrait--catalog[src$="captain-battle-05.png"] { --portrait-scale: 1.120; }
.battle-portrait--catalog[src$="captain-battle-06.png"] { --portrait-scale: 1.121; }
.battle-portrait--catalog[src$="captain-battle-07.png"] { --portrait-scale: 0.870; }
.battle-portrait--catalog[src$="captain-battle-08.png"] { --portrait-scale: 1.156; }
.battle-portrait--catalog[src$="captain-battle-09.png"] { --portrait-scale: 1.125; }
.battle-portrait--catalog[src$="captain-battle-10.png"] { --portrait-scale: 0.925; }
.battle-portrait--catalog[src$="captain-battle-11.png"] { --portrait-scale: 1.019; }
.battle-portrait--catalog[src$="captain-battle-12.png"] { --portrait-scale: 1.044; }
.battle-portrait--catalog[src$="captain-battle-13.png"] { --portrait-scale: 0.882; }
.battle-portrait--catalog[src$="captain-battle-14.png"] { --portrait-scale: 1.145; }
.battle-portrait--catalog[src$="captain-battle-15.png"] { --portrait-scale: 1.011; }
.battle-portrait--catalog[src$="captain-battle-16.png"] { --portrait-scale: 1.162; }
.battle-portrait--catalog[src$="captain-child-battle-01.png"] { --portrait-scale: 0.984; }
.battle-portrait--catalog[src$="captain-child-battle-02.png"] { --portrait-scale: 0.827; }
.battle-portrait--catalog[src$="captain-child-battle-03.png"] { --portrait-scale: 0.956; }
.battle-portrait--catalog[src$="captain-child-battle-04.png"] { --portrait-scale: 0.997; }
.battle-portrait--catalog[src$="captain-child-battle-05.png"] { --portrait-scale: 0.880; }
.battle-portrait--catalog[src$="captain-child-battle-06.png"] { --portrait-scale: 1.040; }
.battle-portrait--catalog[src$="captain-child-battle-07.png"] { --portrait-scale: 0.771; }
.battle-portrait--catalog[src$="captain-child-battle-08.png"] { --portrait-scale: 1.062; }
.battle-portrait--catalog[src$="captain-child-battle-09.png"] { --portrait-scale: 0.956; }
.battle-portrait--catalog[src$="captain-child-battle-10.png"] { --portrait-scale: 0.963; }
.battle-portrait--catalog[src$="captain-child-battle-11.png"] { --portrait-scale: 1.013; }
.battle-portrait--catalog[src$="captain-child-battle-12.png"] { --portrait-scale: 0.998; }
.battle-portrait--catalog[src$="captain-child-battle-13.png"] { --portrait-scale: 0.881; }
.battle-portrait--catalog[src$="captain-child-battle-14.png"] { --portrait-scale: 1.026; }
.battle-portrait--catalog[src$="captain-child-battle-15.png"] { --portrait-scale: 0.909; }
.battle-portrait--catalog[src$="captain-child-battle-16.png"] { --portrait-scale: 1.003; }
.battle-player {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-md);
min-width: 0;
padding-left: 126px;
}
.battle-player--enemy {
padding-left: 0;
padding-right: 126px;
}
.battle-player__text {
min-width: 0;
text-align: center;
}
.battle-player__name {
display: block;
font-size: 1.32rem;
font-weight: 700;
line-height: 1.15;
color: var(--text-primary);
text-shadow: 0 2px 6px rgba(0, 0, 0, .85);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.battle-player__ships {
display: block;
margin-top: 2px;
font-family: var(--font-display);
font-size: .74rem;
letter-spacing: .1em;
color: var(--accent-gold);
opacity: .85;
font-variant-numeric: tabular-nums;
}
.battle-player__rank {
flex: none;
width: 52px;
height: 52px;
object-fit: contain;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8));
}
.battle-vs {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
font-family: var(--font-display);
font-size: 2.1rem;
letter-spacing: .08em;
color: var(--accent-gold);
text-shadow: 0 2px 10px var(--accent-gold-glow), 0 2px 4px rgba(0, 0, 0, .9);
}
.battle-timer {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
width: fit-content;
margin: 0 auto;
font-family: var(--font-mono);
font-size: 1.3rem;
font-weight: 600;
letter-spacing: .12em;
color: var(--accent-gold);
}
.battle-timer--warning { color: var(--accent-orange); }
.battle-timer--danger { color: var(--accent-red); animation: battleTimerPulse .5s infinite; }
@keyframes battleTimerPulse { 50% { opacity: .55; } }
.battle-signal {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
margin-top: var(--space-md);
}
.battle-signal__housing {
position: relative;
width: 74px;
aspect-ratio: 1024 / 1536;
background: url('../media/ui/battle/signal-lamp.png') center / contain no-repeat;
}
.battle-signal__light {
position: absolute;
left: 50%;
width: 29%;
aspect-ratio: 1 / 1;
transform: translate(-50%, -50%);
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), rgba(0, 0, 0, .35));
box-shadow: inset 0 0 4px rgba(0, 0, 0, .6);
opacity: .28;
transition: opacity .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.battle-signal__light--red { top: 34.8%; background-color: var(--accent-red); }
.battle-signal__light--green { top: 65.01%; background-color: var(--accent-green); }
.battle-signal--go .battle-signal__light--red { opacity: .28; box-shadow: inset 0 0 4px rgba(0, 0, 0, .6); }
.battle-signal--go .battle-signal__light--green {
opacity: 1;
box-shadow: inset 0 0 4px rgba(0, 0, 0, .4), 0 0 12px 3px rgba(90, 158, 111, .65);
}
.battle-signal:not(.battle-signal--go) .battle-signal__light--red {
opacity: 1;
box-shadow: inset 0 0 4px rgba(0, 0, 0, .4), 0 0 12px 3px rgba(217, 104, 82, .65);
}
.battle-signal:not(.battle-signal--go) .battle-signal__light--green { opacity: .28; box-shadow: inset 0 0 4px rgba(0, 0, 0, .6); }
.battle-signal__label {
font-family: var(--font-display);
font-size: .68rem;
letter-spacing: .14em;
text-transform: uppercase;
color: var(--text-secondary);
text-align: center;
}
.battle-main {
display: grid;
grid-template-columns: 230px minmax(0, 1fr) 250px;
align-items: start;
gap: var(--space-lg);
max-width: 1560px;
width: 100%;
margin: 0 auto;
}
.battle-header { grid-column: 2; grid-row: 1; }
.battle-side--left { grid-row: 2; }
.battle-boards { grid-column: 2; grid-row: 2; }
.battle-side--right { grid-row: 2; }
.battle-side {
display: flex;
flex-direction: column;
gap: var(--space-lg);
}
.battle-card { text-align: center; }
.battle-card__title {
margin: 0 0 var(--space-sm);
font-family: var(--font-display);
font-size: .76rem;
letter-spacing: .18em;
text-transform: uppercase;
color: var(--accent-gold);
}
.battle-card__text {
margin: 0;
font-size: .82rem;
line-height: 1.5;
color: var(--text-secondary);
}
.battle-card--compass::before {
content: '';
position: absolute;
left: 50%;
top: -20px;
width: 52px;
aspect-ratio: 174 / 170;
transform: translate(-50%, -50%);
background: url('../media/ui/battle/compass.png') center / contain no-repeat;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .75));
z-index: 2;
pointer-events: none;
}
.battle-card--compass .battle-panel__inner { padding-top: var(--space-md); }
.battle-card--log::before {
content: '';
position: absolute;
left: 50%;
top: -34px;
width: 52px;
aspect-ratio: 1 / 1;
transform: translate(-50%, -50%);
background: url('../media/icons/funk.png') center / contain no-repeat;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .75));
z-index: 2;
pointer-events: none;
}
.enemy-fleet {
list-style: none;
margin: var(--space-md) 0 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 2px;
text-align: left;
}
.enemy-fleet__row {
position: relative;
display: block;
text-align: right;
padding: 3px 14px 3px 0;
cursor: help;
}
.enemy-fleet__figure {
position: relative;
display: inline-block;
vertical-align: middle;
line-height: 0;
}
.enemy-fleet__figure--size5 { width: 100%; }
.enemy-fleet__figure--size4 { width: 87%; }
.enemy-fleet__figure--size3 { width: 72%; }
.enemy-fleet__figure--size2 { width: 56%; }
.enemy-fleet__icon {
width: 100%;
height: auto;
display: block;
filter: drop-shadow(0 0 3px var(--accent-gold-glow))
drop-shadow(0 1px 1px rgba(0, 0, 0, .9));
}
.enemy-fleet__count {
position: absolute;
right: 0;
top: 50%;
transform: translate(45%, -50%);
min-width: 18px;
padding: 1px 6px;
border-radius: 999px;
border: 1px solid var(--brass);
background: var(--surface-overlay);
font-family: var(--font-display);
font-size: .68rem;
line-height: 1.5;
letter-spacing: .04em;
text-align: center;
color: var(--accent-gold);
font-variant-numeric: tabular-nums;
box-shadow: 0 1px 3px rgba(0, 0, 0, .8);
z-index: 2;
}
.enemy-fleet__row::after {
content: attr(data-tooltip);
position: absolute;
bottom: calc(100% + 6px);
right: 0;
text-align: left;
padding: 5px 9px;
background: var(--surface-overlay);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: .72rem;
letter-spacing: .02em;
white-space: nowrap;
box-shadow: var(--shadow-md);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
transform: translateY(4px);
z-index: 10;
}
.enemy-fleet__row:hover::after,
.enemy-fleet__row:focus-visible::after,
.enemy-fleet__row.is-open::after {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.enemy-fleet__row:focus-visible {
outline: 1px solid var(--accent-gold);
outline-offset: 2px;
border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
.enemy-fleet__row::after { transition: none; }
.battle-boards--stacked > .board-section { transition: none; }
.battle-boards--stacked > .board-section.is-front.is-arriving
.battle-board__frame { animation: none; }
}
.enemy-fleet__row--down .enemy-fleet__icon {
filter: grayscale(1) brightness(.55);
opacity: .5;
}
.enemy-fleet__row--down .enemy-fleet__count {
color: var(--accent-red);
border-color: var(--accent-red);
}
.enemy-fleet__unknown {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
font-family: var(--font-display);
font-size: 1.1rem;
letter-spacing: .1em;
color: var(--text-muted);
}
.role-chip--team { border-style: dashed; }
.battle-boards {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-xl);
justify-items: center;
}
.battle-boards--stacked {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
gap: 0;
--board-shift: clamp(24px, calc(50% - 277px), 267px);
padding: 20px 0;
}
.battle-boards--stacked > .board-section {
grid-area: 1 / 1;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
transform-origin: 50% 50%;
transition:
transform .5s var(--ease-out, ease),
opacity .42s var(--ease-out, ease),
filter .42s var(--ease-out, ease);
}
.battle-boards--stacked > .board-section--enemy {
transform: translateX(calc(var(--board-shift) * -1));
}
.battle-boards--stacked > .board-section--mine {
transform: translateX(var(--board-shift));
}
.battle-boards--stacked > .board-section.is-front {
z-index: 2;
opacity: 1;
filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .7))
drop-shadow(0 0 18px rgba(0, 0, 0, .6));
}
.battle-boards--stacked > .board-section.is-back {
z-index: 1;
opacity: .62;
filter: saturate(.55) brightness(.62);
pointer-events: none;
}
.battle-boards--stacked > .board-section--enemy.is-back {
transform: translateX(calc(var(--board-shift) * -1)) scale(.97);
}
.battle-boards--stacked > .board-section--mine.is-back {
transform: translateX(var(--board-shift)) scale(.97);
}
.battle-board__peek {
position: absolute;
inset: 0;
z-index: 1;
display: none;
border: 0;
padding: 0;
background: none;
cursor: pointer;
}
.battle-boards--stacked > .board-section.is-back .battle-board__peek {
display: block;
}
.battle-boards--stacked > .board-section.is-back:hover {
opacity: .82;
filter: saturate(.8) brightness(.85);
}
.battle-board__peek:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 6px;
}
.battle-boards--stacked > .board-section.is-front.is-arriving
.battle-board__frame {
animation: battleBoardArrive .42s var(--ease-out, ease);
}
@keyframes battleBoardArrive {
0%   { transform: scale(1.015); }
60%  { transform: scale(.997); }
100% { transform: none; }
}
.board-section { position: relative; }
.battle-board__title {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
margin-bottom: var(--space-sm);
font-family: var(--font-display);
font-size: .82rem;
letter-spacing: .14em;
text-transform: uppercase;
color: var(--accent-steel);
text-shadow: 0 2px 4px rgba(0, 0, 0, .9);
}
.battle-board__title--enemy { color: var(--accent-red); }
.battle-board__frame {
position: relative;
border-style: solid;
border-width: 22px;
border-image-source: url('../media/ui/battle/panel-corner.png');
border-image-slice: 58;
border-image-repeat: stretch;
filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .65));
}
.battle-card--log .battle-panel__inner {
margin: -12px;
padding: 0;
overflow-x: hidden;
}
.battle-card--log .battle-card__title {
margin: var(--space-sm) 0 var(--space-md);
}
.battle-log {
max-height: 320px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 6px;
scrollbar-width: thin;
scrollbar-color: rgba(212, 165, 63, .4) transparent;
}
.battle-log::-webkit-scrollbar { width: 8px; }
.battle-log::-webkit-scrollbar-track { background: transparent; }
.battle-log::-webkit-scrollbar-thumb {
background: rgba(212, 165, 63, .4);
border-radius: 4px;
}
.battle-log::-webkit-scrollbar-thumb:hover {
background: rgba(212, 165, 63, .6);
}
.shot-log-entry {
display: grid;
grid-template-columns: 24px auto minmax(0, 1fr);
align-items: center;
gap: var(--space-sm);
padding: 6px var(--space-sm);
border-radius: var(--radius-sm);
border-left: 3px solid var(--border-subtle);
font-size: .78rem;
font-family: var(--font-mono);
animation: battleLogIn .3s var(--ease-out);
}
@keyframes battleLogIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.shot-log-entry--hit { border-left-color: var(--accent-brass); background: rgba(240, 195, 104, .1); }
.shot-log-entry--sunk { border-left-color: var(--accent-gold); background: rgba(240, 195, 104, .16); }
.shot-log-entry--miss { border-left-color: var(--accent-steel); background: rgba(91, 143, 199, .08); }
.shot-log-entry--sunk .log__what { color: var(--accent-gold); }
.shot-log-entry--hit-taken { border-left-color: var(--accent-red); background: rgba(217, 104, 82, .1); }
.shot-log-entry--sunk-taken { border-left-color: var(--accent-red); background: rgba(217, 104, 82, .18); }
.shot-log-entry--sunk-taken .log__what { color: var(--accent-red); }
.log__icon {
width: 24px; height: 24px;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
}
.log__coord { color: var(--text-primary); font-weight: 600; }
.log__what { color: var(--text-secondary); overflow-wrap: anywhere; }
.battle-footer {
display: flex;
justify-content: center;
padding: var(--space-md) 0 var(--space-lg);
}
.battle-leave {
min-width: 260px;
padding: var(--space-xs) var(--space-xl);
border-style: solid;
border-width: 20px 30px;
border-image-source: url('../media/ui/battle/plate-btn.png');
border-image-slice: 26 40 fill;
border-image-repeat: stretch;
background: none;
cursor: pointer;
font-family: var(--font-display);
font-size: .95rem;
letter-spacing: .14em;
text-transform: uppercase;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
transition: filter .2s var(--ease-out), transform .15s var(--ease-out);
}
.battle-leave:hover { filter: brightness(1.2); }
.battle-leave:active { transform: translateY(1px); }
.battle-leave--danger { color: var(--accent-red); }
.battle-confirm-veil {
position: fixed;
inset: 0;
z-index: 500;
display: none;
align-items: center;
justify-content: center;
padding: var(--space-lg);
background: rgba(4, 8, 14, .72);
backdrop-filter: blur(2px);
}
.battle-confirm-veil.is-open { display: flex; }
.battle-confirm {
max-width: 440px;
width: 100%;
padding: var(--space-xl) var(--space-lg) var(--space-lg);
text-align: center;
}
.battle-confirm__title {
position: absolute;
top: -24px; left: 50%;
transform: translate(-50%, -50%);
filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6));
}
.battle-confirm__text {
margin: 0 0 var(--space-md);
font-size: .88rem;
line-height: 1.6;
color: var(--text-secondary);
}
.battle-confirm__text--em {
font-family: var(--font-display);
letter-spacing: .08em;
color: var(--accent-gold);
}
.battle-confirm__actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-md);
justify-content: center;
margin-top: var(--space-lg);
}
.battle-confirm__actions .battle-leave { min-width: 220px; }
@media (max-width: 1600px) {
.battle-main { grid-template-columns: 210px minmax(0, 1fr) 230px; gap: var(--space-md); }
}
@media (max-width: 1600px) and (max-height: 900px) {
#screen-battle { padding-top: 34px; gap: var(--space-sm); }
.battle-main { gap: var(--space-sm); }
.battle-header { padding: 30px 44px 22px; }
.battle-header::after { border-width: 34px; }
.battle-footer { padding: var(--space-xs) 0 var(--space-sm); }
.battle-leave { border-width: 16px 30px; font-size: .86rem; }
.battle-boards--stacked { padding: 0 0 12px; }
}
@media (max-width: 1600px) and (max-height: 820px) {
#screen-battle .grid-cell {
width: clamp(28px, 4vw, 40px);
height: clamp(28px, 4vw, 40px);
}
#screen-battle .game-grid {
grid-template-columns: repeat(var(--grid-cols, 10), clamp(28px, 4vw, 40px));
}
#screen-battle .grid-cols-header {
grid-template-columns: 28px repeat(var(--grid-cols, 10), clamp(28px, 4vw, 40px));
}
}
@media (max-width: 1100px) {
.battle-main { grid-template-columns: minmax(0, 1fr); }
.battle-header { grid-column: 1; }
.battle-boards { grid-column: 1; }
.battle-side { flex-direction: row; flex-wrap: wrap; }
.battle-side > * { flex: 1 1 260px; }
.battle-side--left { order: 2; }
.battle-side--right { order: 3; }
.battle-boards { order: 1; }
}
@media (max-width: 760px) {
.battle-players { grid-template-columns: 1fr; justify-items: center; gap: var(--space-md); }
.battle-opponents { gap: 6px; }
.opponent-chip { font-size: .76rem; padding: 4px 10px; }
.battle-player, .battle-player--enemy { flex-direction: column; text-align: center; padding: 0; }
.battle-player--enemy .battle-player__rank { order: -1; }
.battle-player__rank { width: 40px; height: 40px; }
.battle-portrait { display: none; }
.battle-boards { grid-template-columns: minmax(0, 1fr); }
}

/* ── css/result.css ── */
#screen-result {
position: relative;
justify-content: center;
align-items: center;
gap: var(--space-md);
padding: var(--space-lg) var(--space-xl);
text-align: center;
overflow: hidden;
isolation: isolate;
}
#screen-result::before {
content: '';
position: absolute;
inset: -60px;
z-index: -2;
background-size: cover;
background-position: center 40%;
background-repeat: no-repeat;
animation: kenBurns 32s ease-in-out infinite alternate;
}
#screen-result::after {
content: '';
position: absolute;
inset: 0;
z-index: -1;
pointer-events: none;
}
#screen-result.result--win::before {
background-image: url('../media/backgrounds/victory-bg.jpg');
}
#screen-result.result--win::after {
background: linear-gradient(to bottom, rgba(7, 13, 23, 0.55), rgba(7, 13, 23, 0.72));
}
#screen-result.result--lose::before {
background-image: url('../media/backgrounds/defeat-bg.jpg');
}
#screen-result.result--lose::after {
background: linear-gradient(to bottom, rgba(7, 13, 23, 0.55), rgba(7, 13, 23, 0.78));
}
.result {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
width: 100%;
max-width: 1080px;
}
.result-panel {
position: relative;
border-style: solid;
border-width: 26px;
border-image-source: url('../media/ui/battle/panel-corner.png');
border-image-slice: 58;
border-image-repeat: stretch;
filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.6));
}
.result-banner {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
padding: var(--space-xs) 0 0;
animation: bannerDrop 0.6s var(--ease-out) backwards;
}
.result-banner::after {
content: '';
width: min(280px, 60vw);
height: 1px;
background: linear-gradient(to right, transparent, currentColor, transparent);
opacity: 0.5;
}
.result-banner--win::after { color: var(--accent-brass); }
.result-banner--lose::after { color: var(--accent-red); }
.result-banner h2 {
margin: 0;
font-family: var(--font-main);
font-size: clamp(2.2rem, 5.4vw, 3.6rem);
font-weight: 600;
letter-spacing: 0.34em;
text-indent: 0.34em;
line-height: 1.05;
text-transform: uppercase;
}
.result-banner--win h2 {
color: var(--accent-gold);
background-image: linear-gradient(
176deg,
#8a6516 2%,
#d4a53f 22%,
#ffeaa8 46%,
#fff8dc 52%,
#e5b74d 62%,
#a97d21 82%,
#d9ab45 98%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95))
drop-shadow(0 0 22px rgba(240, 195, 104, 0.3));
}
.result-banner--win h2 { position: relative; }
.result-banner--win h2::after {
content: attr(data-text);
position: absolute;
inset: 0;
text-indent: inherit;
-webkit-text-fill-color: transparent;
color: transparent;
background-image: linear-gradient(
104deg,
transparent 30%,
rgba(255, 252, 240, 0.55) 42%,
#fffdf5 50%,
rgba(255, 252, 240, 0.55) 58%,
transparent 70%
);
background-size: 260% 100%;
background-repeat: no-repeat;
-webkit-background-clip: text;
background-clip: text;
pointer-events: none;
animation: titleSheen 7s ease-in-out 1s infinite;
}
@keyframes titleSheen {
0%        { background-position: 260% 0; }
40%, 100% { background-position: -160% 0; }
}
.result-banner--lose h2 {
color: var(--accent-red);
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}
.result-banner--lose h2 { position: relative; }
.result-banner--lose h2::after {
content: attr(data-text);
position: absolute;
inset: 0;
text-indent: inherit;
-webkit-text-fill-color: transparent;
color: transparent;
background-image:
radial-gradient(closest-side ellipse at 20% 60%, rgba(2, 3, 5, 1), transparent 100%),
radial-gradient(closest-side ellipse at 50% 38%, rgba(6, 8, 12, 1), transparent 100%),
radial-gradient(closest-side ellipse at 76% 62%, rgba(1, 2, 4, 1), transparent 100%),
radial-gradient(closest-side ellipse at 92% 45%, rgba(9, 11, 16, 0.95), transparent 100%);
background-size: 70% 170%, 85% 150%, 62% 165%, 55% 140%;
background-repeat: no-repeat;
-webkit-background-clip: text;
background-clip: text;
pointer-events: none;
animation: titleSmoke 10s ease-in-out infinite;
}
.result-banner--lose h2::before {
content: '';
position: absolute;
inset: -50% -12%;
pointer-events: none;
background-repeat: no-repeat;
background-image:
radial-gradient(closest-side ellipse at 28% 62%, rgba(10, 12, 16, 0.78), transparent 100%),
radial-gradient(closest-side ellipse at 62% 48%, rgba(16, 19, 25, 0.66), transparent 100%),
radial-gradient(closest-side ellipse at 85% 66%, rgba(6, 8, 11, 0.72), transparent 100%);
background-size: 58% 120%, 70% 105%, 52% 115%;
filter: blur(9px);
opacity: 0;
animation: titleSmokeDrift 10s ease-in-out infinite;
}
@keyframes titleSmoke {
0%   { background-position: -30% 60%, -55% 40%, -80% 65%, -105% 45%; opacity: 0.35; }
25%  { opacity: 0.75; }
55%  { opacity: 0.5; }
80%  { opacity: 0.8; }
100% { background-position: 130% 25%, 105% 10%, 180% 30%, 155% 5%;   opacity: 0.4; }
}
@keyframes titleSmokeDrift {
0%   { opacity: 0;    transform: translate(-6%, 16%) scale(0.9); }
30%  { opacity: 0.75; }
65%  { opacity: 0.5; }
100% { opacity: 0;    transform: translate(8%, -20%) scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
.result-banner--win h2::after,
.result-banner--lose h2::before { animation: none; }
.result-banner--lose h2::after { animation: none; opacity: 0.35; }
}
@keyframes bannerDrop {
from { opacity: 0; transform: translateY(-18px) scale(0.96); }
to   { opacity: 1; transform: none; }
}
.result-top {
display: grid;
grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
align-items: center;
gap: var(--space-md);
width: 100%;
border: none;
border-image: none;
filter: none;
padding: var(--space-xs) 26px;
animation: panelRise 0.5s var(--ease-out) 120ms backwards;
}
.result-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-left: 1px solid var(--border-subtle);
}
.result-stat {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: var(--space-xs) var(--space-md);
}
.result-stat + .result-stat {
border-left: 1px solid var(--border-subtle);
}
.result-stat__label {
font-family: var(--font-display);
font-size: 0.68rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--text-secondary);
}
.result-stat__value {
font-family: var(--font-mono);
font-size: clamp(1.3rem, 2.4vw, 1.8rem);
font-weight: 800;
color: var(--accent-gold);
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
line-height: 1.1;
}
.result-stat__unit {
font-family: var(--font-display);
font-size: 0.6rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-muted);
}
.result-career {
display: flex;
flex-direction: column;
gap: var(--space-xs);
min-width: 0;
}
.result-career[hidden] { display: none; }
.result-top.is-stats-only { grid-template-columns: minmax(0, 1fr); }
.result-top.is-stats-only .result-stats { border-left: none; }
.career-rank {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.career-rank__emblem {
position: relative;
flex: none;
display: block;
}
.career-rank__badge {
display: block;
width: 52px;
height: 52px;
flex: none;
object-fit: contain;
}
#screen-result .career-rank__badge--next {
opacity: 0.6;
filter: grayscale(1) brightness(0.9) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}
.career-rank__badge.is-promoted {
animation: rankPromote 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.career-rank__track {
display: flex;
flex: 1;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.career-rank__head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: var(--space-sm);
}
.career-rank__title {
font-family: var(--font-mono);
font-size: 0.78rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-brass);
}
.career-rank__xp {
font-family: var(--font-main);
font-size: 0.74rem;
font-weight: 500;
letter-spacing: 0.06em;
font-variant-numeric: tabular-nums;
color: var(--text-secondary);
}
.career-gain {
min-height: 1.1em;
font-family: var(--font-main);
font-size: 0.74rem;
font-weight: 600;
letter-spacing: 0.06em;
color: var(--accent-gold);
}
#screen-result .rank-progress-bar__fill {
width: 0;
transition: width 0.8s var(--ease-out);
}
#screen-result .rank-progress-bar__fill.no-transition { transition: none; }
.career-rank__promoted {
position: absolute;
top: -13px;
right: -4px;
display: grid;
place-items: center;
width: 30px;
height: 30px;
cursor: help;
animation: plaqueIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.career-rank__promoted[hidden] { display: none; }
.career-rank__promoted::before {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(circle at 50% 40%, #1c2c47, #070d18 75%);
border: 1.5px solid var(--accent-gold);
box-shadow: 0 0 10px 2px rgba(255, 200, 110, 0.55), 0 2px 4px rgba(0, 0, 0, 0.9);
}
.career-rank__promoted-icon {
position: relative;
width: auto;
height: 22px;
}
#screen-result .career-rank__promoted-icon {
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.95));
}
.career-medals {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: var(--space-sm);
padding-left: 60px;
}
.career-medals:empty { display: none; }
.result-medal {
position: relative;
display: flex;
align-items: center;
gap: 4px;
text-align: left;
}
.result-medal.is-pending { visibility: hidden; }
.result-medal img {
display: block;
width: 30px;
height: 38px;
}
.result-medal__text {
display: flex;
flex-direction: column;
}
.result-medal__name {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
.result-medal__xp {
font-family: var(--font-main);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--accent-gold);
}
.result-medals__more {
font-family: var(--font-main);
font-size: 0.76rem;
font-weight: 700;
color: var(--accent-gold);
cursor: help;
}
@keyframes plaqueIn {
0%   { opacity: 0; transform: scale(0.3); }
60%  { opacity: 1; transform: scale(1.25); }
100% { transform: scale(1); }
}
@keyframes rankPromote {
0%   { transform: scale(1); }
40%  { transform: scale(1.35); filter: brightness(1.6) drop-shadow(0 0 14px var(--accent-gold)); }
100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.career-rank__badge.is-promoted,
.career-rank__promoted { animation: none; }
#screen-result .rank-progress-bar__fill { transition: none; }
}
.result-report-row {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--space-md);
width: 100%;
align-items: stretch;
}
.result-report__none {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-sm);
flex: 1;
min-height: 0;
padding: var(--space-xs) var(--space-md) var(--space-md);
text-align: center;
}
.result-report__none img {
height: 195px;
width: auto;
max-width: 100%;
object-fit: contain;
filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}
.result-report__none-text {
font-family: var(--font-display);
font-size: 0.95rem;
letter-spacing: 0.08em;
color: var(--accent-green);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.result-report {
width: 100%;
padding: var(--space-sm) var(--space-lg) var(--space-md);
min-height: 374px;
display: flex;
flex-direction: column;
animation: panelRise 0.5s var(--ease-out) 220ms backwards;
}
.result-report__head {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-md);
margin-bottom: var(--space-md);
}
.result-report__title {
margin: 0;
font-family: var(--font-display);
font-size: 1.35rem;
letter-spacing: 0.24em;
text-transform: uppercase;
color: var(--accent-gold);
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}
.result-report__orn { height: 16px; width: auto; opacity: 0.85; }
.result-report__orn--left { transform: scaleX(-1); }
.result-report__sides {
display: grid;
grid-template-columns: 1fr 1px 1fr;
gap: var(--space-md);
align-items: start;
flex: 1;
}
.result-report__split {
align-self: stretch;
background: linear-gradient(to bottom, transparent, var(--border-subtle) 15%, var(--border-subtle) 85%, transparent);
}
.casualty-side { text-align: left; }
.casualty-side__head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--space-sm);
padding-bottom: 6px;
margin-bottom: 4px;
border-bottom: 1px solid var(--border-subtle);
}
.casualty-side__label {
display: flex;
align-items: center;
gap: 7px;
font-family: var(--font-main);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-secondary);
}
.casualty-side__label::before {
content: '';
width: 7px;
height: 7px;
border-radius: 50%;
flex: none;
}
.casualty-side--me .casualty-side__label::before { background: var(--accent-red); }
.casualty-side--enemy .casualty-side__label::before { background: var(--accent-steel); }
.casualty-side__unit {
font-family: var(--font-main);
font-size: 0.58rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
}
.casualty-side__roles {
list-style: none;
margin: 0;
padding: 0;
}
.casualty-role {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
padding: 3px 0;
font-size: 0.84rem;
color: var(--text-secondary);
border-bottom: 1px solid rgba(140, 175, 215, 0.07);
opacity: 0;
transform: translateY(6px);
transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.casualty-role.is-visible {
opacity: 1;
transform: translateY(0);
}
.casualty-role__name {
display: flex;
align-items: center;
gap: 8px;
}
.casualty-role__count {
font-family: var(--font-mono);
font-weight: 600;
color: var(--text-primary);
font-variant-numeric: tabular-nums;
}
.casualty-role--total {
margin-top: 6px;
padding-top: 8px;
border-top: 1px solid var(--border-subtle);
border-bottom: none;
font-family: var(--font-display);
font-size: 0.78rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-primary);
}
.casualty-role--total .casualty-role__count {
font-family: var(--font-mono);
font-size: 1.25rem;
font-weight: 800;
letter-spacing: 0;
}
.casualty-side--me .casualty-role--total .casualty-role__count { color: var(--accent-red); }
.casualty-side--enemy .casualty-role--total .casualty-role__count { color: var(--accent-steel); }
.result-report__hint {
margin: var(--space-sm) 0 0;
font-size: 0.66rem;
line-height: 1.5;
color: var(--text-muted);
text-align: center;
}
.result-footer {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 0.567fr);
gap: var(--space-md);
width: 100%;
align-items: stretch;
animation: panelRise 0.5s var(--ease-out) 320ms backwards;
}
.result-notes {
position: relative;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
gap: var(--space-md);
margin: 0;
padding: var(--space-xs) var(--space-sm);
min-height: 118px;
text-align: left;
}
.result-notes__illu {
width: clamp(52px, 6vw, 70px);
height: auto;
filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.7));
}
.result-notes__body {
min-width: 0;
padding-left: var(--space-md);
border-left: 1px solid rgba(212, 165, 63, 0.4);
}
.result-notes__label {
display: block;
margin-bottom: 6px;
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--accent-brass);
}
.result-notes__text {
margin: 0;
font-family: var(--font-display);
font-size: 0.84rem;
line-height: 1.5;
color: var(--text-primary);
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
hyphens: auto;
text-wrap: pretty;
}
.result-notes__sign {
display: block;
margin-top: 6px;
font-family: var(--font-display);
font-size: 0.62rem;
letter-spacing: 0.1em;
color: var(--text-muted);
text-align: right;
}
.promo {
--light: 255, 224, 170;
position: fixed;
inset: 0;
z-index: 30;
display: grid;
place-items: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.35s var(--ease-out);
}
.promo[hidden] { display: none; }
.promo.is-on { opacity: 1; pointer-events: auto; cursor: pointer; }
.promo--bronze { --light: 230, 160, 105; }
.promo--silver { --light: 214, 226, 240; }
.promo--gold   { --light: 255, 218, 150; }
.promo__backdrop {
position: absolute;
inset: 0;
background: radial-gradient(circle at 50% 42%, rgba(18, 30, 52, 0.8), rgba(3, 7, 13, 0.95) 70%);
}
.promo--medal .promo__backdrop {
background: radial-gradient(circle at 50% 42%, rgba(18, 30, 52, 0.78), rgba(3, 7, 13, 0.93) 70%);
}
.promo__stage {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
}
.promo__light {
position: absolute;
left: 50%;
top: 118px;
width: 640px;
height: 640px;
transform: translate(-50%, -50%);
mix-blend-mode: screen;
opacity: 0;
pointer-events: none;
}
.promo__light::before {
content: '';
position: absolute;
inset: -12%;
background: url('../media/ui/battle/light-burst.jpg') center / contain no-repeat;
-webkit-mask-image: radial-gradient(circle, #000 38%, transparent 70%);
mask-image: radial-gradient(circle, #000 38%, transparent 70%);
opacity: 0.85;
}
.promo--silver .promo__light::before { filter: saturate(0) brightness(1.15); }
.promo--bronze .promo__light::before { filter: sepia(0.35) hue-rotate(-14deg) saturate(1.3) brightness(0.95); }
.promo--medal .promo__light { width: 480px; height: 480px; }
.promo__glow {
position: absolute;
left: 50%;
top: 118px;
width: 340px;
height: 340px;
transform: translate(-50%, -50%);
background: radial-gradient(circle, rgba(var(--light), 0.5), rgba(var(--light), 0.14) 42%, transparent 70%);
mix-blend-mode: screen;
opacity: 0;
pointer-events: none;
}
.promo--medal .promo__glow { width: 260px; height: 260px; }
.promo.is-on .promo__light         { animation: promoLightIn 0.7s var(--ease-out) forwards; }
.promo.is-on .promo__light::before { animation: promoTurn 70s linear infinite; }
.promo.is-on .promo__glow          { animation: promoGlow 2.9s ease-out forwards; }
.promo__kicker {
position: relative;
display: flex;
align-items: center;
gap: 14px;
font-family: var(--font-main);
font-size: 0.74rem;
font-weight: 600;
letter-spacing: 0.5em;
text-indent: 0.5em;
text-transform: uppercase;
color: var(--accent-brass);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.85);
opacity: 0;
}
.promo__kicker::before,
.promo__kicker::after {
content: '';
width: 48px;
height: 1px;
background: linear-gradient(to right, transparent, currentColor);
opacity: 0.7;
}
.promo__kicker::after { background: linear-gradient(to left, transparent, currentColor); }
.promo__badge {
position: relative;
width: 200px;
height: 200px;
object-fit: contain;
filter: drop-shadow(0 0 20px rgba(var(--light), 0.6)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8));
opacity: 0;
}
.promo--medal .promo__badge { width: 160px; height: 200px; }
.promo__rank {
--track: 0.34em;
position: relative;
font-family: var(--font-main);
font-size: clamp(2.2rem, 5.4vw, 3.6rem);
font-weight: 600;
line-height: 1.05;
letter-spacing: var(--track);
text-indent: var(--track);
text-transform: uppercase;
color: var(--accent-gold);
background-image: linear-gradient(176deg, #8a6516 2%, #d4a53f 22%, #ffeaa8 46%, #fff8dc 52%, #e5b74d 62%, #a97d21 82%, #d9ab45 98%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 22px rgba(var(--light), 0.3));
opacity: 0;
}
.promo__rank::after {
content: attr(data-text);
position: absolute;
inset: 0;
text-indent: inherit;
-webkit-text-fill-color: transparent;
color: transparent;
background-image: linear-gradient(104deg, transparent 30%, rgba(255, 252, 240, 0.55) 42%, #fffdf5 50%, rgba(255, 252, 240, 0.55) 58%, transparent 70%);
background-size: 260% 100%;
background-position: 260% 0;
background-repeat: no-repeat;
-webkit-background-clip: text;
background-clip: text;
pointer-events: none;
}
.promo--medal .promo__rank { --track: 0.24em; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.promo--silver .promo__rank { background-image: linear-gradient(176deg, #6f7b88 2%, #b9c4cf 22%, #f2f6fa 46%, #ffffff 52%, #c9d3dd 62%, #7f8b98 82%, #b7c2cd 98%); }
.promo--bronze .promo__rank { background-image: linear-gradient(176deg, #6e3d17 2%, #b06a34 22%, #f0b98a 46%, #ffe0c2 52%, #c9844c 62%, #84491f 82%, #b8743f 98%); }
.promo__from {
position: relative;
font-family: var(--font-main);
font-size: 0.86rem;
font-weight: 500;
letter-spacing: 0.16em;
text-indent: 0.16em;
color: var(--text-secondary);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.85);
opacity: 0;
}
.promo--medal .promo__from { font-weight: 700; color: var(--accent-gold); }
.promo.is-on .promo__kicker        { animation: promoText 0.5s var(--ease-out) 0.15s forwards; }
.promo.is-on .promo__badge         { animation: promoBadge 0.95s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.05s forwards; }
.promo.is-on .promo__rank          { animation: promoRank 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.45s forwards; }
.promo.is-on .promo__rank::after   { animation: promoSheen 1.3s ease-in-out 1.1s forwards; }
.promo.is-on .promo__from          { animation: promoText 0.5s var(--ease-out) 0.8s forwards; }
.promo--medal.is-on .promo__badge  { animation-duration: 0.7s; }
.promo--medal.is-on .promo__rank   { animation-delay: 0.3s; }
.promo--medal.is-on .promo__rank::after { animation-delay: 0.8s; }
.promo--medal.is-on .promo__from   { animation-delay: 0.5s; }
.promo__motes {
position: absolute;
left: 50%;
top: 118px;
width: 0;
height: 0;
pointer-events: none;
}
.promo__mote {
position: absolute;
left: 0;
top: 0;
width: var(--s);
height: var(--s);
border-radius: 50%;
background: rgba(var(--light), 0.95);
box-shadow: 0 0 calc(var(--s) * 1.5) rgba(var(--light), 0.6);
filter: blur(var(--b));
opacity: 0;
transform: translate(-50%, -50%) translate(var(--x), var(--y));
}
.promo.is-on .promo__mote { animation: promoMote var(--dur) linear var(--delay) forwards; }
.promo__spark {
position: absolute;
left: 50%;
top: 118px;
width: 4px;
height: 4px;
border-radius: 50%;
background: rgb(var(--light));
box-shadow: 0 0 6px 1px rgba(var(--light), 0.9);
opacity: 0;
pointer-events: none;
}
.promo.is-on .promo__spark { animation: promoSpark 1.2s ease-out var(--delay, 0.25s) forwards; }
@keyframes promoLightIn { to { opacity: 1; } }
@keyframes promoTurn { to { transform: rotate(360deg); } }
@keyframes promoGlow {
0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
20%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
}
@keyframes promoBadge {
0%   { opacity: 0; transform: scale(0.15) rotate(-30deg); filter: brightness(2.4) drop-shadow(0 0 30px rgba(255, 240, 210, 0.9)); }
55%  { opacity: 1; transform: scale(1.15) rotate(5deg); }
100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes promoRank {
0%   { opacity: 0; transform: scale(1.6); letter-spacing: 0.7em; }
100% { opacity: 1; transform: scale(1); letter-spacing: var(--track); }
}
@keyframes promoSheen {
from { background-position: 260% 0; }
to   { background-position: -160% 0; }
}
@keyframes promoText {
from { opacity: 0; transform: translateY(8px); }
to   { opacity: 1; transform: none; }
}
@keyframes promoMote {
0%   { opacity: 0; transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(0.7); }
18%  { opacity: var(--o); }
75%  { opacity: var(--o); }
100% { opacity: 0; transform: translate(-50%, -50%) translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(1); }
}
@keyframes promoSpark {
0%   { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateY(0) scale(1); }
100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(0.3); }
}
@media (prefers-reduced-motion: reduce) {
.promo.is-on .promo__light::before,
.promo.is-on .promo__rank::after { animation: none; }
.promo.is-on .promo__glow { animation: none; opacity: 0.75; }
.promo.is-on .promo__badge,
.promo.is-on .promo__rank,
.promo.is-on .promo__kicker,
.promo.is-on .promo__from { animation: promoText 0.3s forwards; }
.promo__spark,
.promo__motes { display: none; }
}
.result-actions {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: var(--space-sm);
}
#screen-result .btn-plate {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 300px;
min-height: 58px;
padding: 0 var(--space-lg);
border: none;
background: url('../media/ui/lobby/plate-steel.png') center / 100% 100% no-repeat;
cursor: pointer;
font-family: var(--font-display);
font-size: 0.88rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
#screen-result .btn-plate[hidden] { display: none; }
#screen-result .btn-plate:hover:not(:disabled) { filter: brightness(1.2); }
#screen-result .btn-plate:active:not(:disabled) { transform: translateY(1px); }
#screen-result .btn-plate__icon { font-size: 1.05em; line-height: 1; }
#screen-result .btn-plate { position: relative; }
#screen-result img.btn-plate__icon {
position: absolute;
left: 32px;
top: 50%;
transform: translateY(-50%);
width: 2.3em;
height: 2.3em;
object-fit: contain;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .85));
}
#screen-result img.btn-plate__icon--wide {
left: calc(32px - 0.3em);
width: 2.9em;
height: 2.9em;
}
#screen-result img.btn-plate__icon--framed {
filter: none;
}
#screen-result .btn-plate:disabled {
cursor: not-allowed;
filter: grayscale(0.75) brightness(0.6);
color: var(--text-muted);
text-shadow: none;
}
#screen-result .btn-plate[aria-disabled="true"] {
cursor: default;
}
#screen-result .btn-plate--primary {
background-image: url('../media/ui/lobby/plate-steel-crimson.png');
}
#screen-result .btn-plate--primary:not(:disabled):not([aria-disabled="true"]) {
animation: rematchGlow 2.8s ease-in-out infinite;
}
#screen-result .btn-plate--primary.is-called:not(:disabled):not([aria-disabled="true"]) {
animation-name: rematchCall;
animation-duration: 1.4s;
}
#screen-result .btn-plate--primary:hover:not(:disabled):not([aria-disabled="true"]) {
animation: none;
filter: brightness(1.15) drop-shadow(0 0 12px rgba(230, 72, 52, 0.85));
}
@keyframes rematchGlow {
0%, 100% { filter: drop-shadow(0 0 3px rgba(214, 64, 48, 0.3)); }
50%      { filter: drop-shadow(0 0 10px rgba(214, 64, 48, 0.75)); }
}
@keyframes rematchCall {
0%, 100% { filter: drop-shadow(0 0 5px rgba(230, 72, 52, 0.5)); }
50%      { filter: drop-shadow(0 0 16px rgba(240, 90, 60, 1)); }
}
.rematch-fuse {
position: absolute;
left: 18px;
right: 18px;
bottom: 9px;
height: 3px;
border-radius: 2px;
background: rgba(0, 0, 0, 0.5);
overflow: hidden;
pointer-events: none;
}
.rematch-fuse[hidden] { display: none; }
.rematch-fuse i {
display: block;
height: 100%;
transform-origin: left center;
transform: scaleX(var(--fuse, 1));
background: linear-gradient(90deg, #b8862e, var(--accent-gold));
box-shadow: 0 0 6px rgba(240, 195, 104, 0.7);
transition: transform 1s linear;
}
#screen-result .btn-plate.is-urgent .rematch-fuse i {
background: linear-gradient(90deg, #c0392b, #ff7a45);
box-shadow: 0 0 8px rgba(255, 100, 60, 0.9);
animation: fuseFlicker 0.45s ease-in-out infinite alternate;
}
#screen-result .btn-plate--primary.is-urgent:not(:disabled):not([aria-disabled="true"]) {
animation-name: rematchCall;
animation-duration: 0.9s;
}
@keyframes fuseFlicker {
from { opacity: 1; }
to   { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
#screen-result .btn-plate.is-urgent .rematch-fuse i { animation: none; }
#screen-result .btn-plate--primary:not(:disabled):not([aria-disabled="true"]),
#screen-result .btn-plate--primary.is-called:not(:disabled):not([aria-disabled="true"]),
#screen-result .btn-plate--primary.is-urgent:not(:disabled):not([aria-disabled="true"]) {
animation: none;
filter: drop-shadow(0 0 8px rgba(214, 64, 48, 0.7));
}
}
.rematch-lamps {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
display: inline-flex;
gap: 2px;
}
.rematch-lamps:empty { display: none; }
#screen-result .rematch-lamp {
width: 18px;
height: 18px;
}
.rematch-lamp.is-open {
background-image: url('../media/ui/lobby/lamp-amber-off.png');
}
.rematch-lamp.is-open::after {
content: '';
position: absolute;
inset: 0;
background: url('../media/ui/lobby/lamp-amber-on.png') center / contain no-repeat;
filter: drop-shadow(0 0 5px var(--accent-gold-glow));
animation: lampPulse 2.4s ease-in-out infinite;
}
.rematch-lamp.is-requested {
background-image: url('../media/ui/lobby/lamp-green-on.png');
filter: drop-shadow(0 0 6px rgba(111, 224, 140, 0.8));
}
.rematch-lamp.is-gone {
background-image: url('../media/ui/lobby/lamp-red-on.png');
}
.rematch-lamp.is-off {
background-image: url('../media/ui/lobby/lamp-amber-off.png');
}
@media (prefers-reduced-motion: reduce) {
.rematch-lamp.is-open::after {
animation: none;
opacity: 1;
}
}
@keyframes panelRise {
from { opacity: 0; transform: translateY(14px); }
to   { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
.result-top { grid-template-columns: 1fr; }
.result-stats {
border-left: none;
border-top: 1px solid var(--border-subtle);
padding-top: var(--space-xs);
}
.result-footer { grid-template-columns: 1fr; }
.result-notes { min-height: 96px; }
}
@media (max-width: 640px) {
#screen-result { padding: var(--space-md) var(--space-sm); }
.result-report__sides { grid-template-columns: 1fr; }
.result-report__split { display: none; }
.result-stats { grid-template-columns: 1fr; }
.result-stat + .result-stat {
border-left: none;
border-top: 1px solid var(--border-subtle);
}
}
@media (max-width: 420px) {
.result-notes {
grid-template-columns: minmax(0, 1fr);
justify-items: center;
text-align: center;
}
.result-notes__body { padding-left: 0; border-left: none; }
.result-notes__sign { text-align: center; }
}
#screen-result {
--panel-ink: 3, 7, 13;
}
.result-panel :is(h1, h2, h3, h4, p, span, li, strong, em, td, th, button),
.result-notes :is(figcaption, blockquote, span) {
text-shadow:
0 0 3px rgba(var(--panel-ink), 1),
0 0 7px rgba(var(--panel-ink), .98),
0 1px 3px rgba(var(--panel-ink), 1),
0 0 16px rgba(var(--panel-ink), .9),
0 0 30px rgba(var(--panel-ink), .72);
}
.result-panel .result-report__title {
text-shadow:
0 0 4px rgba(var(--panel-ink), 1),
0 0 10px rgba(var(--panel-ink), .98),
0 2px 5px rgba(var(--panel-ink), 1),
0 0 22px rgba(var(--panel-ink), .92),
0 0 42px rgba(var(--panel-ink), .75);
}
.result-panel img:not(.result-notes__illu) {
filter:
drop-shadow(0 0 4px rgba(var(--panel-ink), .98))
drop-shadow(0 0 14px rgba(var(--panel-ink), .8))
drop-shadow(0 2px 8px rgba(0, 0, 0, .7));
}
.result-report__none img {
filter:
drop-shadow(0 0 6px rgba(var(--panel-ink), .95))
drop-shadow(0 0 20px rgba(var(--panel-ink), .75))
drop-shadow(0 6px 16px rgba(0, 0, 0, .7));
}
.result-notes__illu {
filter:
drop-shadow(0 0 5px rgba(var(--panel-ink), .95))
drop-shadow(0 0 16px rgba(var(--panel-ink), .75))
drop-shadow(0 3px 10px rgba(0, 0, 0, .7));
}
@media (max-width: 480px) {
.battle-header {
flex-direction: column;
gap: var(--space-md);
}
}
.result-subline {
margin: calc(var(--space-xs) * -1) 0 0;
font-family: var(--font-mono);
font-size: 0.78rem;
letter-spacing: 0.04em;
text-align: center;
color: var(--text-secondary);
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}
.result-subline[hidden],
.result-subline:empty { display: none; }
.result-career { position: relative; }
.register-prompt {
position: absolute;
left: 0;
right: 0;
top: 50%;
transform: translateY(-50%);
min-height: 100%;
z-index: 2;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-xs) var(--space-md);
padding: var(--space-md) var(--space-lg);
border: 1px solid rgba(212, 165, 63, 0.28);
border-radius: var(--radius-md);
background: rgba(4, 8, 14, 0.92);
text-align: left;
animation: promptIn 0.3s ease-out backwards;
}
.register-prompt[hidden] { display: none; }
@keyframes promptIn {
from { opacity: 0; transform: translateY(-50%); }
to   { opacity: 1; transform: translateY(-50%); }
}
.register-prompt__copy {
display: grid;
gap: 2px;
flex: 1 1 200px;
min-width: 0;
}
.register-prompt__kicker {
font-family: var(--font-display);
font-size: 0.92rem;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--accent-gold);
}
.register-prompt__text {
margin: 0;
font-size: 0.78rem;
color: var(--text-secondary);
}
.register-prompt__actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-sm);
flex: none;
}
#screen-result .register-prompt__actions .btn-plate {
width: auto;
max-width: none;
min-height: 44px;
padding: 0 var(--space-md);
font-size: 0.76rem;
white-space: nowrap;
animation: promptPulse 0.9s ease-in-out 0.35s 1 backwards;
}
@keyframes promptPulse {
0%, 100% { transform: none; filter: none; }
40%      { transform: scale(1.07); filter: brightness(1.25) drop-shadow(0 0 12px rgba(240, 195, 104, 0.75)); }
}
.register-prompt__close {
position: absolute;
top: 0;
right: 0;
transform: translate(50%, -50%);
width: 36px;
height: 36px;
padding: 0;
border: none;
background: transparent;
cursor: pointer;
transition: transform 0.2s var(--ease-out), filter 0.2s;
}
.register-prompt__close img {
display: block;
width: 100%;
height: 100%;
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
}
.register-prompt__close:hover {
transform: translate(50%, -50%) scale(1.1);
filter: brightness(1.15);
}
@media (max-width: 480px) {
#screen-result .register-prompt__actions .btn-plate {
width: 100%;
white-space: normal;
}
}

/* ── css/loading.css ── */
.preload-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
height: 3px;
z-index: 400;
background: rgba(0, 0, 0, 0.25);
transition: opacity 0.5s ease;
}
.preload-bar[hidden] { display: none; }
.preload-bar--done { opacity: 0; }
.preload-bar__fill {
width: 0;
height: 100%;
background: var(--brass-fill);
box-shadow: 0 0 8px var(--accent-brass-glow);
transition: width 0.3s ease;
}
.loader {
position: fixed;
inset: 0;
z-index: 500;
display: flex;
align-items: center;
justify-content: center;
background: var(--surface-overlay);
backdrop-filter: blur(10px);
animation: loader-in 0.25s ease;
}
.loader[hidden] { display: none; }
.loader--out {
opacity: 0;
transition: opacity 0.4s ease;
}
@keyframes loader-in {
from { opacity: 0; }
to { opacity: 1; }
}
.loader__box {
width: min(420px, 90vw);
padding: 32px 28px;
text-align: center;
background: var(--surface-card);
border: 1px solid var(--border-glow);
border-radius: 16px;
box-shadow: 0 0 40px rgba(201, 162, 39, 0.12);
}
.loader__scene {
position: relative;
height: 72px;
margin-bottom: 8px;
overflow: hidden;
}
.loader__ship {
font-size: 2.6rem;
line-height: 1;
animation: loader-bob 2.4s ease-in-out infinite;
}
@keyframes loader-bob {
0%, 100% { transform: translateY(0) rotate(-6deg); }
50%      { transform: translateY(-6px) rotate(6deg); }
}
.loader__waves {
position: absolute;
left: -50%;
bottom: 0;
width: 200%;
height: 24px;
background:
radial-gradient(circle at 50% 100%, transparent 68%, var(--accent-brass) 70%, transparent 72%) 0 0 / 44px 24px repeat-x,
radial-gradient(circle at 50% 100%, transparent 68%, var(--ocean-300) 70%, transparent 72%) 22px 6px / 60px 24px repeat-x;
opacity: 0.5;
animation: loader-waves 3s linear infinite;
}
@keyframes loader-waves {
from { transform: translateX(0); }
to   { transform: translateX(60px); }
}
.loader__title {
margin: 0 0 6px;
font-size: 1.25rem;
color: var(--accent-brass);
letter-spacing: 0.06em;
}
.loader__message {
margin: 0 0 20px;
min-height: 1.4em;
font-size: 0.95rem;
color: var(--text-secondary, #8aa8c8);
}
.loader__bar {
height: 8px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.35);
border: 1px solid var(--border-subtle);
overflow: hidden;
}
.loader__fill {
width: 0;
height: 100%;
border-radius: 999px;
background: var(--brass-fill);
box-shadow: 0 0 12px var(--accent-brass-glow);
transition: width 0.25s ease;
}
.loader__count {
margin: 10px 0 0;
font-size: 0.85rem;
font-variant-numeric: tabular-nums;
color: var(--accent-brass);
}
@media (prefers-reduced-motion: reduce) {
.loader__ship,
.loader__waves { animation: none; }
}

/* ── css/feedback.css ── */
.feedback-tab {
position: fixed;
top: 50%;
right: 0;
z-index: 99;
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 92px;
padding: 0;
overflow: visible;
border: 1px solid rgba(212, 165, 63, 0.45);
border-right: none;
border-radius: var(--radius-md) 0 0 var(--radius-md);
background:
linear-gradient(180deg, rgba(32, 46, 64, 0.97), rgba(18, 30, 46, 0.97));
box-shadow:
-3px 0 14px rgba(0, 0, 0, 0.55),
inset 1px 0 0 rgba(247, 226, 168, 0.22);
cursor: pointer;
transform: translateY(-50%);
transition: background 0.25s var(--ease-out),
box-shadow 0.25s var(--ease-out),
width 0.2s var(--ease-out);
}
.feedback-tab:hover,
.feedback-tab:focus-visible {
background: linear-gradient(180deg, rgba(44, 60, 80, 0.98), rgba(26, 40, 58, 0.98));
box-shadow:
-4px 0 20px rgba(0, 0, 0, 0.6),
inset 1px 0 0 rgba(247, 226, 168, 0.4),
0 0 0 1px var(--accent-brass-glow);
width: 42px;
outline: none;
}
.feedback-tab::before {
content: '';
position: absolute;
top: 10px;
bottom: 10px;
left: 0;
width: 2px;
background: var(--brass-edge);
border-radius: 2px;
pointer-events: none;
}
.feedback-tab__icon {
position: absolute;
top: 50%;
left: 0;
width: 46px;
height: 46px;
transform: translate(-50%, -50%);
z-index: 1;
object-fit: contain;
opacity: 0.92;
filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
transition: opacity 0.25s var(--ease-out), transform 0.2s var(--ease-out);
pointer-events: none;
}
.feedback-tab:hover .feedback-tab__icon,
.feedback-tab:focus-visible .feedback-tab__icon {
opacity: 1;
transform: translate(-50%, -50%) scale(1.08);
}
@media (prefers-reduced-motion: reduce) {
.feedback-tab { transition: background 0.25s ease, color 0.25s ease; }
.feedback-tab:hover,
.feedback-tab:focus-visible { transform: translateY(-50%); }
}
@media (max-width: 640px) {
.feedback-tab {
top: auto;
bottom: 84px;
transform: none;
height: 76px;
}
.feedback-tab:hover,
.feedback-tab:focus-visible {
transform: none;
width: 42px;
}
}
.feedback-modal {
max-width: 620px;
max-height: calc(100vh - 2 * var(--space-lg));
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: rgba(212, 165, 63, 0.4) transparent;
}
.feedback-modal::-webkit-scrollbar { width: 7px; }
.feedback-modal::-webkit-scrollbar-track { background: transparent; }
.feedback-modal::-webkit-scrollbar-thumb {
background: rgba(212, 165, 63, 0.4);
border-radius: 4px;
}
.feedback-modal::-webkit-scrollbar-thumb:hover { background: var(--accent-brass); }
.feedback-text {
width: 100%;
resize: vertical;
min-height: 64px;
font-family: var(--font-main);
font-size: 0.95rem;
line-height: 1.55;
}
.feedback-optional {
font-family: var(--font-mono);
font-size: 0.62rem;
letter-spacing: 0.06em;
color: var(--text-muted);
text-transform: none;
}
.feedback-severity {
display: flex;
flex-wrap: wrap;
gap: var(--space-xs);
}
.feedback-severity input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.feedback-severity label {
display: inline-flex;
align-items: center;
gap: 7px;
margin: 0;
padding: 8px 13px;
background: rgba(7, 13, 23, 0.6);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
color: var(--text-secondary);
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.08em;
text-transform: uppercase;
cursor: pointer;
transition: border-color 0.2s var(--ease-out),
background 0.2s var(--ease-out),
color 0.2s var(--ease-out);
}
.feedback-severity label::before {
content: '';
width: 15px;
height: 15px;
flex: none;
background: url('../media/ui/battle/radio-off.png') center / contain no-repeat;
}
.feedback-severity label:hover {
color: var(--text-primary);
background: rgba(212, 165, 63, 0.07);
border-color: var(--border-glow);
}
.feedback-severity input:checked + label {
border-color: var(--accent-brass);
background: rgba(212, 165, 63, 0.14);
color: var(--accent-gold);
box-shadow: inset 0 1px 0 rgba(247, 226, 168, 0.18);
}
.feedback-severity input:checked + label::before {
background-image: url('../media/ui/battle/radio-on.png');
}
.feedback-severity input:focus-visible + label {
outline: 2px solid var(--accent-brass);
outline-offset: 2px;
}
.feedback-context {
border: 1px dashed rgba(180, 150, 95, 0.3);
border-radius: var(--radius-md);
padding: var(--space-sm) var(--space-md);
background: rgba(7, 13, 23, 0.45);
}
.feedback-context__title {
font-family: var(--font-mono);
font-size: 0.6rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-muted);
margin-bottom: 7px;
}
.feedback-context__list {
margin: 0;
font-family: var(--font-mono);
font-size: 0.72rem;
line-height: 1.7;
color: var(--ocean-100);
overflow-wrap: anywhere;
}
.feedback-shot {
display: grid;
grid-template-columns: auto 1fr;
gap: var(--space-xs) 10px;
align-items: center;
}
.feedback-shot input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.feedback-shot__label {
grid-column: 2;
display: inline-flex;
align-items: center;
gap: 9px;
margin: 0;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-secondary);
cursor: pointer;
transition: color 0.2s var(--ease-out);
}
.feedback-shot__label::before {
content: '';
width: 17px;
height: 17px;
flex: none;
background: url('../media/ui/battle/check-off.png') center / contain no-repeat;
}
.feedback-shot input:checked + .feedback-shot__label {
color: var(--accent-gold);
}
.feedback-shot input:checked + .feedback-shot__label::before {
background-image: url('../media/ui/battle/check-on.png');
}
.feedback-shot input:focus-visible + .feedback-shot__label {
outline: 2px solid var(--accent-brass);
outline-offset: 3px;
}
.feedback-shot__body {
grid-column: 2;
display: flex;
flex-direction: column;
gap: 7px;
}
.feedback-shot__zoom {
display: block;
width: fit-content;
padding: 0;
background: none;
border: none;
cursor: zoom-in;
line-height: 0;
}
.feedback-shot__preview {
display: block;
max-width: 200px;
max-height: 120px;
border: 1px solid rgba(212, 165, 63, 0.35);
border-radius: var(--radius-sm);
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
object-fit: cover;
transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.feedback-shot__zoom:hover .feedback-shot__preview,
.feedback-shot__zoom:focus-visible .feedback-shot__preview {
border-color: var(--accent-brass);
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--accent-brass-glow);
}
.feedback-shot__preview:not([src]) {
display: none;
}
.feedback-shot__zoom:not(:has(.feedback-shot__preview[src])) {
display: none;
}
.feedback-shot__zoom-hint {
font-family: var(--font-mono);
font-size: 0.62rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-muted);
}
.feedback-lightbox {
position: fixed;
inset: 0;
z-index: 960;
display: none;
align-items: center;
justify-content: center;
padding: var(--space-lg);
background: rgba(4, 8, 15, 0.88);
cursor: zoom-out;
animation: fadeIn 0.2s var(--ease-out);
}
.feedback-lightbox.is-open {
display: flex;
}
.feedback-lightbox__img {
max-width: 100%;
max-height: calc(100vh - 4 * var(--space-lg));
border: 1px solid var(--accent-brass);
border-radius: var(--radius-md);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
object-fit: contain;
}
.feedback-lightbox__note {
position: absolute;
left: 0;
right: 0;
bottom: var(--space-lg);
text-align: center;
font-family: var(--font-mono);
font-size: 0.66rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--ocean-200);
}
.feedback-shot__note {
font-size: 0.74rem;
line-height: 1.55;
color: var(--text-muted);
}
.feedback-shot__retry {
align-self: flex-start;
padding: 2px 0;
background: none;
border: none;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.06em;
color: var(--ocean-200);
cursor: pointer;
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: rgba(159, 179, 204, 0.4);
transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
.feedback-shot__retry:hover,
.feedback-shot__retry:focus-visible {
color: var(--accent-brass);
text-decoration-color: var(--accent-brass);
}
.feedback-error {
min-height: 1.2em;
}
.feedback-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: var(--space-lg);
}
.feedback-actions .btn-plate {
align-self: auto;
}
.feedback-actions .auth-link {
align-self: auto;
}

/* ── css/diary.css ── */
.diary-modal { max-width: 680px; }
.diary-cta { margin-bottom: var(--space-md); }
.diary-cta__illu {
width: clamp(110px, 18vw, 150px);
height: auto;
filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}
.diary-filter {
justify-content: center;
margin-bottom: var(--space-lg);
padding-bottom: var(--space-md);
border-bottom: 1px solid var(--border-subtle);
}
.diary-feed {
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.diary-entry {
position: relative;
background: rgba(9, 17, 28, 0.7);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
overflow: hidden;
}
.diary-entry::before {
content: '';
position: absolute;
top: var(--space-sm);
bottom: var(--space-sm);
left: 0;
width: 2px;
background: linear-gradient(to bottom,
transparent, var(--brass) 25%, var(--brass-shine) 50%,
var(--brass) 75%, transparent);
}
.diary-entry__head {
display: block;
padding: var(--space-md) var(--space-lg);
cursor: pointer;
list-style: none;
}
.diary-entry__head::-webkit-details-marker { display: none; }
.diary-entry__head:hover .diary-entry__title,
.diary-entry__head:focus-visible .diary-entry__title {
color: var(--brass-shine);
}
.diary-entry__head:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: -2px;
}
.diary-entry__meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px 10px;
margin-bottom: 6px;
font-family: var(--font-mono);
font-size: 0.64rem;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--brass-light);
}
.diary-entry__cats {
display: inline-flex;
flex-wrap: wrap;
gap: 4px;
padding: 0;
margin: 0;
list-style: none;
}
.diary-cat {
padding: 2px 8px;
border: 1px solid var(--border-subtle);
border-radius: 999px;
font-size: 0.6rem;
letter-spacing: 0.08em;
color: var(--text-secondary);
background: rgba(8, 14, 24, 0.45);
}
.diary-entry__title {
display: block;
font-family: var(--font-display);
font-size: clamp(1rem, 2.4vw, 1.15rem);
line-height: 1.3;
color: var(--accent-gold);
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
transition: color 0.2s var(--ease-out);
}
.diary-entry__excerpt {
display: block;
margin-top: 4px;
font-size: 0.85rem;
line-height: 1.5;
color: var(--text-secondary);
}
.diary-entry__details[open] .diary-entry__excerpt { display: none; }
.diary-entry__head::after {
content: '▾';
position: absolute;
top: var(--space-md);
right: var(--space-md);
color: var(--text-muted);
font-size: 0.9rem;
transition: transform 0.2s var(--ease-out);
}
.diary-entry__details[open] .diary-entry__head::after { transform: rotate(180deg); }
.diary-entry__body {
padding: 0 var(--space-lg) var(--space-md);
}
.diary-entry__img {
display: block;
width: auto;
height: auto;
max-width: min(100%, 220px);
max-height: 220px;
margin: 0 auto var(--space-md);
object-fit: contain;
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.diary-entry__img.is-wide {
width: 100%;
max-width: 100%;
max-height: 320px;
object-fit: cover;
filter: none;
border-radius: var(--radius-sm);
border: 1px solid var(--border-subtle);
}
.diary-entry__text {
font-size: 0.92rem;
line-height: 1.65;
color: var(--text-primary);
}
.diary-entry__text p { margin: 0 0 var(--space-sm); }
.diary-entry__text h3,
.diary-entry__text h4 {
margin: var(--space-md) 0 var(--space-xs);
font-family: var(--font-display);
font-weight: 400;
letter-spacing: 0.02em;
color: var(--brass-light);
}
.diary-entry__text h3 { font-size: 1rem; }
.diary-entry__text h4 { font-size: 0.92rem; }
.diary-entry__text ul {
margin: 0 0 var(--space-sm);
padding-left: 1.2em;
}
.diary-entry__text li { margin-bottom: 4px; }
.diary-entry__text li::marker { color: var(--brass); }
.diary-entry__text strong { color: var(--accent-gold); font-weight: 600; }
.diary-entry__text em { color: var(--text-secondary); }
.diary-entry__text a {
color: var(--accent-gold);
text-decoration: underline;
text-decoration-color: rgba(212, 165, 63, 0.4);
text-underline-offset: 2px;
}
.diary-entry__text a:hover { text-decoration-color: var(--accent-gold); }
.diary-entry__foot {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
padding: 6px var(--space-lg) 8px;
border-top: 1px solid var(--border-subtle);
background: rgba(8, 14, 24, 0.35);
}
.diary-entry__author {
font-family: var(--font-display);
font-size: 0.88rem;
color: var(--text-secondary);
}
.diary-entry__reactions {
display: inline-flex;
gap: 6px;
}
.diary-react {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 9px 3px 4px;
background: rgba(8, 14, 24, 0.45);
border: 1px solid var(--border-subtle);
border-radius: 999px;
color: var(--text-secondary);
cursor: pointer;
transition: border-color 0.2s var(--ease-out),
background 0.2s var(--ease-out),
color 0.2s var(--ease-out);
}
.diary-react img {
width: 26px;
height: 26px;
opacity: 0.72;
transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.diary-react:hover,
.diary-react:focus-visible {
border-color: var(--accent-brass);
color: var(--text-primary);
}
.diary-react:hover img { opacity: 1; }
.diary-react:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
}
.diary-react[aria-pressed="true"] {
border-color: var(--accent-brass);
background: rgba(212, 165, 63, 0.12);
color: var(--accent-gold);
}
.diary-react[aria-pressed="true"] img { opacity: 1; }
.diary-react--heart[aria-pressed="true"] {
border-color: rgba(220, 70, 60, 0.7);
background: rgba(220, 70, 60, 0.12);
color: #f0a090;
}
.diary-react__count {
font-family: var(--font-mono);
font-size: 0.72rem;
font-variant-numeric: tabular-nums;
min-width: 1.2em;
text-align: left;
}
@keyframes diary-bump {
0%   { transform: scale(1); }
40%  { transform: scale(1.25); }
100% { transform: scale(1); }
}
.diary-react.is-bump img { animation: diary-bump 0.3s var(--ease-out); }
.diary-feed__status {
margin-top: var(--space-md);
text-align: center;
}
.diary-feed__more {
display: flex;
justify-content: center;
margin-top: var(--space-lg);
}
@media (max-width: 480px) {
.diary-entry__head { padding: var(--space-sm) var(--space-md); }
.diary-entry__body { padding: 0 var(--space-md) var(--space-sm); }
.diary-entry__foot { padding: 6px var(--space-md) 8px; }
.diary-entry__head::after { right: var(--space-sm); }
.diary-react img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
.diary-react.is-bump img { animation: none; }
.diary-entry__head::after { transition: none; }
}

/* ── css/leaderboard.css ── */
.modal.leaderboard-modal {
position: relative;
display: flex;
flex-direction: column;
max-width: 560px;
max-height: calc(100vh - 2 * var(--space-lg));
padding: var(--space-xl);
}
.leaderboard-modal__close {
position: absolute;
top: 16px;
right: 16px;
font-size: 1.4rem;
}
.leaderboard-modal .auth-modal__head { padding-right: 44px; }
.leaderboard-modal__title { margin: var(--space-sm) 0 var(--space-xs); }
.leaderboard-modal__sub {
margin: 0 0 var(--space-md);
font-size: 0.86rem;
color: var(--text-secondary);
}
.leaderboard-modal__tabs { margin-bottom: var(--space-sm); }
.leaderboard-list {
display: flex;
flex-direction: column;
gap: 2px;
min-height: 0;
margin: 0;
padding: 0 var(--space-xs) 0 0;
list-style: none;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--brass) transparent;
}
.leaderboard-list .leaderboard-row {
padding: 5px var(--space-xs);
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.leaderboard-list .leaderboard-row.is-me {
background: rgba(212, 165, 63, 0.08);
border-radius: var(--radius-sm);
}
.leaderboard-modal__me {
margin: var(--space-md) 0 0;
font-size: 0.9rem;
color: var(--text-primary);
}
.leaderboard-modal__me:empty { display: none; }
.leaderboard-modal__hint {
margin: var(--space-xs) 0 0;
font-size: 0.76rem;
color: var(--text-muted);
}
#btn-leaderboard-register {
align-self: flex-start;
margin-top: var(--space-md);
}
#btn-leaderboard-register[hidden] { display: none; }
@media (max-width: 640px) {
.modal-overlay.leaderboard-overlay { padding: var(--space-sm); }
.modal.leaderboard-modal {
max-height: calc(100vh - 2 * var(--space-sm));
padding: var(--space-lg) var(--space-md);
}
}

