/* ── css/main.css ── */
@font-face {
font-family: 'Special Elite';
src: url('../assets/fonts/special-elite-400.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Special Elite';
src: url('../assets/fonts/special-elite-400-ext.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Outfit';
src: url('../assets/fonts/outfit-var.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Outfit';
src: url('../assets/fonts/outfit-var-ext.woff2') format('woff2');
font-weight: 100 900;
font-style: normal;
font-display: swap;
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('../assets/fonts/jetbrains-mono-var.woff2') format('woff2');
font-weight: 100 800;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('../assets/fonts/jetbrains-mono-var-ext.woff2') format('woff2');
font-weight: 100 800;
font-style: normal;
font-display: swap;
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Caveat';
src: url('../assets/fonts/caveat-var.woff2') format('woff2');
font-weight: 400 700;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Caveat';
src: url('../assets/fonts/caveat-var-ext.woff2') format('woff2');
font-weight: 400 700;
font-style: normal;
font-display: swap;
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
--ocean-900: #070d17;
--ocean-800: #0c1522;
--ocean-700: #121f31;
--ocean-600: #1b2c43;
--ocean-500: #253a56;
--ocean-400: #34506f;
--ocean-300: #4d6d92;
--ocean-200: #7593b8;
--ocean-100: #aec4dd;
--accent-brass: #d4a53f;
--accent-brass-glow: rgba(212, 165, 63, 0.3);
--accent-gold: #f0c368;
--accent-gold-glow: rgba(240, 195, 104, 0.3);
--accent-steel: #5b8fc7;
--accent-steel-glow: rgba(91, 143, 199, 0.3);
--accent-red: #d96852;
--accent-red-glow: rgba(217, 104, 82, 0.3);
--accent-green: #5a9e6f;
--accent-green-glow: rgba(90, 158, 111, 0.3);
--accent-orange: #d2853a;
--surface-glass: rgba(12, 21, 34, 0.75);
--surface-card: rgba(18, 31, 49, 0.88);
--surface-elevated: rgba(27, 44, 67, 0.65);
--surface-overlay: rgba(7, 13, 23, 0.92);
--border-subtle: rgba(140, 175, 215, 0.16);
--border-glow: rgba(212, 165, 63, 0.4);
--text-primary: #e8eef7;
--text-secondary: #9fb3cc;
--text-muted: #6b7f99;
--space-xs: 4px;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 24px;
--space-xl: 32px;
--space-2xl: 48px;
--space-3xl: 64px;
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 14px;
--radius-xl: 20px;
--radius-full: 9999px;
--brass-dark: #6b4f17;
--brass: #a67c26;
--brass-light: #d4a53f;
--brass-shine: #f7e2a8;
--brass-plate: linear-gradient(145deg,
var(--brass-dark) 0%,
var(--brass) 28%,
var(--brass-shine) 48%,
var(--brass-light) 62%,
var(--brass) 82%,
var(--brass-dark) 100%);
--brass-edge: linear-gradient(to right,
transparent,
var(--brass) 20%,
var(--brass-shine) 50%,
var(--brass) 80%,
transparent);
--brass-fill: linear-gradient(90deg,
var(--brass-dark),
var(--brass) 35%,
var(--brass-light) 70%,
var(--brass-shine));
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
--shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
--shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
--shadow-glow-cyan: 0 0 20px rgba(201, 162, 39, 0.18), 0 0 60px rgba(201, 162, 39, 0.08);
--shadow-glow-gold: 0 0 20px rgba(232, 182, 79, 0.2), 0 0 60px rgba(232, 182, 79, 0.1);
--ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
--font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
--font-display: 'Special Elite', 'Courier New', monospace;
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
--font-hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
}
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
}
body {
font-family: var(--font-main);
background: var(--ocean-900);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.announcement {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 110;
display: flex;
align-items: center;
gap: var(--space-sm);
padding: 6px var(--space-sm) 6px var(--space-xl);
font-size: 0.86rem;
line-height: 1.45;
color: var(--text-primary);
background:
linear-gradient(to right, transparent, var(--tone-soft) 30%, var(--tone-soft) 70%, transparent),
rgba(7, 13, 23, 0.95);
border-bottom: 1px solid var(--tone);
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.announcement[hidden] { display: none; }
.announcement__text {
flex: 1;
margin: 0;
text-align: center;
}
.announcement__text::before {
content: '';
display: inline-block;
width: 8px;
height: 8px;
margin-right: 10px;
border-radius: 50%;
vertical-align: 1px;
background: var(--tone);
box-shadow: 0 0 8px var(--tone);
}
.announcement--green  { --tone: #6fe08c;            --tone-soft: rgba(111, 224, 140, 0.16); }
.announcement--yellow { --tone: var(--accent-brass); --tone-soft: rgba(212, 165, 63, 0.18); }
.announcement--red    { --tone: var(--accent-red);   --tone-soft: rgba(217, 104, 82, 0.22); }
.announcement__link {
color: var(--tone);
font-weight: 600;
}
.announcement__close {
flex: none;
width: 32px;
height: 32px;
border: 0;
border-radius: 50%;
background: transparent;
color: var(--text-secondary);
font-size: 0.95rem;
cursor: pointer;
}
.announcement__close:hover,
.announcement__close:focus-visible {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.08);
}
#app {
position: relative;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.screen {
display: none;
flex-direction: column;
align-items: center;
min-height: 100vh;
padding: var(--space-lg);
position: relative;
z-index: 1;
}
.screen.active {
display: flex;
animation: screenFadeIn 0.5s var(--ease-out);
}
@keyframes screenFadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.title-xl {
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 900;
letter-spacing: -0.02em;
line-height: 1.1;
}
.title-lg {
font-family: var(--font-display);
font-size: clamp(1.7rem, 3.6vw, 2.6rem);
font-weight: 400;
letter-spacing: 0.01em;
line-height: 1.25;
}
.title-md {
font-family: var(--font-display);
font-size: clamp(1.15rem, 2.3vw, 1.5rem);
font-weight: 400;
line-height: 1.35;
}
.title-sm {
font-size: 1rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-secondary);
}
.text-gradient {
background: linear-gradient(135deg, var(--accent-brass), var(--accent-gold));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.text-glow {
text-shadow: 0 0 20px var(--accent-brass-glow), 0 0 40px var(--accent-brass-glow);
}
.card {
background: var(--surface-card);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: var(--space-xl);
box-shadow: var(--shadow-md);
transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
position: relative;
isolation: isolate;
}
.card::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background-image:
radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
background-size: 3px 3px, 5px 5px;
background-position: 0 0, 1px 2px;
mix-blend-mode: overlay;
opacity: 0.4;
pointer-events: none;
z-index: -1;
}
.card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.card--glass {
background: var(--surface-glass);
border-color: var(--border-glow);
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
padding: 14px 28px;
font-family: var(--font-main);
font-size: 1rem;
font-weight: 600;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: all 0.3s var(--ease-out);
text-decoration: none;
white-space: nowrap;
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
transition: left 0.5s;
}
.btn:hover::before {
left: 100%;
}
.btn:active {
transform: scale(0.97);
}
.btn--primary {
background: linear-gradient(135deg, #7a6320, var(--accent-brass));
color: var(--ocean-900);
box-shadow: 0 4px 15px rgba(201, 162, 39, 0.35);
}
.btn--primary:hover {
box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
transform: translateY(-2px);
}
.btn--secondary {
background: var(--surface-elevated);
color: var(--text-primary);
border: 1px solid var(--border-subtle);
}
.btn--secondary:hover {
border-color: var(--accent-brass);
box-shadow: var(--shadow-glow-cyan);
}
.btn--gold {
background: linear-gradient(135deg, #9c6f1f, var(--accent-gold));
color: var(--ocean-900);
box-shadow: 0 4px 15px rgba(232, 182, 79, 0.3);
}
.btn--gold:hover {
box-shadow: var(--shadow-glow-gold);
transform: translateY(-2px);
}
.btn--private {
background: linear-gradient(135deg, #3d3220, #5c4a30);
color: var(--text-primary);
box-shadow: 0 4px 15px rgba(92, 74, 48, 0.35);
}
.btn--private:hover {
box-shadow: 0 6px 25px rgba(92, 74, 48, 0.5);
transform: translateY(-2px);
}
.btn--danger {
background: linear-gradient(135deg, #7a2c1f, var(--accent-red));
color: var(--text-primary);
}
.btn--ghost {
background: transparent;
color: var(--text-secondary);
padding: 10px 16px;
}
.btn--ghost:hover {
color: var(--text-primary);
background: var(--surface-elevated);
}
.btn--lg {
padding: 18px 40px;
font-size: 1.15rem;
border-radius: var(--radius-lg);
}
.btn--full {
width: 100%;
}
.btn--icon {
width: 44px;
height: 44px;
padding: 0;
border-radius: var(--radius-md);
font-size: 1.2rem;
}
.btn:disabled {
opacity: 0.4;
cursor: not-allowed;
transform: none !important;
}
.input-group {
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.input-group label {
font-size: 0.85rem;
font-weight: 500;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.input {
padding: 14px 18px;
background: var(--ocean-800);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
color: var(--text-primary);
font-family: var(--font-main);
font-size: 1rem;
transition: all 0.3s var(--ease-out);
outline: none;
}
.input:focus {
border-color: var(--accent-brass);
box-shadow: 0 0 0 3px var(--accent-brass-glow);
}
.input::placeholder {
color: var(--text-muted);
}
.input--code {
font-family: var(--font-mono);
font-size: 1.5rem;
font-weight: 600;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.3em;
padding: 18px;
}
.name-field {
position: relative;
display: flex;
}
.name-field .input {
flex: 1;
padding-right: 46px;
}
.name-field__dice {
position: absolute;
top: 50%;
right: 6px;
transform: translateY(-50%);
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
padding: 0;
background: transparent;
border: none;
cursor: pointer;
opacity: 0.85;
transition: opacity 0.25s var(--ease-out),
transform 0.45s var(--ease-out);
}
.name-field__dice img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}
.name-field__dice:hover,
.name-field__dice:focus-visible {
opacity: 1;
outline: none;
}
.name-field__dice:active {
transform: translateY(-50%) rotate(360deg);
}
@media (prefers-reduced-motion: reduce) {
.name-field__dice { transition: opacity 0.25s var(--ease-out); }
.name-field__dice:active { transform: translateY(-50%); }
}
.badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
font-size: 0.75rem;
font-weight: 600;
border-radius: var(--radius-full);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.badge--host {
background: var(--accent-gold-glow);
color: var(--accent-gold);
border: 1px solid var(--accent-gold);
}
.badge--ready {
background: var(--accent-green-glow);
color: var(--accent-green);
}
.badge--waiting {
background: var(--surface-elevated);
color: var(--text-secondary);
}
.badge--registered {
background: rgba(120, 100, 255, 0.2);
color: #a78bfa;
border: 1px solid rgba(120, 100, 255, 0.4);
}
.player-list {
display: flex;
flex-direction: column;
gap: var(--space-sm);
width: 100%;
}
.player-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-md);
background: var(--surface-elevated);
border-radius: var(--radius-md);
border: 1px solid var(--border-subtle);
transition: all 0.3s var(--ease-out);
}
.player-item--ready {
border-color: var(--accent-green);
box-shadow: inset 0 0 20px var(--accent-green-glow);
}
.player-info {
display: flex;
align-items: center;
gap: var(--space-md);
}
.player-avatar {
width: 40px;
height: 40px;
border-radius: var(--radius-full);
background: linear-gradient(135deg, var(--ocean-400), var(--accent-brass));
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 1rem;
}
.lobby-code {
font-family: var(--font-mono);
font-size: clamp(2rem, 5vw, 3.5rem);
font-weight: 700;
letter-spacing: 0.4em;
color: var(--accent-brass);
text-shadow: 0 0 30px var(--accent-brass-glow);
padding: var(--space-lg) var(--space-xl);
background: var(--surface-glass);
border: 2px solid var(--border-glow);
border-radius: var(--radius-lg);
cursor: pointer;
transition: all 0.3s var(--ease-out);
text-align: center;
}
.lobby-code:hover {
background: rgba(0, 229, 255, 0.05);
box-shadow: var(--shadow-glow-cyan);
}
.lobby-code:active {
transform: scale(0.98);
}
.timer {
font-family: var(--font-mono);
font-size: 1.5rem;
font-weight: 600;
color: var(--accent-brass);
display: flex;
align-items: center;
gap: var(--space-sm);
}
.timer[hidden] { display: none; }
.timer__icon {
width: 1.25em;
height: 1.25em;
object-fit: contain;
}
.timer--warning {
color: var(--accent-orange);
animation: timerPulse 1s ease-in-out infinite;
}
.timer--danger {
color: var(--accent-red);
animation: timerPulse 0.5s ease-in-out infinite;
}
@keyframes timerPulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.turn-indicator {
padding: var(--space-md) var(--space-xl);
border-radius: var(--radius-lg);
font-weight: 700;
font-size: 1.1rem;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.turn-indicator--active {
background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 229, 255, 0.15));
color: var(--accent-green);
border: 1px solid var(--accent-green);
animation: turnGlow 2s ease-in-out infinite;
}
.turn-indicator--waiting {
background: var(--surface-elevated);
color: var(--text-secondary);
border: 1px solid var(--border-subtle);
}
@keyframes turnGlow {
0%, 100% { box-shadow: 0 0 10px var(--accent-green-glow); }
50% { box-shadow: 0 0 30px var(--accent-green-glow), 0 0 60px var(--accent-green-glow); }
}
.toast-container {
position: fixed;
top: var(--space-lg);
right: var(--space-lg);
z-index: 1000;
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.toast {
padding: var(--space-md) var(--space-lg);
background:
radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 3px 3px,
radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px) 1px 2px / 5px 5px,
var(--surface-card);
backdrop-filter: blur(20px);
border-radius: var(--radius-md);
border-left: 4px solid var(--accent-brass);
box-shadow: var(--shadow-lg);
animation: toastSlideIn 0.4s var(--ease-spring);
max-width: 380px;
font-size: 0.9rem;
}
.toast--error { border-left-color: var(--accent-red); }
.toast--success { border-left-color: var(--accent-green); }
.toast--warning { border-left-color: var(--accent-orange); }
@keyframes toastSlideIn {
from { opacity: 0; transform: translateX(100px); }
to { opacity: 1; transform: translateX(0); }
}
.toast--exit {
animation: toastSlideOut 0.3s var(--ease-out) forwards;
}
@keyframes toastSlideOut {
to { opacity: 0; transform: translateX(100px); }
}
.modal-overlay {
position: fixed;
inset: 0;
background: var(--surface-overlay);
backdrop-filter: blur(8px);
z-index: 900;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-lg);
animation: fadeIn 0.3s var(--ease-out);
}
.modal-overlay--stacked {
z-index: 940;
background: rgba(4, 8, 15, 0.62);
backdrop-filter: none;
}
.modal {
background:
radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 3px 3px,
radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px) 1px 2px / 5px 5px,
var(--ocean-700);
border: 1px solid var(--border-glow);
border-radius: var(--radius-xl);
padding: var(--space-2xl);
max-width: 480px;
width: 100%;
box-shadow: var(--shadow-lg);
animation: modalPop 0.4s var(--ease-spring);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes modalPop {
from { opacity: 0; transform: scale(0.9) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-title {
font-family: var(--font-display);
font-size: 1.4rem;
font-weight: 400;
margin-bottom: var(--space-md);
}
.modal-actions {
display: flex;
gap: var(--space-md);
margin-top: var(--space-xl);
}
.modal-overlay.confirm-overlay {
z-index: 980;
background: rgba(4, 8, 15, 0.62);
backdrop-filter: none;
}
.confirm-modal {
max-width: 430px;
}
.confirm-modal__title {
margin-bottom: var(--space-sm);
}
.confirm-modal__text {
color: var(--text-secondary);
line-height: 1.55;
}
.confirm-modal__actions {
justify-content: flex-end;
}
.confirm-modal__actions .opponent-btn-plate {
min-width: 0;
flex: 1 1 0;
}
@media (max-width: 768px) {
.confirm-modal__actions #btn-confirm-ok { order: -1; }
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--border-subtle);
border-top-color: var(--accent-brass);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.build-info {
position: fixed;
bottom: var(--space-sm);
right: var(--space-md);
font-size: 0.7rem;
color: var(--text-muted);
font-family: var(--font-mono);
opacity: 0.5;
z-index: 5;
}
@media (max-width: 768px) {
.screen {
padding: var(--space-md);
}
.card {
padding: var(--space-lg);
}
.btn--lg {
padding: 16px 28px;
font-size: 1rem;
}
.modal {
padding: var(--space-xl);
}
.modal-actions {
flex-direction: column;
}
.toast-container {
left: var(--space-md);
right: var(--space-md);
}
.toast {
max-width: 100%;
}
}
@media (max-width: 480px) {
:root {
--space-lg: 16px;
--space-xl: 24px;
}
}
:root {
--accent-purple: #9a5fc9;
--accent-purple-glow: rgba(154, 95, 201, 0.35);
}
#screen-opponent {
background:
linear-gradient(rgba(9, 16, 27, .42) 0%, rgba(9, 16, 27, .18) 25%, rgba(9, 16, 27, .18) 75%, rgba(7, 13, 23, .6) 100%),
url('../media/backgrounds/opponent-bg.jpg') center 30% / cover fixed no-repeat;
background-color: var(--ocean-900);
gap: var(--space-lg);
}
.opponent-header {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
text-align: center;
}
.opponent-header__kicker {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--brass-light);
}
.opponent-header__kicker::before,
.opponent-header__kicker::after {
content: '';
width: 42px;
height: 1px;
background: linear-gradient(to right, transparent, var(--brass));
}
.opponent-header__kicker::after {
background: linear-gradient(to left, transparent, var(--brass));
}
.opponent-header .title-lg {
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}
.opponent-header__sub {
max-width: 52ch;
font-size: 0.85rem;
color: var(--text-secondary);
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.opponent-roster {
display: flex;
justify-content: center;
gap: var(--space-md);
width: 100%;
max-width: 1180px;
padding: var(--space-xs) 0 34px;
flex-shrink: 0;
}
.opponent-roster-tile {
position: relative;
flex: 0 1 clamp(120px, 17vh, 180px);
min-width: 0;
display: flex;
flex-direction: column;
padding: 0;
background: none;
border: none;
font: inherit;
color: inherit;
cursor: pointer;
scroll-snap-align: center;
--accent: var(--accent-brass);
transition: transform .3s var(--ease-out), filter .3s var(--ease-out);
}
.opponent-roster-tile__frame {
position: relative;
aspect-ratio: 3/4;
overflow: hidden;
border-radius: var(--radius-sm);
background: var(--ocean-800);
border: 1px solid var(--border-subtle);
box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.opponent-roster-tile__frame img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 20%;
display: block;
filter: saturate(.55) brightness(.62);
transition: filter .35s var(--ease-out), transform .5s var(--ease-out);
}
.opponent-roster-tile__frame::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(to bottom, transparent 55%, rgba(7, 13, 23, .85) 100%);
pointer-events: none;
}
.opponent-roster-tile__name {
margin-top: var(--space-sm);
font-family: var(--font-display);
font-size: .78rem;
line-height: 1.3;
letter-spacing: .12em;
text-transform: uppercase;
text-align: center;
color: var(--text-secondary);
text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
transition: color .3s var(--ease-out);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.opponent-roster-tile:hover .opponent-roster-tile__frame img,
.opponent-roster-tile:focus-visible .opponent-roster-tile__frame img {
filter: saturate(.85) brightness(.85);
transform: scale(1.04);
}
.opponent-roster-tile:hover { transform: translateY(-3px); }
.opponent-roster-tile:focus-visible { outline: none; }
.opponent-roster-tile:focus-visible .opponent-roster-tile__frame {
outline: 2px solid var(--accent-gold);
outline-offset: 3px;
}
.opponent-roster-tile[aria-pressed="true"] .opponent-roster-tile__frame {
border-color: var(--accent);
box-shadow: 0 8px 24px rgba(0, 0, 0, .6), 0 0 22px var(--accent-glow);
}
.opponent-roster-tile[aria-pressed="true"] .opponent-roster-tile__frame img {
filter: none;
}
.opponent-roster-tile[aria-pressed="true"] .opponent-roster-tile__name {
color: var(--accent-gold);
}
.opponent-roster-tile[aria-pressed="true"]::after {
content: '';
position: absolute;
left: 50%;
top: calc(100% + 6px);
width: 70%;
aspect-ratio: 256/122;
transform: translateX(-50%);
background: url('../media/ui/battle/marker-arrow.png') center / contain no-repeat;
filter: drop-shadow(0 2px 8px var(--accent-glow));
pointer-events: none;
}
.opponent-roster-tile__badge {
position: absolute;
top: 0;
right: 0;
width: 32%;
max-width: 34px;
aspect-ratio: 1;
object-fit: contain;
transform: translate(38%, -38%);
z-index: 3;
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));
pointer-events: none;
}
.opponent-roster-tile--locked .opponent-roster-tile__frame img {
filter: grayscale(1) brightness(.5);
}
.opponent-roster-tile--locked:hover .opponent-roster-tile__frame img,
.opponent-roster-tile--locked:focus-visible .opponent-roster-tile__frame img,
.opponent-roster-tile--locked[aria-pressed="true"] .opponent-roster-tile__frame img {
filter: grayscale(1) brightness(.72);
}
.opponent-roster-tile--locked[aria-pressed="true"] .opponent-roster-tile__name {
color: var(--text-secondary);
}
.opponent-cta {
margin: var(--space-2xl) auto var(--space-2xl);
max-width: 52ch;
font-size: 1rem;
line-height: 1.6;
color: var(--accent-gold);
text-align: center;
text-shadow: 0 1px 10px rgba(0, 0, 0, .85);
animation: opponentCtaBreathe 3.2s ease-in-out infinite;
}
@keyframes opponentCtaBreathe {
0%, 100% { opacity: .72; }
50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.opponent-cta { animation: none; opacity: 1; }
}
.opponent-dossier--empty { display: none; }
.opponent-dossier {
position: relative;
width: 100%;
max-width: 1180px;
padding: 26px 30px;
background:
linear-gradient(rgba(10, 18, 30, .90), rgba(8, 14, 24, .94)),
url('../media/ui/bg-blueprint.jpg') center / cover no-repeat;
filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .6));
isolation: isolate;
}
.opponent-dossier::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;
}
.opponent-dossier__inner {
display: grid;
grid-template-columns: clamp(230px, 29vh, 340px) minmax(0, 1fr);
gap: var(--space-xl);
align-items: stretch;
position: relative;
z-index: 2;
}
.opponent-dossier__portrait {
position: absolute;
left: 0;
bottom: 0;
top: -7px;
width: clamp(260px, 34vh, 400px);
z-index: 4;
pointer-events: none;
}
.opponent-dossier__portrait--body {
z-index: 1;
clip-path: polygon(
0 0,
100% 0,
100% 100%,
38px 100%,
38px calc(100% - 14px),
31px calc(100% - 18px),
22px calc(100% - 29px),
16px calc(100% - 31px),
16px 0
);
}
.opponent-dossier__portrait--head {
z-index: 4;
clip-path: inset(0 0 calc(100% - 21px) 0);
}
.opponent-dossier__portrait img {
display: block;
width: auto;
height: 100%;
max-width: none;
object-fit: contain;
object-position: left bottom;
filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .75));
}
.opponent-dossier__portrait-img--framed {
aspect-ratio: 2/3;
object-fit: cover;
object-position: 50% 18%;
transform: none;
border-radius: var(--radius-sm);
box-shadow: inset 0 0 0 1px var(--border-subtle), 0 8px 22px rgba(0, 0, 0, .5);
}
.opponent-dossier__body {
display: flex;
flex-direction: column;
gap: var(--space-md);
min-width: 0;
grid-column: 2;
}
.opponent-dossier__name {
margin: 0;
font-family: var(--font-display);
font-size: clamp(1.5rem, 3.4vw, 2.3rem);
font-weight: 400;
letter-spacing: .06em;
line-height: 1.1;
color: var(--accent-gold);
text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}
.opponent-dossier__rank {
font-family: var(--font-display);
font-size: .76rem;
letter-spacing: .18em;
text-transform: uppercase;
color: var(--accent);
}
.opponent-dossier__quote {
position: relative;
margin: 0;
padding-left: var(--space-md);
font-style: italic;
font-size: .94rem;
line-height: 1.5;
color: var(--accent);
}
.opponent-dossier__quote::before {
content: '';
position: absolute;
left: 0;
top: 2px;
bottom: 2px;
width: 2px;
border-radius: 2px;
background: linear-gradient(to bottom, var(--accent), transparent);
}
.opponent-dossier__text {
margin: 0;
font-size: .9rem;
line-height: 1.6;
color: var(--text-secondary);
min-height: calc(2 * 1.6em);
}
.opponent-dossier__head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: var(--space-md);
flex-wrap: wrap;
padding-bottom: var(--space-sm);
border-bottom: 1px solid var(--border-subtle);
}
.opponent-dossier__ident { min-width: 0; }
.opponent-dossier__cols {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
gap: var(--space-lg);
align-items: start;
}
.opponent-dossier__lock {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
border: 1px solid rgba(212, 165, 63, .38);
border-radius: var(--radius-sm);
background: rgba(166, 124, 38, .12);
}
.opponent-dossier__lock[hidden] { display: none; }
.opponent-dossier__lock-icon {
width: 30px;
height: 30px;
flex: 0 0 auto;
object-fit: contain;
}
.opponent-dossier__lock-text {
margin: 0;
font-size: .82rem;
line-height: 1.5;
color: var(--text-secondary);
}
.opponent-dossier__lock-text strong { color: var(--accent-gold); }
.opponent-dossier__difficulty {
position: absolute;
top: -1px;
right: -2px;
z-index: 5;
width: 132px;
aspect-ratio: 400/394;
background: url('../media/ui/frame/banner-corner.png') top right / 100% auto no-repeat;
filter: drop-shadow(0 3px 9px rgba(0, 0, 0, .55));
pointer-events: none;
display: block;
}
.opponent-dossier__difficulty-label { display: none; }
.opponent-dossier__lamp { display: none; }
.opponent-dossier__difficulty-value {
position: absolute;
top: 32%;
right: -14%;
width: 96%;
text-align: center;
transform: rotate(45deg);
transform-origin: center;
font-family: var(--font-display);
font-size: 1.1rem;
letter-spacing: .1em;
text-transform: uppercase;
line-height: 1;
color: var(--difficulty-color, var(--accent-gold));
text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 10px var(--difficulty-glow, transparent);
}
.opponent-dossier__traits {
display: flex;
flex-direction: column;
gap: var(--space-sm);
margin-top: auto;
}
.opponent-trait {
display: grid;
grid-template-columns: auto minmax(110px, 150px) minmax(0, 1fr);
align-items: center;
gap: var(--space-sm);
max-width: 560px;
}
.opponent-trait__icon {
width: 18px;
height: 18px;
object-fit: contain;
opacity: .85;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}
.opponent-trait__label {
font-family: var(--font-display);
font-size: .72rem;
line-height: 1.3;
letter-spacing: .13em;
text-transform: uppercase;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.opponent-trait__meter {
display: flex;
gap: 3px;
}
.opponent-trait__pip {
flex: 1;
height: 12px;
border-radius: 1px;
background: var(--ocean-600);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45);
transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.opponent-trait__pip--on {
background: linear-gradient(to bottom,
color-mix(in srgb, var(--accent) 70%, white),
var(--accent));
box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.opponent-actions {
display: flex;
justify-content: center;
align-items: center;
gap: var(--space-lg);
width: 100%;
max-width: 1180px;
flex-shrink: 0;
flex-wrap: wrap;
}
.opponent-btn-plate {
min-width: 210px;
height: 66px;
padding: 5px var(--space-md) 0;
line-height: 1;
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-display);
font-size: .88rem;
letter-spacing: .14em;
text-transform: uppercase;
color: #f3dfae;
text-shadow:
0 -1px 1px rgba(0, 0, 0, .85),
0 1px 0 rgba(255, 241, 199, .5);
transition: filter .2s var(--ease-out), transform .15s var(--ease-out);
}
.opponent-btn-plate:hover { filter: brightness(1.15); transform: translateY(-2px); }
.opponent-btn-plate:active { transform: translateY(0); filter: brightness(.95); }
.opponent-btn-plate:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
.opponent-btn-plate:disabled {
filter: grayscale(.7) brightness(.6);
opacity: .55;
cursor: default;
transform: none;
}
.opponent-btn-plate:disabled:hover  { filter: grayscale(.7) brightness(.6); transform: none; }
.opponent-btn-plate:disabled:active { transform: none; }
.opponent-btn-plate--go {
position: relative;
isolation: isolate;
filter: drop-shadow(0 0 14px var(--accent-glow, transparent));
}
.opponent-btn-plate--go::before {
content: '';
position: absolute;
inset: -13px -26px;
z-index: -1;
background: var(--accent, transparent);
opacity: .42;
mix-blend-mode: color;
-webkit-mask: url('../media/ui/battle/plate-btn.png') 0 0 / 100% 100%;
mask: url('../media/ui/battle/plate-btn.png') 0 0 / 100% 100%;
pointer-events: none;
}
.opponent-btn-plate--locked::before { opacity: 0; }
@keyframes opponent-dossier-swap {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.opponent-dossier--swap .opponent-dossier__inner {
animation: opponent-dossier-swap .32s var(--ease-out);
}
@media (max-width: 900px) {
.opponent-dossier__inner {
grid-template-columns: minmax(0, 1fr);
gap: var(--space-lg);
}
.opponent-dossier__body { grid-column: 1; }
.opponent-dossier__portrait {
width: min(46%, 220px);
opacity: .28;
}
}
@media (max-width: 760px) {
#screen-opponent { padding-inline: var(--space-sm); }
.opponent-roster {
justify-content: flex-start;
overflow-x: auto;
scroll-snap-type: x mandatory;
overscroll-behavior-x: contain;
padding-inline: var(--space-sm);
scrollbar-width: thin;
scrollbar-color: var(--border-subtle) transparent;
}
.opponent-roster-tile { flex: 0 0 128px; }
.opponent-roster-tile__badge { max-width: 26px; }
.opponent-dossier__lock { padding: var(--space-sm); }
.opponent-dossier__lock-icon { width: 24px; height: 24px; }
.opponent-actions { flex-direction: column; align-items: stretch; }
.opponent-btn-plate { width: 100%; }
}
.opponent-roster::-webkit-scrollbar { height: 6px; }
.opponent-roster::-webkit-scrollbar-track { background: transparent; }
.opponent-roster::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }
.opponent-roster::-webkit-scrollbar-thumb:hover { background: var(--accent); }
@media (max-height: 820px) {
#screen-opponent { padding-block: var(--space-md); gap: var(--space-md); }
.opponent-header { gap: 4px; }
.opponent-header .title-lg { font-size: clamp(1.5rem, 3vw, 2rem); }
.opponent-header__sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.opponent-roster-tile,
.opponent-roster-tile__frame img,
.opponent-trait__pip {
transition: none;
}
.opponent-roster-tile:hover { transform: none; }
.opponent-dossier--swap .opponent-dossier__inner { animation: none; }
}

/* ── css/water.css ── */
.ocean-bg {
position: fixed;
inset: 0;
z-index: 0;
overflow: hidden;
background: linear-gradient(180deg,
#020c1b 0%,
#0a1628 30%,
#0d2137 60%,
#112d4e 100%
);
}
.game-grid.grid--water {
isolation: isolate;
background: linear-gradient(168deg, #0a2b42 0%, #071d30 100%);
}
.water-surface {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
overflow: hidden;
border-radius: calc(var(--radius-md) - 2px);
}
.water-surface canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.grid--water .grid-cell {
z-index: 1;
}
.grid--water .grid-cell:not([class*="grid-cell--"]),
.grid--water .grid-cell.grid-cell--equator:not(.grid-cell--ship):not(.grid-cell--hit):not(.grid-cell--miss):not(.grid-cell--sunk),
.grid--water .grid-cell.grid-cell--waypoint:not(.grid-cell--ship):not(.grid-cell--hit):not(.grid-cell--miss):not(.grid-cell--sunk),
.grid--water .grid-cell.grid-cell--trail:not(.grid-cell--ship):not(.grid-cell--hit):not(.grid-cell--miss):not(.grid-cell--sunk),
.grid--water .grid-cell.grid-cell--harbor:not(.grid-cell--ship):not(.grid-cell--hit):not(.grid-cell--miss):not(.grid-cell--sunk),
.grid--water .grid-cell.grid-cell--port:not(.grid-cell--ship):not(.grid-cell--hit):not(.grid-cell--miss):not(.grid-cell--sunk),
.grid--water .grid-cell.grid-cell--course:not(.grid-cell--ship):not(.grid-cell--hit):not(.grid-cell--miss):not(.grid-cell--sunk) {
background: rgba(8, 26, 44, 0.18);
border-color: rgba(201, 162, 39, 0.07);
}
.grid--water .grid-cell:not([class*="grid-cell--"]):hover,
.grid--water .grid-cell.grid-cell--equator:not(.grid-cell--ship):not(.grid-cell--hit):not(.grid-cell--miss):not(.grid-cell--sunk):hover,
.grid--water .grid-cell.grid-cell--trail:not(.grid-cell--ship):not(.grid-cell--hit):not(.grid-cell--miss):not(.grid-cell--sunk):hover {
background: rgba(201, 162, 39, 0.1);
border-color: rgba(201, 162, 39, 0.3);
}
.grid--water .ship-sprite-wrap {
filter: drop-shadow(1px 1px 1px rgba(0, 6, 14, 0.75))
drop-shadow(4px 6px 5px rgba(2, 14, 26, 0.5))
drop-shadow(9px 13px 13px rgba(6, 28, 48, 0.32));
z-index: 2;
}

/* ── css/audio-ui.css ── */
.audio-menu {
position: fixed;
top: 16px;
right: 16px;
z-index: 100;
}
.audio-menu__toggle {
position: relative;
width: 44px;
height: 44px;
padding: 0;
border: none;
background: url('../media/icons/sound-settings.png') center / contain no-repeat;
cursor: pointer;
transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
opacity: 0.8;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
.audio-menu__toggle:hover,
.audio-menu__toggle:focus-visible,
.audio-menu.open .audio-menu__toggle {
opacity: 1;
transform: scale(1.06);
filter: drop-shadow(0 2px 10px rgba(212, 165, 63, 0.45));
outline: none;
}
.audio-menu__toggle--partial {
opacity: 0.45;
}
.audio-menu__toggle--partial::after {
content: '';
position: absolute;
top: 50%;
left: 8%;
width: 84%;
height: 2px;
background: var(--accent-red);
border-radius: 2px;
transform: rotate(-38deg);
transform-origin: center;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}
@media (prefers-reduced-motion: reduce) {
.audio-menu__toggle { transition: opacity 0.3s ease; }
.audio-menu__toggle:hover,
.audio-menu__toggle:focus-visible,
.audio-menu.open .audio-menu__toggle { transform: none; }
}
.audio-menu__panel {
position: absolute;
top: calc(100% + 10px);
right: 0;
min-width: 220px;
background: rgba(9, 17, 28, 0.94);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
padding: var(--space-sm);
display: flex;
flex-direction: column;
gap: 2px;
overflow: hidden;
opacity: 0;
transform: translateY(-6px);
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
}
.audio-menu__panel::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--brass-edge);
pointer-events: none;
}
.audio-menu.open .audio-menu__panel {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.audio-menu__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-md);
padding: 8px 10px;
border-radius: var(--radius-sm);
cursor: pointer;
user-select: none;
transition: background 0.2s ease;
}
.audio-menu__row:hover {
background: rgba(212, 165, 63, 0.1);
}
.audio-menu__label {
font-size: 0.9rem;
color: var(--text-primary);
}
.audio-switch {
position: relative;
width: 72px;
aspect-ratio: 564 / 192;
flex-shrink: 0;
}
.audio-switch input {
position: absolute;
inset: 0;
opacity: 0;
margin: 0;
cursor: pointer;
z-index: 1;
}
.audio-switch__track {
position: absolute;
inset: 0;
background-image: url('../media/ui/toggle/knob-left.png');
background-size: 100% 100%;
background-repeat: no-repeat;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5))
saturate(0.55) brightness(0.82);
transition: filter 0.2s ease;
}
.audio-switch input:checked + .audio-switch__track {
background-image: url('../media/ui/toggle/knob-right.png');
filter: drop-shadow(0 2px 8px rgba(212, 165, 63, 0.3))
sepia(0.7) saturate(2.6) hue-rotate(-12deg) brightness(1.12);
}
.audio-switch input:focus-visible + .audio-switch__track {
outline: 2px solid var(--brass-light);
outline-offset: 3px;
border-radius: var(--radius-full);
}
.audio-menu__volume {
padding: 0 10px 8px;
display: flex;
align-items: center;
gap: 8px;
}
.audio-menu__volume input[type="range"] {
flex: 1;
height: 28px;
cursor: pointer;
background: transparent;
appearance: none;
-webkit-appearance: none;
margin-block: 0;
margin-inline: calc(var(--thumb) / -2);
--fill: 0%;
--thumb: 26px;
--fill-x: calc(var(--thumb) / 2 + var(--fill) * (1 - var(--thumb) / 100%));
}
.audio-menu__volume input[type="range"]:focus-visible {
outline: 2px solid var(--brass-light);
outline-offset: 2px;
border-radius: var(--radius-full);
}
.audio-menu__volume input[type="range"]::-webkit-slider-runnable-track {
height: 6px;
border-radius: 999px;
background: linear-gradient(to right,
var(--brass) 0 var(--fill-x), var(--ocean-600) var(--fill-x) 100%);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
.audio-menu__volume input[type="range"]::-moz-range-track {
height: 6px;
border-radius: 999px;
background: var(--ocean-600);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
.audio-menu__volume input[type="range"]::-moz-range-progress {
height: 6px;
border-radius: 999px;
background: var(--brass);
}
.audio-menu__volume input[type="range"]::-webkit-slider-thumb {
appearance: none;
-webkit-appearance: none;
width: 26px;
height: 26px;
margin-top: -9px;
border: none;
background: url('../media/ui/frame/rivet-sm.png') center / contain no-repeat;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}
.audio-menu__volume input[type="range"]::-moz-range-thumb {
width: 26px;
height: 26px;
border: none;
background: url('../media/ui/frame/rivet-sm.png') center / contain no-repeat;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
transform: translateY(1px);
}
.audio-menu__volume-value {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--text-secondary);
min-width: 2.6em;
text-align: right;
}
.audio-menu__divider {
height: 1px;
background: var(--border-subtle);
margin: 4px 2px;
}
.lang-menu {
position: fixed;
top: 16px;
right: 16px;
z-index: 100;
}
.lang-menu:not([hidden]) ~ .audio-menu {
right: calc(16px + 44px + 10px);
}
.lang-menu__toggle {
position: relative;
display: block;
width: 44px;
height: 44px;
padding: 0;
border: none;
background: url('../media/icons/language.png') center / contain no-repeat;
cursor: pointer;
opacity: 0.8;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
.lang-menu__toggle:hover,
.lang-menu__toggle:focus-visible,
.lang-menu.open .lang-menu__toggle {
opacity: 1;
transform: scale(1.06);
filter: drop-shadow(0 2px 10px rgba(212, 165, 63, 0.45));
outline: none;
}
.lang-menu__code {
position: absolute;
left: 50%;
bottom: -5px;
transform: translateX(-50%);
padding: 1px 4px 0;
font-family: var(--font-display);
font-size: 0.56rem;
line-height: 1.25;
letter-spacing: 0.06em;
white-space: nowrap;
color: var(--accent-gold);
background: var(--ocean-900);
border: 1px solid rgba(212, 165, 63, 0.7);
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
pointer-events: none;
}
.lang-menu__code--long { font-size: 0.48rem; }
.lang-menu__panel {
position: absolute;
top: calc(100% + 12px);
right: 0;
min-width: 230px;
margin: 0;
padding: var(--space-sm);
list-style: none;
background: rgba(9, 17, 28, 0.94);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
display: flex;
flex-direction: column;
gap: 2px;
overflow: hidden;
opacity: 0;
transform: translateY(-6px);
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-menu__panel::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--brass-edge);
}
.lang-menu.open .lang-menu__panel {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.lang-menu__option {
display: grid;
grid-template-columns: 3.8em 1fr 1em;
align-items: center;
gap: var(--space-sm);
padding: 8px 10px;
border-radius: var(--radius-sm);
cursor: pointer;
user-select: none;
color: var(--text-primary);
transition: background 0.2s ease;
}
.lang-menu__option:hover,
.lang-menu__option:focus-visible {
background: rgba(212, 165, 63, 0.1);
outline: none;
}
.lang-menu__chip {
font-family: var(--font-display);
font-size: 0.78rem;
text-align: center;
padding: 2px 0;
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
}
.lang-menu__flag {
display: block;
width: 100%;
height: auto;
margin-block: -0.7em;
opacity: 0.75;
transition: opacity 0.2s ease, filter 0.2s ease;
}
.lang-menu__option:hover .lang-menu__flag,
.lang-menu__option:focus-visible .lang-menu__flag { opacity: 0.95; }
.lang-menu__option[aria-selected="true"] .lang-menu__flag {
opacity: 1;
filter: drop-shadow(0 0 5px rgba(212, 165, 63, 0.55));
}
.lang-menu__name { font-size: 0.9rem; }
.lang-menu__check {
width: 1em;
height: 1em;
color: var(--accent-brass);
visibility: hidden;
}
.lang-menu__option[aria-selected="true"] .lang-menu__chip {
border-color: rgba(212, 165, 63, 0.6);
color: var(--accent-gold);
}
.lang-menu__option[aria-selected="true"] .lang-menu__check { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
.lang-menu__toggle,
.lang-menu__panel { transition: opacity 0.2s ease; }
.lang-menu__toggle:hover,
.lang-menu__toggle:focus-visible,
.lang-menu.open .lang-menu__toggle { transform: none; }
}
.transmission {
--transmission-avatar-size: 76px;
position: fixed;
top: 16px;
left: 16px;
z-index: 95;
max-width: min(400px, calc(100vw - 96px));
display: flex;
align-items: center;
padding: 14px 16px 13px calc(var(--transmission-avatar-size) * 0.74);
margin-left: calc(var(--transmission-avatar-size) * 0.38);
background:
repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0px, transparent 1px, transparent 3px),
linear-gradient(160deg, rgba(28, 24, 18, 0.94), rgba(14, 16, 14, 0.94));
border: 1px solid rgba(120, 110, 85, 0.45);
border-left: 4px solid #8a7a4a;
border-radius: 3px 6px 4px 7px / 4px 5px 3px 6px;
box-shadow:
0 6px 18px rgba(0, 0, 0, 0.5),
inset 0 0 26px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(255, 255, 255, 0.04);
opacity: 0;
transform: translateX(-16px) rotate(-0.6deg);
pointer-events: none;
transition: opacity 0.15s steps(3, end), transform 0.15s steps(3, end);
}
.transmission::before {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background-image:
radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
radial-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px);
background-size: 3px 3px, 5px 5px;
background-position: 0 0, 1px 2px;
mix-blend-mode: overlay;
opacity: 0.5;
pointer-events: none;
}
.transmission--visible {
opacity: 1;
transform: translateX(0) rotate(-0.6deg);
animation: transmissionStatic 0.4s steps(2, end);
}
@keyframes transmissionStatic {
0%   { opacity: 0.2; }
15%  { opacity: 0.85; }
30%  { opacity: 0.35; }
45%  { opacity: 1; }
60%  { opacity: 0.6; }
100% { opacity: 1; }
}
.transmission__avatar {
position: absolute;
left: calc(var(--transmission-avatar-size) * -0.38);
top: 50%;
transform: translateY(-50%);
width: var(--transmission-avatar-size);
height: var(--transmission-avatar-size);
flex-shrink: 0;
border-radius: 50%;
background: linear-gradient(150deg, #4a4234, #2a2620);
border: 2px solid rgba(150, 135, 95, 0.6);
box-shadow:
0 4px 14px rgba(0, 0, 0, 0.55),
0 0 0 3px rgba(10, 9, 7, 0.85);
display: flex;
align-items: center;
justify-content: center;
font-family: 'Special Elite', 'Courier New', monospace;
font-weight: 700;
font-size: 1.6rem;
color: #d8c98a;
overflow: hidden;
z-index: 1;
}
.transmission__avatar--portrait {
background-color: color-mix(in srgb, var(--accent, #4a4234) 22%, #0b1526);
background-size: cover;
background-position: center 30%;
filter: saturate(0.85) contrast(1.05);
}
.transmission__avatar video {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 30%;
filter: saturate(0.85) contrast(1.05);
}
.transmission__avatar::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background: rgba(216, 201, 138, 0.35);
opacity: 0;
animation: transmissionFlicker 2.2s steps(1, end) infinite;
}
@keyframes transmissionFlicker {
0%, 100% { opacity: 0; }
42% { opacity: 0; }
45% { opacity: 0.6; }
48% { opacity: 0; }
71% { opacity: 0; }
73% { opacity: 0.4; }
76% { opacity: 0; }
}
.transmission__body {
min-width: 0;
padding-left: 4px;
}
.transmission__meta {
display: flex;
align-items: center;
gap: 7px;
font-family: var(--font-mono);
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.14em;
color: #c9b877;
margin-bottom: 5px;
}
.transmission__meta::before {
content: '»';
font-size: 0.95rem;
color: #8a7a4a;
}
.transmission__text {
font-family: 'Special Elite', 'Courier New', monospace;
font-size: 0.85rem;
line-height: 1.4;
letter-spacing: 0.01em;
color: #e4dcc4;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
@media (prefers-reduced-motion: reduce) {
.transmission { transition: opacity 0.15s linear; transform: none; animation: none; }
.transmission--visible { animation: none; transform: none; }
.transmission__avatar::after { animation: none; }
}

/* ── css/cookie-banner.css ── */
.cookie-banner {
position: fixed;
inset: 0;
z-index: 300;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-lg);
background: rgba(7, 13, 23, 0.6);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__frame-wrap {
position: relative;
width: min(560px, 100%);
filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
animation: cookie-banner-rise 0.5s var(--ease-spring) both;
}
@keyframes cookie-banner-rise {
from { opacity: 0; transform: translateY(24px) scale(0.98); }
to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-banner__frame {
position: relative;
width: 100%;
aspect-ratio: 1111 / 613;
display: block;
}
.cookie-banner__frame-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
}
.cookie-banner__radio {
position: absolute;
bottom: 3%;
left: -1%;
width: 14%;
min-width: 52px;
max-width: 80px;
height: auto;
z-index: 3;
filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
translate: 0 25%;
}
.cookie-banner__body {
position: absolute;
inset: 6.5% 5% 8.5%;
padding: 3%;
color: var(--text-secondary);
z-index: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.cookie-banner__title {
font-family: var(--font-display);
font-size: clamp(1rem, 3vw, 1.3rem);
color: var(--text-primary);
letter-spacing: 0.01em;
margin-bottom: 0.6em;
}
.cookie-banner__text {
font-size: clamp(0.72rem, 1.7vw, 0.86rem);
line-height: 1.6;
max-width: 60ch;
text-align: center;
align-self: center;
}
.cookie-banner__legal {
display: block;
margin-top: 1.6em;
text-align: center;
font-size: 0.68rem;
color: var(--text-muted);
}
.cookie-banner__legal a {
color: var(--text-muted);
text-decoration: underline;
text-underline-offset: 2px;
}
.cookie-banner__legal a:hover { color: var(--accent-steel); }
.cookie-banner__actions {
display: flex;
justify-content: center;
margin-top: 7%;
}
.cookie-banner__btn {
position: relative;
display: block;
flex: 0 1 auto;
width: 46%;
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);
}
.cookie-banner__btn:hover {
transform: translateY(-2px);
filter: brightness(1.12);
}
.cookie-banner__btn:active {
transform: translateY(0);
filter: brightness(0.95);
}
.cookie-banner__btn:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 3px;
border-radius: var(--radius-sm);
}
.cookie-banner__btn img {
display: block;
width: 100%;
height: auto;
}
.cookie-banner__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: 500;
font-size: clamp(0.85rem, 2.1vw, 1.05rem);
line-height: 1;
letter-spacing: 0.04em;
}
.cookie-banner__btn--accept span {
color: #f3dfae;
text-shadow:
0 -1px 1px rgba(0, 0, 0, 0.85),
0 1px 0 rgba(255, 241, 199, 0.5);
}
@media (max-width: 480px) {
.cookie-banner__radio { width: 13%; min-width: 40px; }
}

/* ── css/start.css ── */
#screen-start {
justify-content: center;
text-align: center;
position: relative;
overflow: hidden;
isolation: isolate;
background-image:
linear-gradient(to bottom,
rgba(7, 13, 23, 0.72) 0%,
rgba(7, 13, 23, 0.62) 45%,
rgba(7, 13, 23, 0.88) 100%);
}
#screen-start::before {
content: '';
position: absolute;
inset: -60px;
z-index: -1;
background-image: url('../media/backgrounds/start-bg.jpg');
background-size: cover;
background-position: center 40%;
background-repeat: no-repeat;
animation: kenBurns 32s ease-in-out infinite alternate;
}
.start-layout {
display: grid;
grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
gap: clamp(var(--space-xl), 6vw, var(--space-3xl));
align-items: center;
width: 100%;
max-width: 1040px;
}
.start-hero {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
position: relative;
animation: opponent-deal 0.5s var(--ease-out) backwards;
}
.start-console-wrap {
position: relative;
}
.start-console {
position: relative;
display: flex;
flex-direction: column;
gap: var(--space-lg);
--console-pad: var(--space-xl);
padding: var(--console-pad);
background: rgba(9, 17, 28, 0.9);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
overflow: hidden;
animation: opponent-deal 0.5s var(--ease-out) 120ms backwards;
}
.start-console::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--brass-edge);
pointer-events: none;
}
.start-console__head {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 6px;
min-height: 88px;
margin: calc(-1 * var(--console-pad)) calc(-1 * var(--console-pad)) 0;
padding: 14px var(--console-pad);
background:
repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
linear-gradient(to right, rgba(4, 18, 14, 0.92) 0%, rgba(6, 26, 20, 0.6) 50%, rgba(6, 26, 20, 0.25) 100%),
url('../media/ui/start/fleet-radio-bg.jpg') right 55% / cover;
box-shadow: inset 0 0 40px rgba(60, 200, 120, 0.12);
border-bottom: 1px solid rgba(111, 224, 140, 0.35);
overflow: hidden;
--fleet-sweep: 5s;
}
.start-console__kicker {
display: flex;
align-items: center;
gap: 8px;
font-family: var(--font-mono);
font-size: 0.6rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: rgba(159, 240, 184, 0.75);
text-shadow: 0 1px 4px #000;
}
.start-console__reading {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0 10px;
margin: 0;
}
.start-console__count {
font-family: var(--font-mono);
font-size: 1.6rem;
line-height: 1;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: #9ff0b8;
text-shadow: 0 0 12px rgba(111, 224, 140, 0.6), 0 2px 6px #000;
animation: fleetBreathe var(--fleet-sweep) ease-in-out infinite;
}
.start-console__count[hidden] { display: none; }
.start-console__unit {
font-size: 0.92rem;
color: var(--text-primary);
text-shadow: 0 1px 6px #000;
}
.start-console__head.is-idle .start-console__unit { color: var(--text-secondary); }
@keyframes fleetBreathe {
0%, 100% { color: #8fdca6; text-shadow: 0 0 6px rgba(111, 224, 140, 0.25), 0 2px 6px #000; }
50%      { color: #c2f7d3; text-shadow: 0 0 16px rgba(111, 224, 140, 0.75), 0 2px 6px #000; }
}
.fleet-radar {
position: relative;
flex: none;
width: 14px;
height: 14px;
margin-left: 4px;
border-radius: 50%;
border: 1px solid rgba(159, 240, 184, 0.7);
background: radial-gradient(circle, rgba(159, 240, 184, 0.9) 0 1.5px, transparent 2px), rgba(6, 26, 20, 0.6);
box-shadow: 0 0 6px rgba(111, 224, 140, 0.45);
overflow: hidden;
}
.fleet-radar::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background: conic-gradient(from 0deg, transparent 0 260deg, rgba(159, 240, 184, 0) 260deg, rgba(159, 240, 184, 0.9) 360deg);
animation: fleetSweep var(--fleet-sweep) linear infinite;
}
.start-console__head.is-idle .fleet-radar { border-color: rgba(159, 240, 184, 0.3); box-shadow: none; }
.start-console__head.is-idle .fleet-radar::after { display: none; }
@keyframes fleetSweep {
to { transform: rotate(360deg); }
}
@media (max-width: 920px) {
.start-layout {
grid-template-columns: minmax(0, 1fr);
justify-items: center;
gap: var(--space-xl);
}
.start-console {
width: 100%;
max-width: 520px;
--console-pad: var(--space-lg);
}
}
@media (prefers-reduced-motion: reduce) {
.start-hero,
.start-console,
.start-console__count,
.fleet-radar::after {
animation: none;
}
#screen-start::before,
#screen-opponent::before,
#screen-placement::before {
animation: none;
}
}
.start-logo__img {
width: clamp(240px, 29vw, 400px);
height: auto;
filter: drop-shadow(0 0 26px rgba(0, 0, 0, 0.55))
drop-shadow(0 3px 12px rgba(0, 0, 0, 0.85));
}
.captains-note {
position: relative;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
gap: var(--space-md);
max-width: 42ch;
margin-top: var(--space-md);
padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
text-align: left;
background: rgba(9, 17, 28, 0.8);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
}
.captains-note[hidden] { display: none; }
.captains-note::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);
}
.captains-note__illu {
width: clamp(58px, 7vw, 76px);
height: auto;
filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.7));
}
.captains-note__body {
min-width: 0;
}
@media (max-width: 420px) {
.captains-note {
grid-template-columns: minmax(0, 1fr);
justify-items: center;
gap: var(--space-sm);
padding-left: var(--space-md);
text-align: center;
}
.captains-note::before { display: none; }
}
.captains-note__label {
display: block;
margin-bottom: 6px;
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--brass-light);
}
.captains-note__text {
font-family: var(--font-display);
font-size: clamp(0.92rem, 1.6vw, 1.05rem);
line-height: 1.5;
color: var(--text-primary);
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.captains-note {
animation: opponent-deal 0.6s var(--ease-out) 260ms backwards;
}
@media (prefers-reduced-motion: reduce) {
.captains-note { animation: none; }
}
.diary-teaser {
position: relative;
container-type: inline-size;
isolation: isolate;
--u: clamp(12px, 4.2cqi, 18px);
--ink-halo: 0 0 2px rgba(250, 240, 214, 0.9), 0 0 6px rgba(250, 240, 214, 0.6);
display: flex;
flex-direction: column;
width: min(100%, 410px);
aspect-ratio: 1;
margin-top: var(--space-sm);
text-align: left;
animation: opponent-deal 0.6s var(--ease-out) 380ms backwards;
}
.diary-teaser[hidden] { display: none; }
.diary-teaser::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: url('../media/ui/start/diary-sheet.png') center / 100% 100% no-repeat;
filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
pointer-events: none;
}
.diary-teaser__cats {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin: 21cqi 15cqi 6px;
padding: 0;
list-style: none;
}
.diary-teaser__cat {
padding: 2px 8px;
background: rgba(250, 240, 214, 0.55);
border: 1px solid rgba(74, 46, 16, 0.5);
border-radius: 999px;
font-family: var(--font-mono);
font-size: calc(var(--u) * 0.56);
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #3a2810;
}
.diary-teaser__title {
margin: 0 15cqi;
font-family: var(--font-display);
font-size: calc(var(--u) * 1.05);
font-weight: 400;
line-height: 1.3;
color: #1f1206;
text-shadow: var(--ink-halo);
}
.diary-teaser__excerpt {
margin: calc(var(--u) * 0.5) 15cqi 0;
font-size: calc(var(--u) * 0.82);
font-weight: 500;
line-height: 1.5;
color: #261b10;
text-shadow: var(--ink-halo);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.diary-teaser__date {
margin: calc(var(--u) * 0.5) 15cqi 0;
font-family: var(--font-display);
font-size: calc(var(--u) * 0.72);
line-height: 1.35;
color: #4a3218;
text-shadow: var(--ink-halo);
}
.diary-teaser__place:not(:empty)::before { content: ' · '; }
.diary-teaser__foot {
display: flex;
flex-direction: column;
align-items: center;
gap: calc(var(--u) * 0.7);
margin: calc(var(--u) * 0.7) 15cqi 11cqi;
}
.diary-teaser__reactions {
display: inline-flex;
gap: var(--space-sm);
}
.diary-teaser__reactions:empty { display: none; }
.diary-teaser__reactions .diary-react {
padding: calc(var(--u) * 0.12) calc(var(--u) * 0.5) calc(var(--u) * 0.12) calc(var(--u) * 0.2);
background: rgba(250, 240, 214, 0.7);
border-color: rgba(74, 46, 16, 0.45);
color: #2e2010;
font-weight: 600;
}
.diary-teaser__reactions .diary-react img {
width: calc(var(--u) * 1.35);
height: calc(var(--u) * 1.35);
opacity: 1;
}
.diary-teaser__reactions .diary-react__count { font-size: calc(var(--u) * 0.74); }
.diary-teaser__reactions .diary-react:hover,
.diary-teaser__reactions .diary-react:focus-visible {
border-color: #a7762c;
color: #33200d;
}
.diary-teaser__reactions .diary-react[aria-pressed="true"] {
border-color: #a7762c;
background: rgba(167, 118, 44, 0.2);
color: #5a3a10;
}
.diary-teaser__reactions .diary-react--heart[aria-pressed="true"] {
border-color: rgba(160, 50, 40, 0.6);
background: rgba(160, 50, 40, 0.14);
color: #8f2a1e;
}
.diary-teaser__open {
width: calc(var(--u) * 8.25);
height: calc(var(--u) * 2.125);
}
.diary-teaser__open span { font-size: calc(var(--u) * 0.68); }
.diary-teaser__open:focus-visible {
outline: 2px solid #7f4f14;
outline-offset: 3px;
border-radius: var(--radius-sm);
}
@media (max-width: 920px) {
.diary-teaser { width: min(410px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
.diary-teaser { animation: none; }
}
.start-actions {
display: flex;
flex-direction: column;
gap: var(--space-lg);
width: 100%;
}
.start-section {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.start-modes {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.mode-row {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: var(--space-md);
width: 100%;
padding: var(--space-md);
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);
}
.mode-row:hover,
.mode-row:focus-visible {
border-color: var(--brass);
background-color: var(--ocean-600);
transform: translateX(3px);
outline: none;
}
.mode-row--img {
position: relative;
overflow: hidden;
}
.mode-row--img::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background-image: var(--mode-image);
background-size: cover;
background-position: center right;
transform: scale(1.02);
transition: transform 0.7s var(--ease-out);
pointer-events: none;
}
.mode-row--img:hover::after,
.mode-row--img:focus-visible::after {
transform: scale(1.08);
}
.mode-row--img::before {
content: '';
position: absolute;
inset: 0;
z-index: 1;
border-radius: inherit;
background: linear-gradient(to right,
rgba(12, 21, 34, 0.97) 0%,
rgba(12, 21, 34, 0.9) 38%,
rgba(12, 21, 34, 0.55) 68%,
rgba(12, 21, 34, 0.35) 100%);
transition: opacity 0.3s var(--ease-out);
pointer-events: none;
}
.mode-row--img:hover::before,
.mode-row--img:focus-visible::before {
opacity: 0.78;
}
.mode-row--primary {
--mode-image: url('../media/backgrounds/mode-public.jpg');
background-color: var(--ocean-600);
border-color: var(--brass);
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45),
inset 0 1px 0 rgba(247, 226, 168, 0.18);
}
.mode-row--primary:hover,
.mode-row--primary:focus-visible {
border-color: var(--brass-light);
}
.mode-row--private { --mode-image: url('../media/backgrounds/mode-private.jpg'); }
.mode-row--ai      { --mode-image: url('../media/backgrounds/mode-ai.jpg'); }
.mode-row__badge {
display: flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
font-size: 1.25rem;
color: var(--ocean-900);
background: var(--brass-plate);
border-radius: var(--radius-md);
box-shadow: inset 0 1px 0 rgba(247, 226, 168, 0.55),
0 2px 8px rgba(0, 0, 0, 0.5);
}
.mode-row__badge--img {
width: 52px;
height: 52px;
object-fit: contain;
background: none;
border-radius: 0;
box-shadow: none;
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}
.mode-row--primary .mode-row__badge--img { scale: 1.097; }
.mode-row--private .mode-row__badge--img { scale: 1.066; translate: 0 -1.2%; }
.mode-row__badge:not(.mode-row__badge--img) {
color: var(--accent-steel);
background: var(--ocean-700);
border: 1px solid var(--border-subtle);
box-shadow: inset 0 1px 0 rgba(174, 196, 221, 0.12);
}
.mode-row__badge,
.mode-row__text,
.mode-row__go {
position: relative;
z-index: 2;
}
.mode-row__text {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.mode-row__title {
font-family: var(--font-display);
font-size: 1rem;
letter-spacing: 0.02em;
}
.mode-row__sub {
font-size: 0.75rem;
color: var(--text-secondary);
}
.mode-row__go {
font-size: 1.5rem;
line-height: 1;
color: var(--text-muted);
transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.mode-row--img { padding: var(--space-md); }
.mode-row--img .mode-row__title,
.mode-row--img .mode-row__sub {
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.mode-row--primary .mode-row__go { color: var(--brass-light); }
.mode-row:hover .mode-row__go,
.mode-row:focus-visible .mode-row__go {
color: var(--brass-light);
transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
.mode-row,
.mode-row__go,
.mode-row--img::before,
.mode-row--img::after { transition: none; }
.mode-row:hover,
.mode-row:focus-visible { transform: none; }
.mode-row:hover .mode-row__go,
.mode-row:focus-visible .mode-row__go { transform: none; }
}
.start-divider {
display: flex;
align-items: center;
gap: var(--space-md);
color: var(--accent-brass);
font-size: 0.68rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.22em;
}
.start-divider::before,
.start-divider::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(to right, transparent, var(--border-glow));
}
.start-divider::after {
background: linear-gradient(to left, transparent, var(--border-glow));
}
.join-fold { display: block; }
.join-fold__toggle {
cursor: pointer;
list-style: none;
user-select: none;
border-radius: var(--radius-sm);
transition: color 0.15s ease;
}
.join-fold__toggle::-webkit-details-marker { display: none; }
.join-fold__toggle:hover,
.join-fold__toggle:focus-visible { color: var(--brass-light); }
.join-fold__toggle:focus-visible { outline: 2px solid var(--accent-brass); outline-offset: 4px; }
.join-fold__chevron {
width: 7px;
height: 7px;
margin: 0 2px 3px -6px;
border-right: 1.5px solid currentColor;
border-bottom: 1.5px solid currentColor;
transform: rotate(45deg);
transition: transform 0.2s var(--ease-out);
}
.join-fold[open] .join-fold__chevron { transform: translateY(3px) rotate(-135deg); }
.join-fold[open] .join-row { margin-top: var(--space-sm); }
@media (prefers-reduced-motion: reduce) {
.join-fold__chevron { transition: none; }
}
.join-row {
display: flex;
gap: 0;
}
.join-row .input {
flex: 1;
min-width: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: none;
}
.join-row .btn--join {
padding: 10px 16px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.join-row .btn--join img {
height: 26px;
width: auto;
filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
transition: transform 0.3s var(--ease-out);
}
.join-row .btn--join:hover img,
.join-row .btn--join:focus-visible img {
transform: translateX(2px);
}
@media (prefers-reduced-motion: reduce) {
.join-row .btn--join img { transition: none; }
.join-row .btn--join:hover img,
.join-row .btn--join:focus-visible img { transform: none; }
}
.lobby-board__head {
display: flex;
align-items: center;
gap: var(--space-md);
margin-bottom: var(--space-sm);
color: var(--accent-brass);
font-size: 0.68rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.22em;
}
.lobby-board__head::before,
.lobby-board__head::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(to right, transparent, var(--border-glow));
}
.lobby-board__head::after { background: linear-gradient(to left, transparent, var(--border-glow)); }
.lobby-board__title {
display: inline-flex;
align-items: center;
gap: var(--space-sm);
}
.lobby-board__count {
font-family: var(--font-mono);
letter-spacing: 0.05em;
color: var(--accent-gold);
}
.lobby-board__panel {
position: relative;
padding: var(--space-xs) var(--space-sm);
background:
linear-gradient(rgba(9, 17, 28, 0.86), rgba(9, 17, 28, 0.92)),
url('../media/ui/gate/dark_paper.png') center / cover;
border: 1px solid rgba(212, 165, 63, 0.22);
border-radius: var(--radius-md);
box-shadow:
inset 0 0 0 1px rgba(0, 0, 0, 0.45),
0 6px 18px rgba(0, 0, 0, 0.45);
}
.lobby-board__panel::before,
.lobby-board__panel::after {
content: '';
position: absolute;
z-index: 1;
width: 24px;
height: 23px;
background: url('../media/ui/battle/corner-orn-l.png') center / contain no-repeat;
pointer-events: none;
}
.lobby-board__panel::before { top: -1px; left: -1px; }
.lobby-board__panel::after  { right: -1px; bottom: -1px; transform: rotate(180deg); }
.lobby-board__list {
display: grid;
grid-template-columns: auto auto minmax(0, 1fr) auto auto;
align-content: start;
}
.board-row {
position: relative;
display: grid;
grid-column: 1 / -1;
grid-template-columns: subgrid;
align-items: center;
gap: var(--space-sm) var(--space-md);
width: 100%;
padding: 10px var(--space-sm);
font: inherit;
text-align: left;
color: var(--text-primary);
background: transparent;
border: 0;
border-radius: var(--radius-sm);
cursor: pointer;
transition: background-color 0.25s var(--ease-out);
}
.board-row + .board-row { border-top: 1px solid rgba(140, 175, 215, 0.09); }
.board-row:hover,
.board-row:focus-visible {
background-color: rgba(212, 165, 63, 0.07);
box-shadow: inset 2px 0 0 var(--brass-light);
outline: none;
}
.board-row__lamp {
position: relative;
width: 14px;
height: 14px;
background: url('../media/ui/lobby/lamp-green-off.png') center / contain no-repeat;
}
.board-row__lamp::after {
content: '';
position: absolute;
inset: 0;
background: url('../media/ui/lobby/lamp-green-on.png') center / contain no-repeat;
filter: drop-shadow(0 0 4px rgba(111, 224, 140, 0.7));
animation: fleetLampPulse 2.4s ease-in-out infinite;
}
.board-row__emblem {
width: 30px;
height: 30px;
object-fit: contain;
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.board-row__info {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.board-row__host {
font-weight: 600;
font-size: 0.92rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.board-row__mode {
font-size: 0.72rem;
color: var(--text-secondary);
}
.board-row__berths {
display: flex;
gap: 5px;
}
.berth {
width: 11px;
height: 11px;
border-radius: 50%;
border: 1.5px solid var(--brass);
background: rgba(5, 10, 18, 0.9);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}
.berth--taken {
border-color: var(--brass-light);
background: radial-gradient(circle at 40% 35%, var(--brass-shine), var(--accent-brass) 55%, var(--brass-dark));
box-shadow: 0 0 6px rgba(240, 195, 104, 0.35);
}
.board-row__action {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.14em;
text-align: right;
color: var(--accent-brass);
transition: color 0.25s var(--ease-out);
}
.board-row__action::after {
content: '›';
display: inline-block;
margin-left: 0.4em;
transition: transform 0.25s var(--ease-out);
}
.board-row:hover .board-row__action,
.board-row:focus-visible .board-row__action { color: var(--accent-gold); }
.board-row:hover .board-row__action::after,
.board-row:focus-visible .board-row__action::after { transform: translateX(3px); }
.board-row--partial .board-row__lamp { background-image: url('../media/ui/lobby/lamp-amber-off.png'); }
.board-row--partial .board-row__lamp::after {
background-image: url('../media/ui/lobby/lamp-amber-on.png');
filter: drop-shadow(0 0 4px rgba(240, 180, 70, 0.7));
}
.board-row--full {
cursor: default;
color: var(--text-secondary);
}
.board-row--full:hover { background: none; box-shadow: none; }
.board-row--full .board-row__lamp { background-image: url('../media/ui/lobby/lamp-red-off.png'); }
.board-row--full .board-row__lamp::after {
background-image: url('../media/ui/lobby/lamp-red-on.png');
filter: drop-shadow(0 0 3px rgba(217, 104, 82, 0.6));
opacity: 0.75;
animation: none;
}
.board-row--full .board-row__emblem { opacity: 0.6; filter: grayscale(0.5) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7)); }
.board-row--full .board-row__host { font-weight: 500; }
.board-row--full .board-row__action {
color: var(--text-muted);
letter-spacing: 0.1em;
}
.board-row--full .board-row__action::after { content: none; }
.board-row--new { animation: boardRowIn 0.5s var(--ease-out) backwards; }
@keyframes boardRowIn {
from { opacity: 0; transform: translateY(-6px); background-color: rgba(212, 165, 63, 0.14); }
}
.lobby-board__more {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--space-md);
width: 100%;
margin: 0;
padding: 10px var(--space-sm);
font: inherit;
color: var(--accent-brass);
background: none;
border: 0;
border-top: 1px solid rgba(212, 165, 63, 0.22);
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
cursor: pointer;
transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.lobby-board__more[hidden] { display: none; }
.lobby-board__more:hover,
.lobby-board__more:focus-visible {
color: var(--accent-gold);
background-color: rgba(212, 165, 63, 0.07);
outline: none;
}
.lobby-board__more-text {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.14em;
}
.lobby-board__more-text::after {
content: '›';
display: inline-block;
margin-left: 0.4em;
transition: transform 0.25s var(--ease-out);
}
.lobby-board__more:hover .lobby-board__more-text::after,
.lobby-board__more:focus-visible .lobby-board__more-text::after { transform: translateX(3px); }
.lobby-board__more-meta {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-secondary);
}
.modal.harbor-modal {
position: relative;
display: flex;
flex-direction: column;
max-width: 600px;
max-height: calc(100vh - 2 * var(--space-lg));
padding: var(--space-xl);
}
.harbor-modal__close {
position: absolute;
top: 16px;
right: 16px;
font-size: 1.4rem;
}
.harbor-modal .auth-modal__head { padding-right: 44px; }
.harbor-modal__title { margin: var(--space-sm) 0 var(--space-xs); }
.harbor-modal__sub {
margin: 0 0 var(--space-md);
font-size: 0.86rem;
color: var(--text-secondary);
}
.harbor-modal__filters {
display: flex;
flex-direction: column;
gap: var(--space-sm);
margin-bottom: var(--space-md);
}
.harbor-modal__panel {
display: flex;
flex-direction: column;
min-height: 0;
}
.harbor-modal__list {
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: var(--brass) transparent;
}
.harbor-modal__list[hidden] { display: none; }
.harbor-modal__empty {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
padding: var(--space-xl) var(--space-md);
text-align: center;
color: var(--text-secondary);
}
.harbor-modal__empty[hidden] { display: none; }
.harbor-modal__empty p { margin: 0; }
@media (max-width: 520px) {
.modal-overlay.harbor-overlay { padding: var(--space-sm); }
.modal.harbor-modal {
max-height: calc(100vh - 2 * var(--space-sm));
padding: var(--space-lg) var(--space-md);
}
.harbor-modal .harbor-modal__modes {
flex-wrap: nowrap;
overflow-x: auto;
scrollbar-width: none;
margin-right: calc(-1 * var(--space-md));
padding-right: var(--space-md);
}
.harbor-modal .harbor-modal__modes button { flex: none; }
}
@media (max-width: 420px) {
.board-row { gap: var(--space-xs) var(--space-sm); padding: 9px var(--space-xs); }
.board-row__emblem { width: 26px; height: 26px; }
.board-row__action-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.board-row,
.board-row__action,
.board-row__action::after,
.lobby-board__more,
.lobby-board__more-text::after { transition: none; }
.board-row__lamp::after,
.board-row--new { animation: none; }
}
.fleet-badge {
display: inline-block;
margin-left: var(--space-xs);
padding: 0 6px;
font-size: 0.62rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--accent-brass);
border: 1px solid rgba(212, 165, 63, 0.45);
border-radius: 999px;
vertical-align: middle;
}
@keyframes fleetLampPulse {
0%, 100% { opacity: 1; }
50%      { opacity: 0.4; }
}
.fleet-radio__list {
width: 100%;
max-width: 42ch;
margin-top: var(--space-md);
list-style: none;
margin-bottom: 0;
padding: 0;
text-align: left;
display: flex;
flex-direction: column;
gap: var(--space-sm);
max-height: min(260px, 36vh);
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: var(--brass) transparent;
}
.fleet-radio__list[hidden] { display: none; }
.fleet-radio__item {
display: flex;
flex-direction: column;
gap: 1px;
padding: var(--space-xs) 0 var(--space-xs) var(--space-sm);
border-left: 2px solid var(--border-subtle);
}
.fleet-radio__item--battle { border-left-color: var(--brass); }
.fleet-radio__text {
font-size: 0.88rem;
color: var(--text-primary);
overflow-wrap: anywhere;
}
.fleet-radio__text strong { font-weight: 600; }
.fleet-radio__meta {
font-size: 0.74rem;
color: var(--text-muted);
}
.name-row {
display: flex;
gap: var(--space-sm);
align-items: flex-end;
}
.name-row .input-group {
flex: 1;
}
.auth-section {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
padding-top: var(--space-md);
border-top: 1px solid var(--border-subtle);
}
.dev-credit {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
gap: var(--space-sm);
padding-top: var(--space-xs);
margin-bottom: calc(-1 * var(--space-sm));
}
.dev-credit a {
display: inline-flex;
opacity: .5;
transition: opacity .25s ease;
}
.dev-credit a:hover,
.dev-credit a:focus-visible { opacity: .8; }
.dev-credit__logo { height: 36px; width: auto; }
.dev-credit__links {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 2px var(--space-sm);
}
.dev-credit__link {
display: inline-flex;
align-items: center;
gap: 6px;
background: none;
border: none;
padding: 2px 0 2px 4px;
font-family: var(--font-mono);
font-size: 0.68rem;
letter-spacing: 0.06em;
color: var(--text-muted);
opacity: .65;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: rgba(159, 179, 204, 0.3);
transition: color .25s ease, opacity .25s ease;
}
.dev-credit__link:hover,
.dev-credit__link:focus-visible {
color: var(--accent-brass);
opacity: 1;
text-decoration-color: var(--accent-brass);
}
.dev-credit__link-icon {
width: 36px;
height: 36px;
flex: none;
opacity: 1;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}
.auth-buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-sm);
width: 100%;
align-items: center;
}
.plaque-btn {
position: relative;
display: block;
width: 132px;
height: 34px;
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);
}
.plaque-btn img {
display: block;
width: 100%;
height: 100%;
}
.plaque-btn span {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 0.1em;
font-family: var(--font-main);
font-weight: 500;
font-size: 0.68rem;
line-height: 1;
letter-spacing: 0.02em;
white-space: nowrap;
}
.plaque-btn--bronze span {
color: #f3dfae;
text-shadow:
0 -1px 1px rgba(0, 0, 0, 0.85),
0 1px 0 rgba(255, 241, 199, 0.5);
}
.plaque-btn--dark span {
color: var(--text-secondary);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.plaque-btn:not(:disabled):hover {
transform: translateY(-1px);
filter: brightness(1.12);
}
.plaque-btn:not(:disabled):active {
transform: translateY(0);
filter: brightness(0.95);
}
.auth-buttons button:disabled {
opacity: 0.45;
cursor: not-allowed;
pointer-events: none;
}
.auth-btn-tooltip {
position: relative;
display: inline-flex;
cursor: not-allowed;
}
.auth-btn-tooltip::after {
content: attr(data-tooltip);
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(4px);
padding: 6px 10px;
background: var(--surface-overlay);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 0.72rem;
font-weight: 400;
white-space: nowrap;
box-shadow: var(--shadow-md);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
z-index: 10;
}
.auth-btn-tooltip:hover::after {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
.auth-btn-tooltip::after { transition: none; }
}
.btn--accent {
background: linear-gradient(135deg, #0077cc, var(--accent-brass));
color: white;
box-shadow: 0 4px 15px rgba(0, 119, 204, 0.4);
}
.btn--accent:hover {
box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
transform: translateY(-2px);
}
.profile-bar {
position: relative;
display: flex;
flex-direction: column;
gap: var(--space-sm);
width: 100%;
max-width: 100%;
padding: var(--space-sm) var(--space-md);
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-lg);
box-sizing: border-box;
}
.profile-bar__top {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-sm) var(--space-md);
width: 100%;
}
.profile-bar::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--brass-edge);
pointer-events: none;
}
.profile-bar__avatar-wrap {
position: relative;
width: 72px;
height: 72px;
flex-shrink: 0;
padding: 0;
border: none;
border-radius: 50%;
background: none;
cursor: pointer;
transition: transform 0.2s var(--ease-out);
}
.profile-bar__avatar-wrap:hover,
.profile-bar__avatar-wrap:focus-visible { transform: scale(1.04); }
.profile-bar__avatar-wrap:hover .profile-bar__avatar-frame,
.profile-bar__avatar-wrap:hover .avatar-frame,
.profile-bar__avatar-wrap:focus-visible .profile-bar__avatar-frame,
.profile-bar__avatar-wrap:focus-visible .avatar-frame {
filter: drop-shadow(0 0 6px rgba(240, 195, 104, 0.55)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.6));
}
.profile-bar__avatar-wrap:hover .profile-bar__avatar { filter: brightness(1.12); }
.profile-bar__avatar-wrap:active { transform: scale(0.98); }
.profile-bar__avatar-wrap:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
}
.profile-bar__avatar-hint {
position: absolute;
right: 1px;
bottom: 3px;
z-index: 2;
width: 18px;
height: 18px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, var(--accent-gold), var(--accent-brass) 55%, #7a5a1e);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(60, 35, 5, 0.6);
transition: filter 0.2s var(--ease-out);
}
.profile-bar__avatar-hint::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 5px;
border-top: 2px solid var(--ocean-900);
border-right: 2px solid var(--ocean-900);
transform: translate(-65%, -50%) rotate(45deg);
}
.profile-bar__avatar-wrap:hover .profile-bar__avatar-hint { filter: brightness(1.15); }
@media (prefers-reduced-motion: reduce) {
.profile-bar__avatar-wrap { transition: none; }
.profile-bar__avatar-wrap:hover,
.profile-bar__avatar-wrap:focus-visible,
.profile-bar__avatar-wrap:active { transform: none; }
}
.profile-bar__avatar {
position: absolute;
top: 50%;
left: 50%;
width: 52px;
height: 52px;
border-radius: 50%;
object-fit: cover;
transform: translate(-50%, -50%);
}
.profile-bar__avatar-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-bar__info {
display: flex;
flex: 1 1 auto;
flex-direction: column;
gap: 4px;
min-width: 0;
text-align: left;
}
.profile-bar__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-md);
}
.profile-bar__name {
min-width: 0;
padding: 0;
border: none;
background: none;
cursor: pointer;
text-align: left;
font-family: var(--font-display);
font-size: 1.05rem;
letter-spacing: 0.02em;
color: var(--accent-gold);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
text-decoration: underline transparent 1px;
text-underline-offset: 3px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}
.profile-bar__name:hover,
.profile-bar__name:focus-visible {
color: #fbe39a;
text-decoration-color: rgba(212, 165, 63, 0.6);
}
.profile-bar__name:focus-visible {
outline: 1px solid var(--accent-gold);
outline-offset: 2px;
border-radius: var(--radius-sm);
}
.profile-bar__level {
display: flex;
flex-shrink: 0;
align-items: center;
gap: var(--space-xs);
font-family: var(--font-mono);
font-size: 0.78rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-brass);
white-space: nowrap;
}
.profile-bar__level-icon {
width: 22px;
height: 22px;
object-fit: contain;
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
}
.profile-bar__progress {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.profile-bar__progress[hidden] { display: none; }
.profile-bar__progress .rank-progress-bar {
flex: 1 1 auto;
min-width: 40px;
height: 8px;
}
.profile-bar__progress-label {
flex-shrink: 0;
font-family: var(--font-mono);
font-size: 0.68rem;
color: var(--text-secondary);
white-space: nowrap;
}
.profile-bar__footer {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-xs) var(--space-sm);
margin-top: 2px;
}
.profile-bar__medals {
display: flex;
gap: 5px;
margin: 0;
padding: 0;
list-style: none;
}
.profile-bar__medals[hidden] { display: none; }
.profile-bar__medal {
position: relative;
width: 22px;
height: 28px;
cursor: help;
}
.profile-bar__medal img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}
.profile-bar__medal.is-locked { cursor: pointer; }
.profile-bar__medal.is-locked img {
opacity: 0.6;
filter: grayscale(1) brightness(0.85) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
transition: opacity 0.2s var(--ease-out), filter 0.2s var(--ease-out);
}
.profile-bar__medal.is-locked:hover img,
.profile-bar__medal.is-locked:focus-visible img {
opacity: 0.9;
filter: grayscale(0.6) brightness(1) drop-shadow(0 0 4px rgba(212, 165, 63, 0.5));
}
.profile-bar__medal:focus-visible {
outline: 1px solid var(--accent-gold);
outline-offset: 2px;
border-radius: var(--radius-sm);
}
.profile-bar__medal::after {
content: attr(data-tooltip);
position: absolute;
bottom: calc(100% + 6px);
left: 0;
width: max-content;
max-width: 240px;
padding: 5px 9px;
background: var(--surface-overlay);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 0.72rem;
line-height: 1.45;
text-align: left;
white-space: pre-line;
box-shadow: var(--shadow-md);
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(4px);
transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
z-index: 10;
}
.profile-bar__medal:hover::after,
.profile-bar__medal:focus-visible::after,
.profile-bar__medal.is-open::after {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.profile-bar__btn {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
height: 30px;
padding: 0 var(--space-sm);
border: 1px solid rgba(212, 165, 63, 0.38);
border-radius: var(--radius-md);
background: rgba(7, 13, 23, 0.55);
cursor: pointer;
font-family: var(--font-display);
font-size: 0.68rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-secondary);
transition: border-color 0.2s var(--ease-out),
background 0.2s var(--ease-out),
color 0.2s var(--ease-out),
transform 0.15s var(--ease-out);
}
.profile-bar__btn:hover {
border-color: var(--accent-brass);
background: rgba(212, 165, 63, 0.12);
color: var(--accent-gold);
}
.profile-bar__btn:active { transform: translateY(1px); }
.profile-bar__btn-icon {
width: 16px;
height: 16px;
flex: none;
object-fit: contain;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}
.profile-bar__actions {
display: flex;
align-items: center;
gap: 6px;
margin-left: auto;
}
.profile-bar__logout {
display: flex;
flex-shrink: 0;
padding: 0;
background: none;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
}
.profile-bar__logout:focus-visible {
outline: 2px solid var(--accent-gold);
outline-offset: 2px;
}
.profile-bar__logout-icon {
width: auto;
height: 30px;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
transition: filter 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.profile-bar__logout:active .profile-bar__logout-icon { transform: translateY(1px); }
.profile-bar__logout:hover .profile-bar__logout-icon {
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9)) brightness(1.2);
}
.daily-order {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 4px;
padding: var(--space-sm) var(--space-md);
border: 1px solid rgba(212, 165, 63, 0.22);
border-radius: var(--radius-md);
background: rgba(7, 13, 23, 0.55);
}
.daily-order[hidden] { display: none; }
.daily-order__kicker {
font-family: var(--font-display);
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--brass-light);
}
.daily-order__text {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 6px;
margin: 0;
font-size: 0.92rem;
color: var(--text-primary);
}
.daily-order__progress {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: var(--space-sm);
}
.daily-order__progress .rank-progress-bar { height: 8px; }
.daily-order__count {
font-family: var(--font-mono);
font-size: 0.72rem;
color: var(--text-secondary);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.daily-order.is-done .daily-order__count { color: var(--accent-gold); }
.daily-order__streak {
margin: 0;
font-size: 0.74rem;
color: var(--text-muted);
}
.daily-order__streak[hidden] { display: none; }
.daily-order__info {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
padding: 0;
border: 1px solid var(--brass);
border-radius: 50%;
background: rgba(14, 24, 38, 0.92);
color: var(--brass-light);
cursor: help;
transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.daily-order__info svg {
width: 12px;
height: 12px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
pointer-events: none;
}
.daily-order__info:hover,
.daily-order__info:focus {
color: var(--accent-gold);
border-color: var(--brass-light);
outline: none;
}
.daily-order__info:focus-visible { box-shadow: 0 0 0 2px var(--accent-brass); }
.daily-order__info::after {
content: attr(data-tooltip);
position: absolute;
top: calc(100% + 6px);
left: 50%;
width: max-content;
max-width: 220px;
padding: 5px 9px;
background: var(--surface-overlay);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-family: var(--font-main);
font-size: 0.72rem;
font-weight: 400;
letter-spacing: normal;
line-height: 1.45;
text-transform: none;
box-shadow: var(--shadow-md);
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translate(-50%, 4px);
transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
z-index: 10;
}
.daily-order__info:hover::after,
.daily-order__info:focus::after {
opacity: 1;
visibility: visible;
transform: translate(-50%, 0);
}
.board-card {
position: relative;
display: flex;
flex-direction: column;
gap: var(--space-xs);
width: 100%;
max-width: 42ch;
margin-top: var(--space-md);
padding: var(--space-sm) var(--space-lg) var(--space-md);
text-align: left;
background: rgba(9, 17, 28, 0.8);
border: 1px solid rgba(212, 165, 63, 0.22);
border-radius: var(--radius-md);
box-shadow:
inset 0 0 0 1px rgba(0, 0, 0, 0.45),
0 6px 18px rgba(0, 0, 0, 0.45);
animation: opponent-deal 0.6s var(--ease-out) 340ms backwards;
}
.board-card[hidden] { display: none; }
.board-card::before,
.board-card::after {
content: '';
position: absolute;
width: 28px;
height: 27px;
background: url('../media/ui/battle/corner-orn-l.png') center / contain no-repeat;
pointer-events: none;
}
.board-card::before { top: -1px; left: -1px; }
.board-card::after  { right: -1px; bottom: -1px; transform: rotate(180deg); }
@media (max-width: 420px) {
.board-card { padding: var(--space-sm) var(--space-md) var(--space-md); }
.board-card::before,
.board-card::after { width: 22px; height: 21px; }
}
.board-card__kicker {
font-family: var(--font-display);
font-size: 0.6rem;
font-weight: 600;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--brass-light);
}
.board-card__list {
display: flex;
flex-direction: column;
gap: 2px;
margin: 0;
padding: 0;
list-style: none;
}
.board-card__list[hidden] { display: none; }
.board-card__me {
margin: 0;
font-size: 0.8rem;
color: var(--text-secondary);
}
.board-card__me:empty { display: none; }
.board-card__more {
align-self: flex-start;
padding: 0;
border: 0;
background: none;
font: inherit;
font-size: 0.78rem;
color: var(--accent-gold);
cursor: pointer;
text-decoration: underline;
text-underline-offset: 3px;
}
.leaderboard-row {
display: grid;
grid-template-columns: 2.2ch 28px minmax(0, 1fr) auto auto;
align-items: center;
gap: var(--space-sm);
padding: 3px 0;
font-size: 0.86rem;
color: var(--text-primary);
}
.leaderboard-row.is-me { color: var(--accent-gold); }
.leaderboard-row--empty {
display: block;
color: var(--text-muted);
font-size: 0.82rem;
}
.leaderboard-row__pos {
font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
text-align: right;
color: var(--text-muted);
}
.leaderboard-row__avatar {
width: 28px;
height: 28px;
border-radius: 50%;
object-fit: cover;
border: 1px solid rgba(212, 165, 63, 0.35);
}
.leaderboard-row__name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.leaderboard-row__badge { width: 22px; height: 22px; }
.leaderboard-row__xp {
font-family: var(--font-mono);
font-size: 0.76rem;
font-variant-numeric: tabular-nums;
color: var(--text-secondary);
white-space: nowrap;
}
.guest-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-xs) var(--space-sm);
width: 100%;
}
.guest-bar[hidden] { display: none; }
.guest-bar__badge { width: 28px; height: 28px; }
.guest-bar__text {
display: inline-flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0 var(--space-xs);
font-size: 0.82rem;
color: var(--text-secondary);
}
.guest-bar__text strong { color: var(--text-primary); font-weight: 600; }
.guest-bar__note { color: var(--text-muted); font-size: 0.74rem; }
.guest-bar__note::before { content: '· '; }
#guest-bar-xp::before { content: '· '; }
.plaque-btn[hidden] { display: none; }
.profile-bar__btn[hidden],
.profile-bar__trial[hidden] { display: none; }
.profile-bar__trial {
font-family: var(--font-display);
font-size: 0.64rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-gold);
white-space: nowrap;
}
.profile-bar__btn--verify {
border-color: rgba(217, 104, 82, 0.5);
color: var(--text-primary);
}
.trial-ended {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
border: 1px solid rgba(212, 165, 63, 0.3);
border-radius: var(--radius-md);
background: rgba(212, 165, 63, 0.06);
}
.trial-ended[hidden] { display: none; }
.trial-ended__text {
flex: 1 1 220px;
margin: 0;
font-size: 0.84rem;
color: var(--text-secondary);
}
@media (prefers-reduced-motion: reduce) {
.board-card { animation: none; }
}

