@import url("https://fonts.googleapis.com/css2?family=Yomogi&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&family=M+PLUS+Rounded+1c:wght@400;500;700&family=Yomogi&display=swap"); :root { --bg: #f7f5ec; --panel: rgba(255,251,245,0.88); --ink: #2a241d; --muted: #756a5e; --line: rgba(84, 68, 48, 0.18); --accent: #9ce84b; --accent-2: #f5a8b7; --danger: #b64545; --shadow: 0 18px 50px rgba(64, 48, 32, 0.14); --radius: 18px; --bubble-font: "Yomogi", "Zen Maru Gothic", "M PLUS Rounded 1c", ui-rounded, sans-serif; } * { box-sizing: border-box; } body { margin: 0; font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif; background: radial-gradient(circle at 12% 0%, rgba(168, 228, 113, 0.28), transparent 33%), radial-gradient(circle at 88% 8%, rgba(255, 222, 147, 0.24), transparent 28%), radial-gradient(circle at 82% 90%, rgba(126, 181, 120, 0.16), transparent 34%), linear-gradient(180deg, #dff0ff 0%, #edf8ff 12%, #f9f6eb 46%, var(--bg) 100%); color: var(--ink); min-height: 100vh; overflow-x: hidden; position: relative; } button { font: inherit; color: inherit; } #app { width: min(1480px, 100vw); margin: 0 auto; padding: 18px; position: relative; } .topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; 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; font-size: clamp(24px, 3.4vw, 42px); letter-spacing: 0.03em; white-space: nowrap; } .subtitle { margin: 0; color: var(--muted); font-size: clamp(11px, 1.1vw, 13px); line-height: 1.35; white-space: nowrap; } .top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; } .btn, .tool { border: 1px solid var(--line); background: rgba(255,255,255,0.76); border-radius: 999px; padding: 9px 13px; cursor: pointer; box-shadow: 0 4px 14px rgba(80,60,40,0.06); transition: transform 130ms ease, background 130ms ease, border-color 130ms ease; user-select: none; } .btn:hover, .tool:hover { transform: translateY(-1px); background: #fff; } .btn:active, .tool:active { transform: translateY(1px); } .btn.primary { background: linear-gradient(180deg, #a9ef5d, #8bdc3f); border-color: rgba(89, 128, 47, 0.28); } .btn.danger { color: #7a2828; } .layout { display: grid; grid-template-columns: minmax(520px, 1fr) 380px; gap: 16px; align-items: stretch; } .stage-wrap { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.46), rgba(246, 240, 228, 0.56)); border: 1px solid rgba(84, 68, 48, 0.12); border-radius: calc(var(--radius) + 8px); overflow: hidden; box-shadow: 0 16px 42px rgba(42, 45, 80, 0.12), inset 0 0 0 1px rgba(255,255,255,0.24); min-height: var(--field-min-height, 620px); } #gameCanvas { width: 100%; height: var(--field-height, calc(100vh - 140px)); min-height: var(--field-min-height, 620px); display: block; cursor: crosshair; background: linear-gradient(180deg, #cfe3d3, #d9d0ad); } .field-dialog { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 18px; background: rgba(34, 29, 22, 0.38); backdrop-filter: blur(3px); } .field-dialog.hidden { display: none; } .field-dialog-panel { width: min(440px, 100%); border-radius: 16px; padding: 16px; background: rgba(255, 252, 245, 0.96); border: 1px solid rgba(84,68,48,0.16); box-shadow: 0 18px 46px rgba(40, 32, 24, 0.22); } .field-dialog-panel h2 { margin: 0 0 12px; font-size: 17px; } .field-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .field-choice { min-height: 74px; border: 1px solid rgba(84,68,48,0.16); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(241,235,221,0.72)); cursor: pointer; color: var(--ink); } .field-choice:hover { border-color: rgba(112,178,66,0.45); } .field-choice strong, .field-choice span { display: block; } .field-choice strong { font-size: 15px; } .field-choice span { margin-top: 4px; color: var(--muted); font-size: 12px; } .field-dialog-actions { 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 { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(42,36,29,0.86); color: white; padding: 10px 16px; border-radius: 999px; font-size: 14px; pointer-events: none; opacity: 1; transition: opacity 200ms ease, transform 200ms ease; } .toast.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); } .panel { display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 120px); max-height: calc(100vh - 120px); overflow-y: auto; overflow-x: hidden; padding-right: 3px; } .card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 10px 30px rgba(64, 48, 32, 0.08); backdrop-filter: blur(10px); position: relative; } .card h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: 0.03em; } .tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; } .tool { border-radius: 14px; display: flex; align-items: center; gap: 7px; justify-content: flex-start; padding: 8px 8px 8px 42px; min-height: 46px; position: relative; overflow: hidden; background-repeat: no-repeat; background-position: 7px center, center; background-size: 30px 30px, cover; } .tool::before { content: ""; position: absolute; left: 7px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); background: var(--tool-icon) center / contain no-repeat; opacity: 0.92; filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12)); } .tool::after { content: ""; position: absolute; inset: 0; background: var(--tool-icon) right -8px center / 54px 54px no-repeat; opacity: 0.10; pointer-events: none; } .tool span { min-width: 16px; text-align: center; color: rgba(72,58,43,0.64); font-size: 10px; } .tool[data-tool="observe"] { --tool-icon: url("../assets/ui/tool_observe.png"); } .tool[data-tool="zunchi"] { --tool-icon: url("../assets/ui/tool_zunchi.png"); } .tool[data-tool="sweet"] { --tool-icon: url("../assets/ui/tool_sweet.png"); } .tool[data-tool="water"] { --tool-icon: url("../assets/ui/tool_water.png"); } .tool[data-tool="grass"] { --tool-icon: url("../assets/ui/tool_grass.png"); } .tool[data-tool="stone"] { --tool-icon: url("../assets/ui/tool_stone.png"); } .tool[data-tool="firecracker"] { --tool-icon: url("../assets/ui/tool_firecracker.png"); } .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="ball"] { --tool-icon: none; } .tool[data-tool="ball"]::before { content: "\26bd "; 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: "\26bd "; 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: "\1f448 "; 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: "\1f448 "; 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="pinch"] { --tool-icon: none; } .tool[data-tool="pinch"]::before { content: "\1f90f "; background: none; font-size: 25px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12)); } .tool[data-tool="pinch"]::after { content: "\1f90f "; 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="love_mochi"] { --tool-icon: none; } .tool[data-tool="love_mochi"]::before { content: "\1f495 "; background: none; font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12)); } .tool[data-tool="love_mochi"]::after { content: "\1f495 "; background: none; font-size: 46px; line-height: 1; opacity: 0.10; right: -6px; left: auto; top: 50%; bottom: auto; transform: translateY(-50%); width: 54px; height: 54px; } .tool[data-tool="fight_mochi"] { --tool-icon: none; } .tool[data-tool="fight_mochi"]::before { content: "\1f4a2 "; background: none; font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12)); } .tool[data-tool="fight_mochi"]::after { content: "\1f4a2 "; background: none; font-size: 46px; line-height: 1; opacity: 0.10; 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 { background: linear-gradient(180deg, #ffffff, #efffde); border-color: rgba(103, 178, 44, 0.52); box-shadow: inset 0 0 0 1px rgba(156,232,75,0.38), 0 8px 20px rgba(117, 166, 64, 0.13); } .hint { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 10px 0 0; } .tool-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .tool-head h2 { margin-bottom: 0; } .btn.mini { padding: 6px 10px; font-size: 12px; } .tool-body { margin-top: 12px; } .tool-palette { display: flex; flex-direction: column; gap: 9px; } .tool-category { border: 1px solid rgba(84,68,48,0.10); border-radius: 14px; background: rgba(255,255,255,0.34); overflow: hidden; } .tool-category-toggle { width: 100%; border: 0; border-bottom: 1px solid rgba(84,68,48,0.08); background: rgba(255,252,244,0.66); padding: 8px 10px; text-align: left; cursor: pointer; font-weight: 700; font-size: 12px; } .tool-category-toggle::before { content: "\25be "; display: inline-block; width: 16px; color: var(--muted); } .tool-category.collapsed .tool-category-toggle::before { content: "\25b8 "; } .tool-category-body { padding: 8px; } .tool-category.collapsed .tool-category-body { display: none; } .tool-size-badge { position: absolute; right: 7px; bottom: 6px; min-width: 20px; padding: 2px 5px; border-radius: 999px; background: rgba(42,36,29,0.68); color: #fff; font-size: 10px; line-height: 1; text-align: center; box-shadow: 0 1px 4px rgba(42,36,29,0.16); pointer-events: none; } .chart-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 3px 0 8px; } .chart-tabs button { border: 1px solid var(--line); background: rgba(255,255,255,0.62); border-radius: 999px; padding: 5px 4px; font-size: 11px; cursor: pointer; } .chart-tabs button.active { background: #efffde; border-color: rgba(103,178,44,0.46); font-weight: 700; } .log-accident { border-left-color: rgba(226, 136, 54, 0.76); } .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; } .stat { background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(246, 240, 228, 0.72)); border: 1px solid var(--line); border-radius: 13px; padding: 9px 8px; text-align: center; } .stat span { display: block; font-size: 11px; color: var(--muted); } .stat strong { font-size: 18px; } .meter-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; font-size: 12px; margin: 6px 0; } meter { width: 100%; height: 12px; accent-color: var(--accent); } .selected-card.hidden { display: none; } .selected-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .selected-head h2 { margin-bottom: 0; } .selected-close { width: 28px; height: 28px; border: 1px solid rgba(84,68,48,0.16); border-radius: 999px; background: rgba(255,255,255,0.76); color: rgba(76,58,42,0.78); font-size: 20px; line-height: 24px; cursor: pointer; display: grid; place-items: center; padding: 0; } .selected-close:hover { background: #fff; } .selected-info { font-size: 13px; line-height: 1.55; } .selected-info.empty { color: var(--muted); } .badge { display: inline-block; font-size: 11px; line-height: 1; border-radius: 999px; padding: 5px 8px; background: #f1f8e9; border: 1px solid rgba(103, 178, 44, 0.28); margin: 0 4px 4px 0; } .info-row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(84,68,48,0.16); padding: 5px 0; } .info-row span:first-child { color: var(--muted); } .log-card { min-height: 260px; flex: 0 0 auto; display: flex; flex-direction: column; } .log { max-height: 360px; min-height: 170px; flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; gap: 7px; font-size: 12px; overscroll-behavior: contain; } .log-entry { padding: 8px 9px; border-radius: 12px; background: rgba(255,252,246,0.82); border: 1px solid rgba(84,68,48,0.12); border-left: 4px solid rgba(118, 101, 74, 0.24); } .log-tag { display: inline-block; min-width: 34px; margin-right: 6px; padding: 2px 5px; border-radius: 999px; font-size: 9px; line-height: 1.1; text-align: center; background: rgba(84,68,48,0.08); color: rgba(72,58,43,0.72); text-transform: uppercase; } .log-entry .time { color: var(--muted); margin-right: 6px; } .log-birth { border-left-color: rgba(115, 185, 75, 0.66); } .log-death { border-left-color: rgba(91, 83, 75, 0.60); } .log-fight { border-left-color: rgba(214, 94, 70, 0.68); } .log-food { border-left-color: rgba(118, 185, 77, 0.68); } .log-grass { border-left-color: rgba(72, 148, 67, 0.68); } .log-weather { border-left-color: rgba(92, 142, 210, 0.62); } .log-relation { border-left-color: rgba(204, 126, 176, 0.62); } .log-observe { border-left-color: rgba(175, 146, 86, 0.62); } @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); } .stage-wrap { min-height: var(--field-mobile-min-height, 460px); } .field-choice-grid { grid-template-columns: 1fr; } } .tree-note { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.54); border: 1px solid rgba(84,68,48,0.10); } .lineage-tree { overflow: auto; padding: 8px 10px 18px; contain: content; } .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-main-content { height: min(78vh, 980px); min-height: 520px; max-height: calc(100vh - 120px); overflow: auto; 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 { min-width: 360px; overflow: visible; padding-right: 2px; } 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: 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; text-overflow: ellipsis; white-space: nowrap; } .family-copy .death-reason { 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; } .colony-card { overflow: visible; min-height: 0; flex: 0 0 auto; } .colony-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 8px; } .colony-chart { display: block; width: 100%; height: 188px; min-height: 188px; border: 1px solid rgba(84, 68, 48, 0.14); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(246,240,228,0.54)); overflow: hidden; } .colony-card h2 { line-height: 1.45; margin-bottom: 10px; } .colony-chart svg { display: block; width: 100%; height: 100%; } .colony-chart-legend { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 4px 0 8px; font-size: 11px; color: var(--muted); line-height: 1.25; } .colony-chart-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .colony-chart-legend i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; box-shadow: 0 0 0 1px rgba(70, 52, 36, 0.10); } .relation-row strong { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; } .relation-face { width: 24px; height: 24px; object-fit: contain; border-radius: 999px; background: rgba(255,255,255,0.66); border: 1px solid rgba(84,68,48,0.12); vertical-align: middle; flex: 0 0 auto; } .lineage-family { padding: 10px; margin: 0 0 12px; border-radius: 15px; background: rgba(255,253,248,0.62); border: 1px solid rgba(84,68,48,0.12); } .lineage-family h3 { margin: 0 0 8px; font-size: 13px; color: rgba(64,52,38,0.86); } /* 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-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; background: rgba(255,255,255,0.62); border: 1px solid rgba(84,68,48,0.08); } .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-family-tree .lineage-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; isolation: isolate; } .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-stale-status { position: sticky; top: 0; left: 0; z-index: 6; width: max-content; max-width: calc(100% - 12px); margin: 0 0 8px; padding: 6px 10px; border-radius: 999px; font-size: 12px; color: rgba(92, 75, 52, 0.82); background: rgba(255, 249, 232, 0.92); border: 1px solid rgba(150, 115, 46, 0.16); box-shadow: 0 4px 10px rgba(64,48,32,0.05); } .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-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; height: 68px; min-height: 68px; box-sizing: border-box; align-items: flex-start; background: linear-gradient(180deg, #fffdf8, #f8f1e5); box-shadow: 0 2px 5px rgba(64,48,32,0.035); contain: layout paint style; z-index: 2; isolation: isolate; } .lineage-family-tree .tree-node.child { border-color: rgba(103,178,44,0.34); } .lineage-family-tree .tree-node.dead { opacity: 1; filter: none; } .lineage-family-tree .tree-node[data-family-tarinai-id]:hover { transform: none; } .lineage-family-tree .tree-node .family-portrait { right: 0; bottom: -6px; width: 58px; height: 58px; } .lineage-family-tree .tree-generation-label { position: absolute; left: 10px; width: 54px; padding: 3px 0; border-radius: 999px; font-size: 10px; color: var(--muted); text-align: center; background: rgba(255,255,255,0.70); border: 1px solid rgba(84,68,48,0.08); z-index: 2; } .lineage-family-tree .lineage-empty-family { position: absolute; left: 72px; bottom: 8px; padding: 5px 8px; border-radius: 9px; background: rgba(255,255,255,0.70); } @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; } } .tool[data-tool="water_bowl"] { --tool-icon: none; } .tool[data-tool="water_bowl"]::before { content: "\1F963"; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 23px; display: grid; place-items: center; } .tool[data-tool="sleep_drug"] { --tool-icon: none; } .tool[data-tool="sleep_drug"]::before { content: "\1F48A"; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 23px; display: grid; place-items: center; } .tool[data-tool="nest_box"] { --tool-icon: none; } .tool[data-tool="nest_box"]::before { content: "\1FABA"; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 23px; display: grid; place-items: center; } .tool[data-tool="water_hose"] { --tool-icon: none; } .tool[data-tool="water_hose"]::before { content: "\1F6BF"; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 23px; display: grid; place-items: center; } .tool[data-tip] { position: relative; } .tool-tip-popover { position: fixed; z-index: 2147483000; width: 220px; max-width: min(220px, calc(100vw - 16px)); padding: 7px 9px; border-radius: 10px; background: rgba(46, 38, 30, 0.78); color: #fff8e6; font-family: "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif; font-size: 12px; line-height: 1.45; box-shadow: 0 10px 28px rgba(40, 32, 22, 0.18); backdrop-filter: blur(1px); text-shadow: 0 1px 3px rgba(25, 18, 12, 0.55); pointer-events: none; } .tool-tip-popover.hidden { display: none; } .selected-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; } .favorite-toggle { border: 1px solid rgba(128, 102, 56, 0.32); border-radius: 999px; background: rgba(255, 248, 221, 0.92); color: #5a4630; font-weight: 700; padding: 5px 10px; cursor: pointer; } .favorite-toggle.active { background: rgba(255, 229, 122, 0.95); border-color: rgba(180, 132, 34, 0.55); } .selected-records { margin-top: 8px; padding-top: 7px; border-top: 1px dashed rgba(126, 96, 64, 0.24); } .selected-records h3 { margin: 0 0 5px; font-size: 12px; color: var(--muted); } .selected-records ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; } .selected-records li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; align-items: start; font-size: 11px; line-height: 1.35; } .selected-records li span { color: var(--muted); font-variant-numeric: tabular-nums; } .selected-records li strong { font-weight: 600; } .tool[data-tool="water_bowl"]::before, .tool[data-tool="sleep_drug"]::before, .tool[data-tool="nest_box"]::before, .tool[data-tool="water_hose"]::before { position: absolute; left: 7px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); background: none; line-height: 30px; text-align: center; overflow: hidden; } .tool[data-tool="water_bowl"]::after, .tool[data-tool="sleep_drug"]::after, .tool[data-tool="nest_box"]::after, .tool[data-tool="water_hose"]::after { content: ""; background: none; } /* Tool UI icons: use in-game styled image assets instead of emoji glyphs. */ .tool[data-tool="love_mochi"] { --tool-icon: url("../assets/ui/tool_love_mochi.png"); } .tool[data-tool="fight_mochi"] { --tool-icon: url("../assets/ui/tool_fight_mochi.png"); } .tool[data-tool="water_bowl"] { --tool-icon: url("../assets/ui/tool_water_bowl.png"); } .tool[data-tool="sleep_drug"] { --tool-icon: url("../assets/ui/tool_sleep_drug.png"); } .tool[data-tool="nest_box"] { --tool-icon: url("../assets/ui/tool_nest_box.png"); } .tool[data-tool="water_hose"] { --tool-icon: url("../assets/ui/tool_water_hose.png"); } .tool[data-tool="ball"] { --tool-icon: url("../assets/ui/tool_ball.png"); } .tool[data-tool="love_mochi"]::before, .tool[data-tool="fight_mochi"]::before, .tool[data-tool="water_bowl"]::before, .tool[data-tool="sleep_drug"]::before, .tool[data-tool="nest_box"]::before, .tool[data-tool="water_hose"]::before, .tool[data-tool="ball"]::before { content: ""; position: absolute; left: 7px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); background: var(--tool-icon) center / contain no-repeat; opacity: 0.92; filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12)); line-height: normal; text-align: initial; overflow: visible; } .tool[data-tool="love_mochi"]::after, .tool[data-tool="fight_mochi"]::after, .tool[data-tool="water_bowl"]::after, .tool[data-tool="sleep_drug"]::after, .tool[data-tool="nest_box"]::after, .tool[data-tool="water_hose"]::after, .tool[data-tool="ball"]::after { content: ""; position: absolute; inset: 0; width: auto; height: auto; left: auto; right: auto; top: auto; bottom: auto; transform: none; background: var(--tool-icon) right -8px center / 54px 54px no-repeat; opacity: 0.10; pointer-events: none; font-size: initial; line-height: normal; } /* 15.2.0: replace legacy poke/pinch PNG icons with emoji glyphs. */ .tool[data-tool="poke"], .tool[data-tool="pinch"] { --tool-icon: none; } .tool[data-tool="poke"]::before, .tool[data-tool="pinch"]::before { background: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 24px; line-height: 30px; text-align: center; display: block; opacity: 0.96; } .tool[data-tool="poke"]::before { content: "👈"; } .tool[data-tool="pinch"]::before { content: "🤏"; } .tool[data-tool="poke"]::after, .tool[data-tool="pinch"]::after { background: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 46px; line-height: 54px; text-align: center; opacity: 0.10; right: -6px; left: auto; top: 50%; bottom: auto; transform: translateY(-50%); width: 54px; height: 54px; } .tool[data-tool="poke"]::after { content: "👈"; } .tool[data-tool="pinch"]::after { content: "🤏"; } .tool[data-tool="poke"] span, .tool[data-tool="pinch"] span { display: none; } /* 15.3.0: shower uses emoji; nest box and fences use appearance-matched assets/hitboxes. */ .tool[data-tool="water_hose"] { --tool-icon: none; } .tool[data-tool="water_hose"]::before { content: "🚿"; background: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 24px; line-height: 30px; text-align: center; display: block; opacity: 0.96; } .tool[data-tool="water_hose"]::after { content: "🚿"; background: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 46px; line-height: 54px; text-align: center; opacity: 0.10; right: -6px; left: auto; top: 50%; bottom: auto; transform: translateY(-50%); }