pokeemerald-expansion/editor/style.css
Claude 34d9e833db
Fix sprite display to show front-facing frame instead of full sheet
The NPC sprite images are horizontal strips with multiple frames. Previously
the entire sheet was squeezed into the container, showing all frames at once.
Now the image height fills the container with auto width, and overflow:hidden
clips to just the first (front-facing) frame.

https://claude.ai/code/session_01LgEDXY2DGWvLdHvhmM5Xqy
2026-03-21 13:18:17 +00:00

1791 lines
44 KiB
CSS

:root {
--bg: #0f1419;
--bg-card: #1a1f2e;
--bg-hover: #232a3b;
--bg-input: #141824;
--border: #2a3144;
--text: #e2e8f0;
--text-dim: #8892a4;
--accent: #4f8ff7;
--accent-dim: #3a6bc5;
--red: #ef4444;
--green: #22c55e;
--yellow: #eab308;
--orange: #f97316;
--purple: #a855f7;
--pink: #ec4899;
--cyan: #06b6d4;
--radius: 8px;
--shadow: 0 2px 8px rgba(0,0,0,0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.5;
}
/* ─── Auth Bar ──────────────────────────────────── */
#auth-bar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 500;
background: var(--bg-card);
border-bottom: 1px solid var(--border);
height: 44px;
}
.auth-bar-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 100%;
padding: 0 20px;
}
.auth-logo {
font-size: 13px;
font-weight: 700;
color: var(--accent);
}
.auth-right {
display: flex;
align-items: center;
gap: 12px;
}
#auth-status {
font-size: 12px;
color: var(--text-dim);
}
.branch-info {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
padding: 0;
border-radius: 4px;
}
.branch-info-label {
cursor: pointer;
padding: 2px 8px;
border-radius: 4px;
background: var(--bg-card);
transition: background 0.15s;
}
.branch-info-label:hover {
background: var(--bg-hover);
color: var(--text);
}
/* Branch picker rows */
.branch-row {
padding: 10px 20px;
cursor: pointer;
border-bottom: 1px solid var(--border);
transition: background 0.1s;
}
.branch-row:last-child { border-bottom: none; }
.branch-row:hover { background: var(--bg-hover); }
.branch-row.active { background: var(--bg-hover); }
.branch-row-main {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 2px;
}
.branch-row-name {
font-family: monospace;
font-size: 13px;
color: var(--text);
font-weight: 500;
}
.branch-row-current {
font-size: 10px;
background: var(--green);
color: #fff;
padding: 1px 6px;
border-radius: 8px;
}
.branch-row-meta {
display: flex;
gap: 12px;
font-size: 11px;
color: var(--text-dim);
}
.branch-row-msg {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 300px;
}
.changes-badge {
font-size: 11px;
background: var(--orange);
color: #fff;
padding: 2px 10px;
border-radius: 10px;
font-weight: 600;
margin-right: 6px;
}
/* ─── Layout ─────────────────────────────────────── */
.app { display: flex; min-height: 100vh; padding-top: 44px; }
.sidebar {
width: 240px;
background: var(--bg-card);
border-right: 1px solid var(--border);
padding: 16px 0;
flex-shrink: 0;
position: fixed;
top: 44px; bottom: 0; left: 0;
overflow-y: auto;
}
.main {
margin-left: 240px;
flex: 1;
padding: 24px 32px;
min-width: 0;
}
/* ─── Sidebar ────────────────────────────────────── */
.sidebar-logo {
padding: 8px 20px 24px;
font-size: 15px;
font-weight: 700;
color: var(--accent);
letter-spacing: -0.3px;
}
.sidebar-logo small {
display: block;
font-size: 11px;
color: var(--text-dim);
font-weight: 400;
margin-top: 2px;
}
.nav-section {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-dim);
padding: 16px 20px 6px;
}
.nav-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 20px;
cursor: pointer;
color: var(--text-dim);
font-size: 13px;
transition: all 0.15s;
border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active {
background: var(--bg-hover);
color: var(--accent);
border-left-color: var(--accent);
}
.nav-icon { font-size: 16px; width: 20px; text-align: center; }
.nav-badge {
margin-left: auto;
background: var(--bg);
padding: 1px 8px;
border-radius: 10px;
font-size: 11px;
color: var(--text-dim);
}
/* ─── Page Header ────────────────────────────────── */
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
}
.page-header h1 {
font-size: 22px;
font-weight: 600;
letter-spacing: -0.3px;
}
.page-header-actions { display: flex; gap: 8px; }
/* ─── Dashboard Cards ────────────────────────────── */
.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 32px;
}
.stat-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
}
.stat-card .label {
font-size: 12px;
color: var(--text-dim);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.stat-card .value {
font-size: 28px;
font-weight: 700;
margin-top: 4px;
}
.stat-card .sub {
font-size: 12px;
color: var(--text-dim);
margin-top: 2px;
}
/* ─── Buttons ────────────────────────────────────── */
.btn {
padding: 7px 16px;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--bg-card);
color: var(--text);
font-size: 13px;
cursor: pointer;
transition: all 0.15s;
display: inline-flex;
align-items: center;
gap: 6px;
}
.btn:hover { background: var(--bg-hover); border-color: var(--text-dim); }
.btn-primary {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: rgba(239,68,68,0.1); border-color: var(--red); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #16a34a; }
/* ─── Search / Filter ────────────────────────────── */
.search-bar {
display: flex;
align-items: center;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0 12px;
margin-bottom: 16px;
}
.search-bar input {
background: none;
border: none;
color: var(--text);
padding: 8px;
flex: 1;
font-size: 13px;
outline: none;
}
.search-bar input::placeholder { color: var(--text-dim); }
.search-icon { color: var(--text-dim); font-size: 14px; }
.filter-row {
display: flex;
gap: 8px;
margin-bottom: 16px;
flex-wrap: wrap;
}
.filter-chip {
padding: 4px 12px;
border-radius: 20px;
border: 1px solid var(--border);
background: var(--bg-card);
color: var(--text-dim);
font-size: 12px;
cursor: pointer;
transition: all 0.15s;
}
.filter-chip:hover, .filter-chip.active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
/* ─── Tables ─────────────────────────────────────── */
.table-container {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
thead th {
text-align: left;
padding: 10px 14px;
background: var(--bg-hover);
color: var(--text-dim);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 600;
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
cursor: pointer;
user-select: none;
}
thead th:hover { color: var(--text); }
tbody td {
padding: 10px 14px;
border-bottom: 1px solid var(--border);
}
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }
/* ─── Type Badge ─────────────────────────────────── */
.type-badge {
display: inline-block;
padding: 2px 10px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #fff;
}
.type-NORMAL { background: #a8a878; }
.type-FIRE { background: #f08030; }
.type-WATER { background: #6890f0; }
.type-ELECTRIC { background: #f8d030; color: #333; }
.type-GRASS { background: #78c850; }
.type-ICE { background: #98d8d8; color: #333; }
.type-FIGHTING { background: #c03028; }
.type-POISON { background: #a040a0; }
.type-GROUND { background: #e0c068; color: #333; }
.type-FLYING { background: #a890f0; }
.type-PSYCHIC { background: #f85888; }
.type-BUG { background: #a8b820; }
.type-ROCK { background: #b8a038; }
.type-GHOST { background: #705898; }
.type-DRAGON { background: #7038f8; }
.type-DARK { background: #705848; }
.type-STEEL { background: #b8b8d0; color: #333; }
.type-FAIRY { background: #ee99ac; color: #333; }
.type-STELLAR { background: #44628e; }
.cat-PHYSICAL { background: #c92112; }
.cat-SPECIAL { background: #4f5870; }
.cat-STATUS { background: #8c888c; }
/* ─── Cards Grid ─────────────────────────────────── */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 16px;
}
.trainer-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: border-color 0.15s;
}
.trainer-card:hover { border-color: var(--accent); }
.trainer-card-header {
padding: 14px 16px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
background: var(--bg-hover);
}
.trainer-card-header h3 {
font-size: 14px;
font-weight: 600;
}
.trainer-card-header .trainer-id {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
}
.trainer-meta {
padding: 10px 16px;
display: flex;
gap: 16px;
font-size: 12px;
color: var(--text-dim);
border-bottom: 1px solid var(--border);
}
.trainer-meta span { display: flex; align-items: center; gap: 4px; }
.trainer-pokemon {
padding: 12px 16px;
}
.trainer-pokemon-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 0;
font-size: 13px;
}
.trainer-pokemon-item .species { font-weight: 500; }
.trainer-pokemon-item .level { color: var(--text-dim); font-size: 12px; }
.trainer-card-actions {
padding: 10px 16px;
border-top: 1px solid var(--border);
display: flex;
gap: 8px;
justify-content: flex-end;
}
/* ─── Encounter Cards ────────────────────────────── */
.encounter-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.encounter-card-header {
padding: 14px 16px;
background: var(--bg-hover);
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
}
.encounter-card-header h3 { font-size: 14px; }
.encounter-section {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
}
.encounter-section:last-child { border-bottom: none; }
.encounter-section h4 {
font-size: 11px;
text-transform: uppercase;
color: var(--text-dim);
letter-spacing: 0.5px;
margin-bottom: 8px;
}
.encounter-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 3px 0;
font-size: 13px;
}
.encounter-row .rate {
color: var(--text-dim);
font-size: 11px;
min-width: 32px;
text-align: right;
}
/* ─── Config Section ─────────────────────────────── */
.config-group {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 16px;
overflow: hidden;
}
.config-group-header {
padding: 12px 16px;
background: var(--bg-hover);
border-bottom: 1px solid var(--border);
font-size: 13px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
}
.config-group-header .count { color: var(--text-dim); font-size: 12px; font-weight: 400; }
.config-row {
display: flex;
align-items: center;
padding: 8px 16px;
border-bottom: 1px solid var(--border);
font-size: 13px;
gap: 12px;
}
.config-row:last-child { border-bottom: none; }
.config-row:hover { background: var(--bg-hover); }
.config-name {
font-family: monospace;
font-size: 12px;
min-width: 280px;
color: var(--cyan);
}
.config-value {
font-family: monospace;
font-size: 12px;
min-width: 120px;
}
.config-value select, .config-value input {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text);
padding: 3px 8px;
font-size: 12px;
font-family: monospace;
}
.config-comment {
flex: 1;
font-size: 11px;
color: var(--text-dim);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ─── Modal ──────────────────────────────────────── */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
width: 600px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.modal-header {
padding: 16px 20px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
background: var(--bg-card);
z-index: 1;
}
.modal-header h2 { font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer {
padding: 12px 20px;
border-top: 1px solid var(--border);
display: flex;
justify-content: flex-end;
gap: 8px;
position: sticky;
bottom: 0;
background: var(--bg-card);
}
/* ─── Form ───────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label {
display: block;
font-size: 12px;
color: var(--text-dim);
margin-bottom: 4px;
font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
width: 100%;
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
padding: 8px 12px;
font-size: 13px;
outline: none;
transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
border-color: var(--accent);
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.pokemon-form-card {
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
padding: 14px;
margin-bottom: 12px;
position: relative;
}
.pokemon-form-card h4 {
font-size: 13px;
margin-bottom: 10px;
color: var(--accent);
}
.remove-mon {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
color: var(--red);
cursor: pointer;
font-size: 16px;
}
/* ─── Toast ──────────────────────────────────────── */
.toast {
position: fixed;
bottom: 24px;
right: 24px;
background: var(--green);
color: #fff;
padding: 10px 20px;
border-radius: 6px;
font-size: 13px;
font-weight: 500;
z-index: 2000;
animation: slideUp 0.3s ease;
}
.toast.error { background: var(--red); }
@keyframes slideUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
/* ─── Pagination ─────────────────────────────────── */
.pagination {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
font-size: 13px;
color: var(--text-dim);
}
.pagination-btns { display: flex; gap: 4px; }
/* ─── Loading ────────────────────────────────────── */
.spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 2px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center {
display: flex;
align-items: center;
justify-content: center;
padding: 60px;
gap: 12px;
color: var(--text-dim);
}
/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
/* ─── PR Modal ──────────────────────────────────── */
.pr-changes-list {
list-style: none;
margin: 12px 0;
}
.pr-changes-list li {
padding: 6px 10px;
font-size: 12px;
font-family: monospace;
color: var(--cyan);
background: var(--bg);
border: 1px solid var(--border);
border-radius: 4px;
margin-bottom: 4px;
}
.help-text {
font-size: 11px;
color: var(--text-dim);
margin-top: 4px;
line-height: 1.4;
}
.help-text a {
color: var(--accent);
text-decoration: none;
}
.help-text a:hover {
text-decoration: underline;
}
/* ─── Map Area Detail View ──────────────────────── */
.map-area-header {
border-radius: var(--radius);
overflow: hidden;
margin-bottom: 24px;
border: 1px solid var(--border);
}
.map-area-banner {
height: 140px;
display: flex;
align-items: flex-end;
padding: 20px 24px;
position: relative;
background-size: cover;
background-position: center;
image-rendering: pixelated;
}
.map-area-banner::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(transparent 30%, rgba(15,20,25,0.85));
}
.map-area-banner-content {
position: relative;
z-index: 1;
display: flex;
align-items: flex-end;
justify-content: space-between;
width: 100%;
}
.map-area-banner h1 {
font-size: 24px;
font-weight: 700;
text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.map-area-banner .map-id-label {
font-size: 12px;
color: rgba(255,255,255,0.7);
font-family: monospace;
margin-top: 2px;
}
.map-area-banner .map-type-pill {
padding: 4px 14px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
background: rgba(255,255,255,0.15);
backdrop-filter: blur(4px);
color: #fff;
}
.map-area-info-bar {
display: flex;
gap: 24px;
padding: 12px 24px;
background: var(--bg-card);
border-top: 1px solid var(--border);
font-size: 12px;
color: var(--text-dim);
flex-wrap: wrap;
}
.map-area-info-bar span {
display: flex;
align-items: center;
gap: 6px;
}
.map-area-info-bar .info-icon {
font-size: 14px;
}
/* banner colors by map type (used as fallback behind preview images) */
.banner-ROUTE { background-color: #1a4a2e; }
.banner-CITY { background-color: #1a2a4e; }
.banner-TOWN { background-color: #3a2a1a; }
.banner-UNDERGROUND{ background-color: #2a1a2e; }
.banner-UNDERWATER { background-color: #0a2a3e; }
.banner-OCEAN_ROUTE{ background-color: #0a2040; }
.banner-INDOOR { background-color: #2a2020; }
.banner-SECRET_BASE{ background-color: #2a2a10; }
.banner-NONE { background-color: #1a1a2e; }
/* ─── Map Area Sections ─────────────────────────── */
.map-area-sections {
display: flex;
flex-direction: column;
gap: 20px;
}
.map-area-section {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.map-area-section-header {
padding: 14px 20px;
background: var(--bg-hover);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
user-select: none;
}
.map-area-section-header:hover {
background: rgba(79,143,247,0.05);
}
.map-area-section-header h2 {
font-size: 15px;
font-weight: 600;
display: flex;
align-items: center;
gap: 10px;
}
.map-area-section-header .section-icon {
font-size: 18px;
width: 24px;
text-align: center;
}
.map-area-section-header .section-count {
font-size: 12px;
color: var(--text-dim);
font-weight: 400;
}
.map-area-section-body {
padding: 16px 20px;
}
.map-area-section-body.collapsed {
display: none;
}
/* ─── Encounter Chart ───────────────────────────── */
.encounter-chart-group {
margin-bottom: 20px;
}
.encounter-chart-group:last-child {
margin-bottom: 0;
}
.encounter-chart-group h3 {
font-size: 13px;
font-weight: 600;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 8px;
}
.encounter-chart-group h3 .rate-badge {
font-size: 11px;
font-weight: 400;
color: var(--text-dim);
background: var(--bg);
padding: 2px 8px;
border-radius: 10px;
}
.encounter-bar-row {
display: flex;
align-items: center;
gap: 12px;
padding: 4px 0;
font-size: 13px;
}
.encounter-bar-species {
min-width: 140px;
font-weight: 500;
}
.encounter-bar-track {
flex: 1;
height: 20px;
background: var(--bg);
border-radius: 4px;
overflow: hidden;
position: relative;
}
.encounter-bar-fill {
height: 100%;
border-radius: 4px;
min-width: 2px;
transition: width 0.3s ease;
}
.encounter-bar-level {
min-width: 70px;
text-align: right;
font-size: 12px;
color: var(--text-dim);
}
.encounter-bar-pct {
min-width: 40px;
text-align: right;
font-size: 12px;
font-weight: 600;
}
/* ─── Trainer List in Map Area ──────────────────── */
.area-trainer-row {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 0;
border-bottom: 1px solid var(--border);
}
.area-trainer-row:last-child { border-bottom: none; }
.area-trainer-icon {
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
}
.area-trainer-info {
flex: 1;
min-width: 0;
}
.area-trainer-name {
font-size: 13px;
font-weight: 600;
}
.area-trainer-detail {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
}
/* ─── Item List in Map Area ─────────────────────── */
.area-item-row {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--border);
font-size: 13px;
}
.area-item-row:last-child { border-bottom: none; }
.area-item-icon {
width: 28px;
height: 28px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
flex-shrink: 0;
}
.area-item-icon.visible { background: var(--accent); color: #fff; }
.area-item-icon.hidden { background: var(--purple); color: #fff; }
.area-item-name { font-weight: 500; flex: 1; }
.area-item-type {
font-size: 11px;
padding: 2px 8px;
border-radius: 10px;
background: var(--bg);
color: var(--text-dim);
}
.area-item-coords {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
}
/* ─── Map Properties Grid ───────────────────────── */
.map-props-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 12px;
}
.map-prop {
display: flex;
flex-direction: column;
gap: 4px;
}
.map-prop label {
font-size: 11px;
color: var(--text-dim);
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 500;
}
.map-prop select, .map-prop input {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
padding: 7px 10px;
font-size: 13px;
outline: none;
}
.map-prop select:focus, .map-prop input:focus {
border-color: var(--accent);
}
/* ─── Connections ───────────────────────────────── */
.connection-row {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--border);
font-size: 13px;
}
.connection-row:last-child { border-bottom: none; }
.connection-dir {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
padding: 3px 10px;
border-radius: 4px;
min-width: 60px;
text-align: center;
}
.connection-dir.up { background: rgba(34,197,94,0.15); color: var(--green); }
.connection-dir.down { background: rgba(239,68,68,0.15); color: var(--red); }
.connection-dir.left { background: rgba(168,85,247,0.15); color: var(--purple); }
.connection-dir.right { background: rgba(79,143,247,0.15); color: var(--accent); }
.connection-dir.dive { background: rgba(6,182,212,0.15); color: var(--cyan); }
.connection-dir.emerge{ background: rgba(234,179,8,0.15); color: var(--yellow); }
.connection-map {
font-family: monospace;
font-size: 12px;
flex: 1;
}
/* ─── Back Button ───────────────────────────────── */
.back-btn {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--text-dim);
font-size: 13px;
cursor: pointer;
padding: 6px 0;
margin-bottom: 16px;
border: none;
background: none;
transition: color 0.15s;
}
.back-btn:hover { color: var(--accent); }
/* ─── Map Area List Cards ───────────────────────── */
.map-list-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
cursor: pointer;
transition: all 0.15s;
}
.map-list-card:hover {
border-color: var(--accent);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.map-list-card-banner {
height: 80px;
position: relative;
background-size: cover;
background-position: center;
image-rendering: pixelated;
}
.map-list-card-body {
padding: 12px 16px;
}
.map-list-card-body h3 {
font-size: 14px;
font-weight: 600;
margin-bottom: 4px;
}
.map-list-card-body .map-list-id {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
margin-bottom: 8px;
}
.map-list-card-tags {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.map-list-card-tags .tag {
font-size: 10px;
padding: 2px 8px;
border-radius: 10px;
background: var(--bg);
color: var(--text-dim);
}
.map-list-card-tags .tag.has-data {
background: rgba(79,143,247,0.15);
color: var(--accent);
}
.map-list-card-tags .tag.has-encounters {
background: rgba(34,197,94,0.15);
color: var(--green);
}
.map-list-card-tags .tag.has-trainers {
background: rgba(239,68,68,0.15);
color: var(--red);
}
.map-list-card-tags .tag.has-items {
background: rgba(234,179,8,0.15);
color: var(--yellow);
}
/* ─── Edit Inline Encounter Table ───────────────── */
.enc-edit-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.enc-edit-table th {
text-align: left;
padding: 6px 8px;
font-size: 11px;
text-transform: uppercase;
color: var(--text-dim);
letter-spacing: 0.5px;
font-weight: 600;
border-bottom: 1px solid var(--border);
}
.enc-edit-table td {
padding: 4px 8px;
border-bottom: 1px solid var(--border);
}
.enc-edit-table input {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: 4px;
color: var(--text);
padding: 4px 8px;
font-size: 12px;
font-family: monospace;
outline: none;
width: 100%;
}
.enc-edit-table input:focus {
border-color: var(--accent);
}
.enc-edit-table input[type="number"] {
width: 60px;
}
/* ─── Map Preview Image ────────────────────────── */
.map-preview-container {
text-align: center;
padding: 16px;
}
.map-preview-container img {
max-width: 100%;
height: auto;
image-rendering: pixelated;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--bg);
}
/* ─── Empty State ───────────────────────────────── */
.empty-state {
text-align: center;
padding: 24px;
color: var(--text-dim);
font-size: 13px;
}
.empty-state .empty-icon {
font-size: 32px;
margin-bottom: 8px;
opacity: 0.5;
}
/* ─── Sprite Display ───────────────────────────── */
.sprite-container {
flex-shrink: 0;
border-radius: 6px;
overflow: hidden;
background: var(--bg);
display: flex;
align-items: center;
justify-content: flex-start;
}
.sprite-fallback {
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 700;
color: var(--text-dim);
background: var(--bg-hover);
border-radius: 6px;
}
/* ─── Warp Rows ────────────────────────────────── */
.warp-row {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 0;
border-bottom: 1px solid var(--border);
font-size: 13px;
}
.warp-row:last-child { border-bottom: none; }
.warp-icon {
width: 36px;
height: 36px;
border-radius: 50%;
background: rgba(168,85,247,0.15);
color: var(--purple);
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
}
.warp-info { flex: 1; min-width: 0; }
.warp-dest {
font-size: 13px;
font-weight: 600;
}
.warp-detail {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
}
.warp-coords {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
min-width: 60px;
text-align: right;
}
/* ─── NPC Table ────────────────────────────────── */
.npc-table {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.npc-table-header {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
background: var(--bg-hover);
border-bottom: 1px solid var(--border);
font-size: 11px;
text-transform: uppercase;
color: var(--text-dim);
letter-spacing: 0.5px;
font-weight: 600;
}
.npc-row {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
border-bottom: 1px solid var(--border);
font-size: 13px;
}
.npc-row:last-child { border-bottom: none; }
.npc-row:hover { background: var(--bg-hover); }
.npc-row-info { flex: 2; min-width: 0; }
.npc-row-name {
font-weight: 600;
font-size: 13px;
}
.npc-row-detail {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.npc-row-map {
flex: 1;
font-size: 12px;
color: var(--accent);
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.npc-row-map:hover { text-decoration: underline; }
.npc-row-coords {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
min-width: 70px;
text-align: right;
}
.npc-row-actions {
display: flex;
gap: 4px;
min-width: 130px;
justify-content: flex-end;
}
/* ─── Pokemon Stat Bar ─────────────────────────── */
.stat-bar {
height: 6px;
background: var(--bg);
border-radius: 3px;
overflow: hidden;
margin-top: 2px;
}
.stat-bar-fill {
height: 100%;
border-radius: 3px;
transition: width 0.3s ease;
}
/* ─── Mobile Menu Toggle ─────────────────────── */
.mobile-menu-btn {
display: none;
background: none;
border: none;
color: var(--text);
font-size: 22px;
cursor: pointer;
padding: 4px 8px;
line-height: 1;
}
.sidebar-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.5);
z-index: 599;
}
/* ─── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
/* Auth bar */
.auth-bar-inner { padding: 0 12px; }
.auth-logo { font-size: 12px; }
#auth-status { display: none; }
.mobile-menu-btn { display: block; }
/* Sidebar: hidden by default, shown as overlay */
.sidebar {
transform: translateX(-100%);
transition: transform 0.25s ease;
z-index: 600;
width: 260px;
}
.sidebar.open {
transform: translateX(0);
}
.sidebar-overlay.active {
display: block;
}
/* Main content: full width */
.main {
margin-left: 0;
padding: 16px;
}
/* Page header */
.page-header {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.page-header h1 { font-size: 18px; }
/* Cards grid */
.card-grid {
grid-template-columns: 1fr;
}
/* Stat grid */
.stat-grid {
grid-template-columns: 1fr 1fr;
gap: 10px;
}
/* Map props grid */
.map-props-grid {
grid-template-columns: 1fr 1fr;
}
/* Filter row: scroll horizontally */
.filter-row {
overflow-x: auto;
flex-wrap: nowrap;
padding-bottom: 4px;
-webkit-overflow-scrolling: touch;
}
.filter-chip {
white-space: nowrap;
flex-shrink: 0;
}
/* Tables: horizontal scroll */
.table-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
table { min-width: 600px; }
/* Modal: full-width on mobile */
.modal {
width: calc(100vw - 24px) !important;
max-width: calc(100vw - 24px) !important;
max-height: 90vh;
margin: 12px;
}
/* Form rows: stack vertically on small screens */
.form-row {
flex-direction: column;
gap: 0;
}
/* Buttons: larger touch targets */
.btn {
min-height: 36px;
padding: 8px 14px;
}
.btn-sm {
min-height: 32px;
padding: 6px 12px;
}
/* NPC table: simplify layout */
.npc-table-header { display: none; }
.npc-row {
flex-wrap: wrap;
gap: 8px;
padding: 10px 12px;
}
.npc-row-info { flex: 1 1 60%; min-width: 150px; }
.npc-row-map { flex: 1 1 100%; font-size: 11px; order: 3; }
.npc-row-coords { order: 4; }
.npc-row-actions { flex: 1 1 100%; order: 5; justify-content: flex-start; }
/* Map area info bar */
.map-area-info-bar {
gap: 12px;
padding: 10px 16px;
font-size: 11px;
}
/* Map area banner */
.map-area-banner { height: 100px; }
.map-area-banner h1 { font-size: 18px; }
/* Map area section body */
.map-area-section-body { padding: 12px; }
/* Config rows */
.config-row {
flex-direction: column;
gap: 6px;
align-items: flex-start;
}
.config-name { min-width: unset; font-size: 11px; }
.config-comment {
white-space: normal;
font-size: 10px;
}
/* Trainer/item/warp rows */
.area-trainer-row,
.area-item-row,
.warp-row,
.connection-row {
flex-wrap: wrap;
gap: 8px;
}
/* Encounter chart */
.encounter-bar-species { min-width: 100px; font-size: 12px; }
.encounter-bar-level { min-width: 50px; font-size: 11px; }
/* Toast: bottom center */
.toast {
left: 12px;
right: 12px;
bottom: 16px;
text-align: center;
}
/* Pagination */
.pagination {
flex-direction: column;
gap: 8px;
text-align: center;
}
}
@media (max-width: 480px) {
.stat-grid { grid-template-columns: 1fr; }
.map-props-grid { grid-template-columns: 1fr; }
.map-area-info-bar { flex-direction: column; gap: 6px; }
.encounter-bar-row { flex-wrap: wrap; }
.encounter-bar-species { min-width: 80px; flex: 1 1 100%; }
.encounter-bar-track { flex: 1 1 60%; }
}
/* ─── Section Tier Headers ────────────────────── */
.section-tier {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-dim);
padding: 20px 0 8px;
display: flex;
align-items: center;
gap: 10px;
}
.section-tier:first-child { padding-top: 0; }
.section-tier::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}
/* ─── NPC Card (expandable) ───────────────────── */
.npc-card {
border: 1px solid var(--border);
border-radius: 6px;
margin-bottom: 8px;
overflow: hidden;
transition: border-color 0.15s;
}
.npc-card:last-child { margin-bottom: 0; }
.npc-card:hover { border-color: var(--text-dim); }
.npc-card.expanded { border-color: var(--accent); }
.npc-card-header {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
cursor: pointer;
user-select: none;
background: var(--bg-card);
transition: background 0.15s;
}
.npc-card-header:hover { background: var(--bg-hover); }
.npc-card-info { flex: 1; min-width: 0; }
.npc-card-name {
font-size: 13px;
font-weight: 600;
display: flex;
align-items: center;
gap: 6px;
}
.npc-card-detail {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.npc-card-badges {
display: flex;
gap: 4px;
flex-shrink: 0;
}
.npc-badge {
font-size: 10px;
padding: 2px 8px;
border-radius: 10px;
font-weight: 600;
}
.npc-badge-trainer { background: rgba(239,68,68,0.15); color: var(--red); }
.npc-badge-script { background: rgba(168,85,247,0.15); color: var(--purple); }
.npc-badge-hidden { background: rgba(234,179,8,0.15); color: var(--yellow); }
.npc-card-expand {
font-size: 12px;
color: var(--text-dim);
transition: transform 0.2s;
flex-shrink: 0;
}
.npc-card.expanded .npc-card-expand { transform: rotate(90deg); }
.npc-card-body {
display: none;
border-top: 1px solid var(--border);
background: var(--bg);
}
.npc-card.expanded .npc-card-body { display: block; }
.npc-card-events {
padding: 12px 14px;
display: flex;
flex-direction: column;
gap: 10px;
}
.npc-event-group {
display: flex;
flex-direction: column;
gap: 4px;
}
.npc-event-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-dim);
font-weight: 600;
}
.npc-dialogue-preview {
font-size: 12px;
white-space: pre-wrap;
line-height: 1.5;
background: var(--bg-card);
padding: 8px 10px;
border-radius: 4px;
border: 1px solid var(--border);
max-height: 120px;
overflow-y: auto;
}
.npc-card-actions {
padding: 8px 14px;
border-top: 1px solid var(--border);
display: flex;
gap: 4px;
justify-content: flex-end;
background: var(--bg-card);
}
/* ─── Navigation Section (Routes + Doors) ───── */
.nav-subsection-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-dim);
padding: 10px 0 6px;
margin-top: 8px;
}
.nav-subsection-label:first-child { margin-top: 0; padding-top: 0; }
/* ─── Signs & Triggers combined ─────────────── */
.trigger-type-badge {
font-size: 10px;
padding: 2px 8px;
border-radius: 10px;
font-weight: 600;
}
.trigger-type-sign { background: rgba(234,179,8,0.15); color: var(--yellow); }
.trigger-type-step { background: rgba(6,182,212,0.15); color: var(--cyan); }
.trigger-type-secret { background: rgba(168,85,247,0.15); color: var(--purple); }
/* ─── Music Player Bar ───────────────────────── */
.music-player-bar {
position: fixed;
bottom: 0;
left: 240px;
right: 0;
background: var(--bg-card);
border-top: 1px solid var(--border);
padding: 10px 24px;
display: flex;
align-items: center;
justify-content: space-between;
z-index: 999;
box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.music-player-info {
display: flex;
align-items: center;
gap: 10px;
}
.music-player-icon {
font-size: 18px;
color: var(--accent);
}
.music-player-title {
font-size: 13px;
font-weight: 500;
text-transform: capitalize;
}
.music-player-controls {
display: flex;
gap: 6px;
}
/* ─── Music Cards ────────────────────────────── */
.music-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
transition: border-color 0.15s;
}
.music-card:hover { border-color: var(--accent); }
.music-card.music-playing {
border-color: var(--green);
box-shadow: 0 0 12px rgba(34,197,94,0.15);
}
.music-card-header {
padding: 14px 16px;
display: flex;
align-items: center;
justify-content: space-between;
background: var(--bg-hover);
border-bottom: 1px solid var(--border);
}
.music-card-header h3 {
font-size: 14px;
font-weight: 600;
text-transform: capitalize;
}
.music-card-id {
font-size: 11px;
color: var(--text-dim);
font-family: monospace;
margin-top: 2px;
}
.music-card-meta {
padding: 10px 16px;
font-size: 12px;
color: var(--text-dim);
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.music-file-tag {
font-family: monospace;
font-size: 11px;
padding: 1px 6px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 3px;
}
.music-no-file {
font-size: 11px;
color: var(--text-dim);
opacity: 0.6;
}
/* ─── Play Buttons ───────────────────────────── */
.music-play-btn {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font-size: 14px;
padding: 0;
flex-shrink: 0;
}
.music-play-btn.playing {
background: var(--green);
border-color: var(--green);
color: #fff;
}
.btn-play-inline {
background: none;
border: none;
color: var(--accent);
cursor: pointer;
font-size: 12px;
padding: 0 4px;
margin-left: 4px;
transition: color 0.15s;
}
.btn-play-inline:hover { color: var(--green); }
.map-music-info {
display: flex;
align-items: center;
}