This commit is contained in:
33333-33333 2026-06-19 20:52:40 +09:00
commit 8eb66f2e66
12 changed files with 2715 additions and 522 deletions

View file

@ -50,16 +50,40 @@ button {
margin-bottom: 16px;
}
.top-left {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
min-width: 0;
}
.room-link {
text-decoration: none;
white-space: nowrap;
background: rgba(255,255,255,0.86);
}
h1 {
margin: 0 0 3px;
margin: 0;
font-size: clamp(24px, 3.4vw, 42px);
letter-spacing: 0.03em;
white-space: nowrap;
}
.subtitle {
margin: 0;
color: var(--muted);
font-size: 14px;
font-size: clamp(11px, 1.1vw, 13px);
line-height: 1.35;
white-space: nowrap;
}
.top-actions {
@ -115,6 +139,7 @@ h1 {
min-height: var(--field-min-height, 620px);
display: block;
cursor: crosshair;
background: linear-gradient(180deg, #cfe3d3, #d9d0ad);
}
.field-dialog {
@ -161,6 +186,71 @@ h1 {
margin-top: 12px;
display: flex;
justify-content: flex-end;
gap: 8px;
}
.save-text-dialog-panel {
width: min(760px, calc(100vw - 30px));
}
.save-text-area {
width: 100%;
min-height: 180px;
margin-top: 10px;
padding: 10px;
border-radius: 12px;
border: 1px solid var(--line);
background: rgba(255,255,255,0.82);
color: var(--ink);
font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
resize: vertical;
word-break: break-all;
}
.save-text-actions { flex-wrap: wrap; }
.archive-reset-dialog-panel {
width: min(420px, 100%);
}
.archive-reset-actions {
justify-content: space-between;
gap: 10px;
}
.archive-reset-actions .btn {
min-width: 132px;
}
.ecology-dialog-panel {
width: min(760px, 100%);
}
.ecology-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.ecology-card {
display: grid;
grid-template-columns: 84px minmax(0, 1fr);
gap: 10px;
align-items: center;
padding: 12px;
border-radius: 14px;
background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(243,237,225,0.76));
border: 1px solid rgba(84,68,48,0.12);
}
.ecology-card img {
width: 84px;
height: 84px;
object-fit: contain;
filter: drop-shadow(0 8px 18px rgba(56, 44, 32, 0.10));
}
.ecology-card strong {
display: block;
margin-bottom: 4px;
font-size: 15px;
}
.ecology-card p {
margin: 0;
color: var(--muted);
font-size: 12px;
line-height: 1.55;
}
.toast {
@ -258,7 +348,50 @@ h1 {
.tool[data-tool="fence_v"] { --tool-icon: url("../assets/ui/tool_fence_v.png"); }
.tool[data-tool="fence_h"] { --tool-icon: url("../assets/ui/tool_fence_h.png"); }
.tool[data-tool="bed"] { --tool-icon: url("../assets/ui/tool_bed.png"); }
.tool[data-tool="poke"] { --tool-icon: url("../assets/ui/tool_poke.png"); }
.tool[data-tool="ball"] { --tool-icon: none; }
.tool[data-tool="ball"]::before {
content: "⚽";
background: none;
font-size: 24px;
line-height: 1;
filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12));
}
.tool[data-tool="ball"]::after {
content: "⚽";
background: none;
font-size: 48px;
line-height: 1;
opacity: 0.10;
right: -6px;
left: auto;
top: 50%;
bottom: auto;
transform: translateY(-50%);
width: 54px;
height: 54px;
}
.tool[data-tool="poke"] { --tool-icon: none; }
.tool[data-tool="poke"]::before {
content: "👈";
background: none;
font-size: 25px;
line-height: 1;
filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12));
}
.tool[data-tool="poke"]::after {
content: "👈";
background: none;
font-size: 48px;
line-height: 1;
opacity: 0.11;
right: -6px;
left: auto;
top: 50%;
bottom: auto;
transform: translateY(-50%);
width: 54px;
height: 54px;
}
.tool[data-tool="delete"] { --tool-icon: url("../assets/ui/tool_delete.png"); }
.tool[data-tool="new"] { --tool-icon: url("../assets/ui/tool_new.png"); }
.tool.selected {
@ -388,6 +521,7 @@ meter {
flex-direction: column;
gap: 7px;
font-size: 12px;
overscroll-behavior: contain;
}
.log-entry {
padding: 8px 9px;
@ -422,6 +556,8 @@ meter {
@media (max-width: 980px) {
#app { padding: 10px; }
.topbar { align-items: flex-start; flex-direction: column; }
.top-left { align-items: flex-start; flex-direction: column; }
.brand { align-items: center; flex-direction: row; gap: 10px; }
.layout { grid-template-columns: 1fr; }
.panel { max-height: none; overflow: visible; }
#gameCanvas { height: var(--field-mobile-height, 66vh); min-height: var(--field-mobile-min-height, 460px); }
@ -458,15 +594,34 @@ meter {
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-main-content {
max-height: 560px;
min-height: 320px;
height: min(78vh, 980px);
min-height: 520px;
max-height: calc(100vh - 120px);
overflow: auto;
overscroll-behavior: auto;
padding: 8px 4px 16px;
overscroll-behavior: contain;
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;
}
.lineage-main-content .lineage-tree {
@ -513,70 +668,19 @@ body::before {
box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
/* Compact family board: parent ┳ parent / child, without unrelated founders. */
.family-board { padding: 0; overflow: visible; }
.family-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(246px, 1fr));
gap: 10px 12px;
align-items: start;
padding: 2px 2px 10px;
}
.family-cluster {
position: relative;
min-height: 106px;
padding: 7px 7px 8px;
border-radius: 14px;
background: rgba(255,253,248,0.56);
border: 1px solid rgba(84,68,48,0.09);
contain: layout paint;
}
.family-parents {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
align-items: center;
}
.family-child-slot {
display: flex;
justify-content: center;
margin-top: 14px;
}
/* Family tree node primitives. The archive deliberately uses these nodes inside an SVG-backed tree, not the old card/grid UI. */
.family-node {
display: grid;
grid-template-columns: 22px minmax(0, 1fr);
align-items: center;
gap: 5px;
position: relative;
display: block;
min-width: 0;
min-height: 34px;
padding: 4px 6px;
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);
}
.family-child-slot .family-node { width: min(150px, 68%); }
.family-connector {
position: relative;
height: 12px;
margin: 0 42px;
}
.family-connector::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 7px;
height: 2px;
background: rgba(107, 88, 61, 0.55);
}
.family-connector span {
position: absolute;
left: calc(50% - 1px);
top: 7px;
width: 2px;
height: 16px;
background: rgba(107, 88, 61, 0.55);
overflow: hidden;
isolation: isolate;
}
.family-node.child {
border-color: rgba(103, 178, 44, 0.38);
@ -584,10 +688,26 @@ body::before {
}
.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.68; filter: grayscale(0.35); }
.family-node.dead { opacity: 0.9; filter: grayscale(0.32); }
.family-node.missing { opacity: 0.48; border-style: dashed; }
.family-node img { width: 22px; height: 22px; object-fit: contain; }
.family-copy { min-width: 0; line-height: 1.12; }
.family-portrait {
position: absolute;
right: -6px;
bottom: -8px;
width: 64px;
height: 64px;
z-index: 0;
pointer-events: none;
}
.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;
@ -595,21 +715,15 @@ body::before {
white-space: nowrap;
}
.family-copy .death-reason {
white-space: normal;
overflow: visible;
text-overflow: clip;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 1.12;
margin-top: 1px;
color: rgba(126, 80, 64, 0.92);
}
.family-copy strong { font-size: 11px; }
.family-copy span { color: var(--muted); font-size: 8.5px; margin-top: 1px; }
@media (max-width: 760px) {
.family-grid { grid-template-columns: 1fr; }
.family-cluster { min-height: 102px; }
}
.colony-card { overflow: visible; min-height: 0; flex: 0 0 auto; }
@ -678,193 +792,134 @@ body::before {
font-size: 13px;
color: rgba(64,52,38,0.86);
}
.lineage-generation {
display: grid;
grid-template-columns: 62px 1fr;
gap: 8px;
align-items: start;
padding: 8px 0;
border-top: 1px dashed rgba(84,68,48,0.13);
/* Family archive: actual top-down tree diagram. */
.lineage-family-tree {
overflow-x: auto;
overflow-y: visible;
padding: 10px 10px 22px;
-webkit-overflow-scrolling: touch;
overscroll-behavior-x: contain;
}
.lineage-generation:first-of-type { border-top: 0; }
.lineage-generation-label {
.lineage-family-tree h3 {
position: sticky;
left: 0;
z-index: 3;
width: max-content;
padding-right: 12px;
background: rgba(255,253,248,0.82);
border-radius: 8px;
}
.lineage-tree-hint {
position: sticky;
left: 0;
z-index: 3;
width: max-content;
max-width: 100%;
margin: -2px 0 8px;
padding: 5px 8px;
border-radius: 9px;
color: var(--muted);
font-size: 11px;
color: var(--muted);
padding-top: 8px;
background: rgba(255,255,255,0.62);
border: 1px solid rgba(84,68,48,0.08);
}
.lineage-generation-nodes {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: stretch;
}
.family-node.lineage-node {
width: 132px;
min-height: 54px;
align-items: flex-start;
}
.lineage-children {
display: block;
margin-top: 3px;
font-size: 9px;
color: rgba(117,106,94,0.84);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.lineage-empty-family {
color: var(--muted);
font-size: 12px;
padding: 10px;
}
.lineage-tree-panel {
.lineage-family-tree .lineage-tree-panel {
position: relative;
overflow: visible;
min-width: 360px;
margin-top: 6px;
border-radius: 14px;
background:
linear-gradient(90deg, rgba(84,68,48,0.045) 1px, transparent 1px),
linear-gradient(180deg, rgba(84,68,48,0.040) 1px, transparent 1px),
rgba(255,250,244,0.48);
background-size: 34px 34px, 34px 34px, auto;
border: 1px solid rgba(84,68,48,0.10);
}
.lineage-links {
.lineage-family-tree .lineage-links {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
pointer-events: none;
z-index: 1;
}
.lineage-links path {
.lineage-render-status {
position: sticky;
top: 0;
left: 0;
z-index: 6;
width: max-content;
margin: 0 0 8px;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
color: var(--muted);
background: rgba(255,255,255,0.88);
border: 1px solid rgba(84,68,48,0.10);
box-shadow: 0 4px 10px rgba(64,48,32,0.06);
}
.lineage-family-tree .lineage-links path {
fill: none;
stroke: rgba(107, 88, 61, 0.58);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.lineage-links .partner-link { stroke-width: 2.4; stroke: rgba(98, 80, 56, 0.66); }
.lineage-links .child-link { stroke-width: 1.9; stroke: rgba(107, 88, 61, 0.54); }
.tree-node {
.lineage-family-tree .lineage-links .partner-link {
stroke-width: 2.4;
stroke: rgba(98, 80, 56, 0.68);
stroke-dasharray: 5 4;
}
.lineage-family-tree .lineage-links .child-link {
stroke-width: 2;
stroke: rgba(107, 88, 61, 0.58);
}
.lineage-family-tree .tree-node {
position: absolute;
width: 132px;
min-height: 54px;
height: 68px;
min-height: 68px;
box-sizing: border-box;
align-items: flex-start;
z-index: 2;
}
.tree-generation-label {
.lineage-family-tree .tree-node.child {
border-color: rgba(103,178,44,0.34);
}
.lineage-family-tree .tree-generation-label {
position: absolute;
left: 0;
left: 10px;
width: 54px;
padding: 3px 0;
border-radius: 999px;
font-size: 10px;
color: var(--muted);
z-index: 1;
text-align: center;
background: rgba(255,255,255,0.70);
border: 1px solid rgba(84,68,48,0.08);
z-index: 2;
}
.lineage-family { overflow-x: auto; }
.lineage-family-readable {
overflow: visible;
}
.lineage-readable-grid {
display: grid;
grid-template-columns: minmax(300px, 1.05fr) minmax(280px, 0.95fr);
gap: 12px;
align-items: start;
}
.lineage-member-column,
.lineage-reproduction-column {
min-width: 0;
}
.lineage-generation-block {
padding: 8px 0;
border-top: 1px dashed rgba(84,68,48,0.12);
}
.lineage-generation-block:first-child { border-top: 0; padding-top: 0; }
.lineage-generation-block > b,
.lineage-column-title {
display: block;
margin: 0 0 7px;
color: rgba(84,68,48,0.72);
font-size: 11px;
}
.lineage-person-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
gap: 7px;
}
.family-node.lineage-person {
width: auto;
min-height: 46px;
}
.lineage-pair-list {
display: grid;
gap: 8px;
}
.lineage-pair-card {
padding: 8px;
border-radius: 12px;
border: 1px solid rgba(84,68,48,0.12);
background: rgba(255,253,248,0.70);
}
.lineage-pair-parents,
.lineage-pair-children {
display: flex;
flex-wrap: wrap;
gap: 5px;
align-items: center;
}
.lineage-pair-parents {
padding-bottom: 5px;
}
.lineage-pair-children {
padding-top: 5px;
border-top: 1px solid rgba(84,68,48,0.08);
}
.lineage-plus {
color: rgba(84,68,48,0.44);
font-weight: 700;
line-height: 28px;
}
.lineage-birth-arrow {
color: rgba(107, 88, 61, 0.62);
font-size: 14px;
line-height: 1;
padding: 1px 0 3px 13px;
}
.lineage-mini {
display: inline-grid;
grid-template-columns: 20px minmax(0, 1fr);
grid-template-rows: auto auto;
gap: 0 4px;
align-items: center;
max-width: 132px;
min-width: 88px;
padding: 4px 6px;
.lineage-family-tree .lineage-empty-family {
position: absolute;
left: 72px;
bottom: 8px;
padding: 5px 8px;
border-radius: 9px;
border: 1px solid rgba(84,68,48,0.12);
background: rgba(255,255,255,0.64);
background: rgba(255,255,255,0.70);
}
.lineage-mini.child {
border-color: rgba(103,178,44,0.28);
background: rgba(246,255,235,0.62);
}
.lineage-mini.dead { opacity: 0.64; filter: grayscale(0.25); }
.lineage-mini img {
grid-row: 1 / span 2;
width: 20px;
height: 20px;
object-fit: contain;
}
.lineage-mini b,
.lineage-mini small {
display: block;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.lineage-mini b { font-size: 10px; line-height: 1.1; }
.lineage-mini small { color: var(--muted); font-size: 8px; line-height: 1.1; }
@media (max-width: 760px) {
.lineage-readable-grid { grid-template-columns: 1fr; }
@media (max-width: 720px) {
.ecology-grid { grid-template-columns: 1fr; }
.ecology-card { grid-template-columns: 68px minmax(0, 1fr); }
.ecology-card img { width: 68px; height: 68px; }
}
@media (max-width: 720px) {
.lineage-main-content {
height: 70vh;
min-height: 420px;
max-height: none;
}
}