tarinai/css/panel.css
2026-06-29 21:02:04 +09:00

241 lines
6 KiB
CSS

/* CSS split file; preserve manifest load order. */
.lineage-main-card {
margin-top: 16px;
min-height: 0;
}
.lineage-main-card h2 {
margin-bottom: 6px;
}
.lineage-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 8px;
flex-wrap: wrap;
}
.lineage-head h2 { margin-bottom: 0; }
.lineage-title-note {
display: inline-block;
margin-left: 10px;
font-size: 12px;
font-weight: 700;
color: rgba(126, 86, 52, 0.78);
vertical-align: middle;
}
.lineage-main-content {
height: min(78vh, 980px);
min-height: 520px;
max-height: calc(100vh - 120px);
overflow: auto;
overscroll-behavior: auto;
padding: 10px 6px 24px;
background: rgba(255,250,244,0.48);
border-radius: 14px;
border: 1px solid rgba(84,68,48,0.10);
scrollbar-gutter: stable both-edges;
}
.lineage-forest {
display: flex;
flex-direction: column;
gap: 12px;
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background:
radial-gradient(circle at 8% 20%, rgba(255,255,255,0.62), transparent 16%),
radial-gradient(circle at 92% 18%, rgba(255,255,255,0.45), transparent 18%),
linear-gradient(180deg, transparent 0%, rgba(114, 152, 78, 0.05) 100%);
}
.stage-wrap::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background:
radial-gradient(circle at 18% 14%, rgba(255,255,255,0.12), transparent 18%),
radial-gradient(circle at 84% 10%, rgba(255,255,255,0.09), transparent 16%),
linear-gradient(180deg, rgba(255,255,255,0.07), transparent 24%);
z-index: 1;
}
#gameCanvas {
position: relative;
z-index: 0;
}
.card::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: inherit;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
/* Family tree node primitives. The archive deliberately uses these nodes inside an SVG-backed tree, not the old card/grid UI. */
.family-node {
position: relative;
display: block;
min-width: 0;
min-height: 34px;
padding: 6px 8px;
border-radius: 10px;
background: linear-gradient(180deg, rgba(255,253,248,0.96), rgba(248,241,229,0.90));
border: 1px solid rgba(84,68,48,0.14);
box-shadow: 0 3px 8px rgba(64,48,32,0.045);
overflow: hidden;
isolation: isolate;
}
.family-node.child {
border-color: rgba(103, 178, 44, 0.38);
box-shadow: inset 0 0 0 1px rgba(156,232,75,0.17), 0 3px 8px rgba(64,48,32,0.045);
}
.family-node[data-family-tarinai-id] { cursor: pointer; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.family-node[data-family-tarinai-id]:hover { transform: translateY(-1px); border-color: rgba(112,178,66,0.42); box-shadow: 0 5px 12px rgba(64,48,32,0.08); }
.family-node.dead { opacity: 0.9; filter: grayscale(0.32); }
.family-node.missing { opacity: 0.48; border-style: dashed; }
.family-portrait {
position: absolute;
right: -6px;
bottom: -8px;
width: calc(64px * var(--family-icon-scale, 1));
height: calc(64px * var(--family-icon-scale, 1));
z-index: 0;
pointer-events: none;
}
.family-genetic-stats {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1px 5px;
margin-top: 2px;
font-size: 9.7px;
line-height: 1.13;
color: rgba(88, 70, 48, 0.86);
letter-spacing: -0.02em;
white-space: normal;
max-width: 82px;
}
.family-genetic-stats span {
display: inline-flex;
gap: 1px;
min-width: 0;
white-space: nowrap;
}
.family-genetic-stats b,
.family-fight-stat b {
font-weight: 800;
color: rgba(120, 86, 30, 0.92);
}
.family-fight-stat {
display: block;
margin-top: 1px;
max-width: 82px;
font-size: 9.7px;
line-height: 1.13;
color: rgba(88, 70, 48, 0.82);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.lineage-family-tree .tree-node.champion {
border-color: rgba(202, 146, 33, 0.58);
box-shadow: inset 0 0 0 1px rgba(247, 200, 64, 0.30), 0 3px 8px rgba(120, 78, 12, 0.09);
}
.lineage-family-tree .tree-node.champion::before {
content: "♛";
position: absolute;
right: 6px;
top: 4px;
z-index: 2;
font-size: 14px;
color: rgba(158, 102, 20, 0.95);
text-shadow: 0 1px 0 rgba(255,255,255,0.70);
}
.family-node.alive .family-portrait { opacity: 0.80; }
.family-node.dead .family-portrait { opacity: 0.20; }
.family-portrait img {
width: 100%;
height: 100%;
object-fit: contain;
filter: saturate(0.95);
}
.family-copy { position: relative; z-index: 1; min-width: 0; line-height: 1.12; max-width: calc(100% - 8px); }
.family-copy strong, .family-copy span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.family-personality-tags {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-auto-rows: minmax(13px, auto);
align-items: stretch;
overflow: visible !important;
text-overflow: clip !important;
gap: 2px 3px;
margin-top: 2px;
white-space: normal !important;
max-height: none;
max-width: 100%;
width: 100%;
}
.family-personality-tags em {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
max-width: 100%;
padding: 1px 3px;
border-radius: 999px;
background: rgba(103,178,44,0.11);
border: 1px solid rgba(103,178,44,0.20);
color: rgba(64,72,48,0.86);
font-size: 8.2px;
font-style: normal;
line-height: 1.18;
overflow: visible;
text-overflow: clip;
white-space: normal;
overflow-wrap: anywhere;
word-break: keep-all;
}
.tool[data-tip] { position: relative; }
.lineage-family-tree .tree-node .family-copy {
max-width: calc(100% - 8px);
width: 100%;
}
.lineage-family-tree .tree-node .family-copy strong,
.lineage-family-tree .tree-node .family-copy > span:not(.family-genetic-stats):not(.family-fight-stat):not(.family-personality-tags) {
max-width: 100%;
}
.lineage-family-tree .tree-node .family-personality-tags {
max-width: 100%;
width: 100%;
}
.lineage-family-tree .tree-node .family-personality-tags em {
overflow: visible;
text-overflow: clip;
white-space: normal;
}