191 lines
8.3 KiB
CSS
191 lines
8.3 KiB
CSS
/* CSS split file; preserve manifest load order. */
|
|
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
|
|
.loading-kicker { font-size: 12px; letter-spacing: .14em; color: rgba(116,96,76,.82); margin-bottom: 6px; }
|
|
.loading-title { margin: 0 0 8px; font-size: 28px; color: #3f3429; }
|
|
.loading-text { margin: 0 0 12px; color: rgba(90,74,58,.86); }
|
|
.loading-sprite-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 8px 0 14px; }
|
|
.loading-sprite-card { border-radius: 16px; background: linear-gradient(180deg,rgba(255,255,255,.84),rgba(248,243,232,.90)); border: 1px solid rgba(126,104,80,.12); min-height: 92px; display: grid; place-items: center; padding: 8px; box-shadow: 0 8px 18px rgba(83,63,44,.06); }
|
|
.loading-sprite-card img { width: 68px; height: 68px; object-fit: contain; }
|
|
.loading-progress-track { width: 100%; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(132,164,217,.16); border: 1px solid rgba(92,126,181,.14); }
|
|
.loading-progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#92d1ff,#a3dfa0 58%,#ffe192); transition: width .18s ease; }
|
|
.loading-progress-meta { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(88,73,60,.82); }
|
|
.loading-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: rgba(111,92,73,.78); }
|
|
|
|
|
|
.sound-category-controls,
|
|
.log-push-controls {
|
|
margin-top: 10px;
|
|
padding: 10px;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(84,68,48,.12);
|
|
background: rgba(255,255,255,.46);
|
|
font-size: 12px;
|
|
}
|
|
.control-group-title { font-weight: 700; margin-bottom: 7px; color: rgba(58,48,39,.88); }
|
|
.sound-category-controls { display: grid; grid-template-columns: 1fr; gap: 6px; }
|
|
.sound-category-controls label,
|
|
.push-master,
|
|
.push-kind-grid label { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
|
|
.sound-category-controls input,
|
|
.push-master input,
|
|
.push-kind-grid input { accent-color: #82bf66; }
|
|
.log-push-controls { display: flex; flex-direction: column; gap: 8px; }
|
|
.push-kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; }
|
|
.log-push-overlay { position: fixed; left: 18px; bottom: 18px; z-index: 9998; width: min(320px, calc(100vw - 36px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
|
|
.log-push-toast { position: relative; overflow: hidden; padding: 10px 12px 10px 17px; border-radius: 15px; background: rgba(255,252,246,.94); border: 1px solid rgba(84,68,48,.16); box-shadow: 0 12px 32px rgba(44,34,25,.18); animation: logPushIn .18s ease-out; }
|
|
.log-push-toast::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #a5c77a; }
|
|
.log-push-toast .log-push-tag { display: inline-block; margin-right: 6px; font-size: 11px; font-weight: 700; color: rgba(54,45,38,.88); }
|
|
.log-push-toast .log-push-time { font-size: 10px; color: rgba(104,88,72,.72); }
|
|
.log-push-toast .log-push-text { margin-top: 3px; font-size: 12px; line-height: 1.35; color: rgba(48,40,33,.92); }
|
|
.log-push-toast.log-push-death::before { background: #8f817a; }
|
|
.log-push-toast.log-push-accident::before { background: #ee9e5d; }
|
|
.log-push-toast.log-push-birth::before { background: #98cf7a; }
|
|
.log-push-toast.log-push-fight::before { background: #e47b80; }
|
|
.log-push-toast.log-push-relation::before { background: #b99be0; }
|
|
.log-push-toast.log-push-food::before { background: #e9bd61; }
|
|
.log-push-toast.log-push-weather::before { background: #7bbbdc; }
|
|
.log-push-toast.log-push-grass::before { background: #8cc77a; }
|
|
.log-push-toast.leaving { opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
|
|
@keyframes logPushIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
|
|
@media (max-width: 920px) { .loading-sprite-strip { grid-template-columns: repeat(2,minmax(0,1fr)); } }
|
|
|
|
|
|
/* v15.12.1: top-right sound settings panel */
|
|
.sound-menu { position: relative; display: inline-block; }
|
|
.sound-menu-btn.active { background: linear-gradient(180deg, #f3ffe9, #e7f8db); border-color: rgba(103,178,44,.46); }
|
|
.sound-panel {
|
|
position: absolute;
|
|
right: 0;
|
|
top: calc(100% + 8px);
|
|
z-index: 12000;
|
|
min-width: 210px;
|
|
padding: 11px;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(84,68,48,.16);
|
|
background: rgba(255,252,246,.98);
|
|
box-shadow: 0 16px 42px rgba(44,34,25,.20);
|
|
display: grid;
|
|
gap: 7px;
|
|
text-align: left;
|
|
}
|
|
.sound-panel.hidden { display: none; }
|
|
.sound-panel label { display: flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; white-space: nowrap; }
|
|
.sound-panel input { accent-color: #82bf66; }
|
|
.sound-panel input:disabled + span { opacity: .55; }
|
|
.sound-master { font-weight: 700; }
|
|
.sound-panel-divider { height: 1px; background: rgba(84,68,48,.12); margin: 2px 0; }
|
|
@media (max-width: 760px) { .sound-panel { right: auto; left: 0; } }
|
|
|
|
|
|
/* Collapsed card sizing is shared by the base panel rules; no event-only shrink override. */
|
|
|
|
/* v15.12.4: event log scroll chains to the right menu at top/bottom */
|
|
.log {
|
|
overscroll-behavior-y: auto !important;
|
|
}
|
|
|
|
/* v15.12.4: sound settings live only in the top-right sound menu */
|
|
.log-card .sound-category-controls {
|
|
display: none !important;
|
|
}
|
|
|
|
/* v15.17.0: mobile layout isolation and canvas touch gestures */
|
|
#app { overflow-x: clip; }
|
|
.layout { position: relative; z-index: 2; }
|
|
.panel { position: relative; z-index: 3; }
|
|
.lineage-main-card {
|
|
position: relative;
|
|
z-index: 1;
|
|
overflow: hidden;
|
|
contain: layout paint;
|
|
}
|
|
#gameCanvas {
|
|
touch-action: none;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
}
|
|
.archive-content,
|
|
.lineage-main-content,
|
|
.lineage-family-tree {
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
@media (max-width: 980px) {
|
|
.layout {
|
|
position: relative;
|
|
z-index: 4;
|
|
}
|
|
.panel {
|
|
position: relative;
|
|
z-index: 5;
|
|
isolation: isolate;
|
|
}
|
|
.lineage-main-card {
|
|
z-index: 1;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin-top: 14px;
|
|
clear: both;
|
|
}
|
|
.lineage-main-content {
|
|
height: auto;
|
|
min-height: 340px;
|
|
max-height: 72vh;
|
|
overflow: auto;
|
|
overscroll-behavior: contain;
|
|
-webkit-overflow-scrolling: touch;
|
|
touch-action: pan-x pan-y pinch-zoom;
|
|
}
|
|
.lineage-family-tree {
|
|
overflow: auto;
|
|
overscroll-behavior: contain;
|
|
-webkit-overflow-scrolling: touch;
|
|
touch-action: pan-x pan-y pinch-zoom;
|
|
}
|
|
.lineage-family-tree .lineage-tree-panel {
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
/* Mobile input mode */
|
|
.mobile-mode-controls {
|
|
display: none;
|
|
position: absolute;
|
|
left: 10px;
|
|
bottom: 10px;
|
|
z-index: 24;
|
|
gap: 5px;
|
|
padding: 6px;
|
|
border-radius: 14px;
|
|
background: rgba(255, 251, 245, 0.90);
|
|
box-shadow: 0 8px 22px rgba(80,60,35,.18);
|
|
border: 1px solid rgba(120, 95, 60, .16);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
.mobile-mode-controls button {
|
|
border: 0;
|
|
border-radius: 10px;
|
|
padding: 7px 8px;
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
color: #65533f;
|
|
background: rgba(255,255,255,.78);
|
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
|
|
}
|
|
.mobile-mode-controls button.active {
|
|
color: #3d321f;
|
|
background: linear-gradient(180deg, #ffe9a8, #ffd376);
|
|
box-shadow: 0 3px 10px rgba(150, 105, 30, .20);
|
|
}
|
|
body.touch-mobile-ui .mobile-mode-controls:not([hidden]) { display: flex; }
|
|
body:not(.touch-mobile-ui) .mobile-mode-controls { display: none !important; }
|
|
body.touch-mobile-ui.mobile-mode-camera #gameCanvas { cursor: grab; }
|
|
body.touch-mobile-ui.mobile-mode-tool #gameCanvas { cursor: crosshair; }
|
|
body.touch-mobile-ui.mobile-mode-family .lineage-main-card { z-index: 9; }
|
|
|
|
|
|
/* Keep panel themes on narrow layouts. */
|
|
.card.tool-card { --ui-theme-rgb: 0, 114, 178; background: linear-gradient(180deg, rgba(242, 248, 252, 0.94), rgba(232, 243, 250, 0.91)); border-color: rgba(0, 114, 178, 0.24); }
|
|
.card.selected-card { --ui-theme-rgb: 204, 121, 167; background: linear-gradient(180deg, rgba(253, 245, 250, 0.94), rgba(249, 235, 244, 0.91)); border-color: rgba(204, 121, 167, 0.24); }
|
|
.card.colony-card { --ui-theme-rgb: 0, 158, 115; background: linear-gradient(180deg, rgba(240, 250, 247, 0.94), rgba(229, 245, 239, 0.91)); border-color: rgba(0, 158, 115, 0.24); }
|
|
.card.log-card { --ui-theme-rgb: 230, 159, 0; background: linear-gradient(180deg, rgba(255, 249, 236, 0.94), rgba(253, 242, 215, 0.91)); border-color: rgba(230, 159, 0, 0.24); }
|