primordial-soup/viewer/style.css

2171 lines
39 KiB
CSS

@import "./fonts.css";
@import "./prototype.css";
@import "./activity.css";
.soup {
min-height: 100dvh;
padding-bottom: 18px;
font-size: 14px;
}
.soup .topbar {
height: 74px;
flex: none;
}
.soup .utilities {
margin-left: auto;
}
.utilities .quiet-button svg {
width: 16px;
height: 16px;
}
.utilities .quiet-button {
padding: 5px;
}
.utilities [aria-pressed="true"] {
background: #e0eacb;
box-shadow: inset 0 0 0 1px #8eaa6e;
}
.utilities [hidden] {
display: none;
}
.amoeba-symbol,
.food > .colony-symbol,
.scoring-marker > .colony-symbol {
display: none;
}
.colony-symbols .amoeba-symbol {
display: inline;
}
.soup .amoeba-symbol > .colony-symbol {
width: 25px;
height: 25px;
}
.colony-symbols .brand .amoeba-symbol,
.colony-symbols .gene-art .amoeba-symbol,
.colony-symbols .shop-art .amoeba-symbol,
.colony-symbols .gene-explainer-art .amoeba-symbol {
display: none;
}
.soup.colony-symbols .food,
.colony-symbols .scoring-marker {
background: none;
border: 0;
box-shadow: none;
transform: none;
}
.colony-symbols .food > .colony-symbol,
.colony-symbols .scoring-marker > .colony-symbol {
display: block;
width: 100%;
height: 100%;
overflow: visible;
}
.soup .players {
grid-template-columns: repeat(var(--player-columns, 4), minmax(0, 1fr));
padding: 12px 0;
gap: 12px;
}
.soup .player {
text-align: left;
}
.soup .player-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: block;
}
.soup .player-name .you-tag {
margin-left: 6px;
}
.soup .player-stat {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.3em;
}
.soup .player-population > svg {
width: 18px;
height: 18px;
}
.player-score-group {
display: flex;
flex-direction: column;
align-items: flex-end;
flex: none;
gap: 2px;
}
.player-balances {
display: flex;
align-items: flex-start;
gap: 14px;
flex: none;
}
.player-bp {
font-family: "Soup Display";
font-size: 26px;
}
.soup .player-bp svg {
width: 18px;
height: 18px;
}
.player-sensitivity {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 6px;
border: 1px solid #c9a85c;
border-radius: 8px;
background: #fff1bc;
color: #6f4d13;
font-size: 22px;
line-height: 1.2;
}
.player-sensitivity svg {
width: 16px;
height: 16px;
flex: none;
}
.player-sensitivity.protective {
background: #e3f0de;
border-color: #83a574;
color: #3e6135;
}
.player-income {
padding: 2px 5px;
border-radius: 5px;
background: #e4edda;
color: #506c43;
font-size: 10px;
line-height: 1.4;
white-space: nowrap;
}
.soup .play-area {
align-items: start;
flex: 1;
}
.soup .board {
--current-x: 0px;
--current-y: 0px;
height: clamp(390px, calc(100dvh - 330px), 660px);
width: 100%;
aspect-ratio: auto;
max-height: none;
min-height: 0;
}
.soup .board[data-current="west"] {
--current-x: -48px;
}
.soup .board[data-current="north"] {
--current-y: -48px;
}
.soup .board[data-current="east"] {
--current-x: 48px;
}
.soup .board[data-current="south"] {
--current-y: 48px;
}
.soup #pond-art {
pointer-events: none;
}
.soup .pond-bubble,
.soup .pond-flow {
animation: pond-drift var(--flow-duration) linear infinite;
animation-delay: var(--delay);
opacity: 0.28;
}
.soup .pond-flow {
--flow-opacity: 0.42;
opacity: 0;
}
.soup .board[data-current="still"] .pond-bubble {
animation-name: water-shimmer;
animation-duration: 16s;
animation-timing-function: ease-in-out;
}
.soup .board[data-current="still"] .pond-flow {
animation: none;
}
@keyframes pond-drift {
0% {
opacity: 0;
transform: translate(0, 0);
}
20%,
70% {
opacity: var(--flow-opacity, 0.5);
}
100% {
opacity: 0;
transform: translate(var(--current-x), var(--current-y));
}
}
.soup .water-cell {
border-radius: 15%;
padding: 0;
}
.soup .water-cell[aria-disabled="true"] {
cursor: default;
}
.soup .water-cell.last-cell {
background: #e5f7bf55;
}
.soup .water-cell.valid {
box-shadow: inset 0 0 0 2px #ffffda;
}
.soup .water-cell.valid:after {
content: none;
}
.cell-destination {
position: absolute;
left: 50%;
transform: translateX(-50%);
display: inline-flex;
align-items: center;
gap: 0.3em;
padding: 3px 7px;
border: 1px solid #68947066;
border-radius: 20px;
background: #ffffe8b3;
color: #376b4c;
font-size: 10px;
font-weight: 600;
line-height: 1.4;
white-space: nowrap;
top: 3%;
z-index: 5;
pointer-events: none;
}
.water-cell.drift .cell-destination {
color: #f9ffec;
background: #426f55;
border-color: #426f55;
}
.cell-destination .bp-amount {
color: inherit;
}
.soup .water-cell .cell-coord {
font-size: 10px;
color: #426c6388;
}
.soup .organisms {
--amoeba-width: 10%;
--amoeba-height: 16%;
}
.soup .amoeba-button {
left: calc(var(--x) - var(--amoeba-width) * var(--scale) / 2);
top: calc(var(--y) - var(--amoeba-height) * var(--scale) / 2);
width: calc(var(--amoeba-width) * var(--scale));
height: calc(var(--amoeba-height) * var(--scale));
transform: none;
filter: none;
z-index: auto;
}
.soup .amoeba-button > svg {
position: relative;
z-index: 3;
filter: drop-shadow(0 4px 0 #336b6630);
}
.soup .amoeba-button:active {
transform: none;
}
.soup .amoeba-button.selected:before {
left: 5%;
width: 90%;
}
.soup .amoeba-button.acting:before {
border-color: #fff7cd;
border-style: solid;
box-shadow: 0 0 0 5px #fff7cd30;
}
.soup .amoeba-number {
right: auto;
left: 50%;
transform: translateX(-50%);
top: 8%;
bottom: auto;
font-size: 10px;
width: 19px;
height: 19px;
opacity: 1;
pointer-events: auto;
z-index: 8;
background: var(--amoeba-paper);
border-color: var(--amoeba-ink);
box-shadow: 0 1px 2px #24433a44;
}
.soup.numbers-hidden .organisms .amoeba-number {
display: none;
}
.injury {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
left: 0;
top: 8%;
border-radius: 10px;
background: #fcddd0;
color: #97502f;
font-size: 10px;
padding: 2px 4px;
border: 1px solid #bb8f77;
z-index: 6;
}
.board-actions {
position: absolute;
bottom: 5%;
left: 1%;
width: 22%;
display: flex;
align-items: stretch;
gap: 6px;
z-index: 9;
}
.board-actions[hidden] {
display: none;
}
.board-actions > * {
flex: 1;
min-width: 0;
max-width: 180px;
}
.soup .board-actions .board-movement {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 4px;
width: 100%;
min-height: 52px;
height: 100%;
padding: 8px 5px;
font-size: 13px;
border-radius: 12px;
white-space: normal;
text-align: center;
}
.board-movement-title {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
overflow-wrap: anywhere;
}
.board-movement-title svg {
flex: none;
width: 18px;
height: 18px;
}
.board-drift-choice {
position: relative;
}
.board-drift-choice summary {
list-style: none;
cursor: pointer;
}
.board-drift-choice summary::-webkit-details-marker {
display: none;
}
.board-drift-choice[open] summary {
border-color: var(--ink);
}
.board-drift-destinations {
position: absolute;
bottom: calc(100% + 8px);
left: 0;
display: grid;
gap: 6px;
width: max-content;
padding: 8px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--cream);
box-shadow: 0 3px 12px #24433a33;
}
.soup .board-drift-destinations .action {
min-height: 44px;
}
.soup .nutrients {
bottom: 10%;
left: 4%;
right: 4%;
gap: 5px;
flex-wrap: wrap;
height: auto;
min-height: 10px;
z-index: 4;
}
.food-amount {
display: inline-flex;
gap: 2px;
align-items: center;
font-size: 10px;
color: #325e4c;
white-space: nowrap;
}
.food-amount > .food {
align-self: center;
width: 11px;
height: 11px;
transform: rotate(-8deg);
}
.soup .current-compass {
top: 42%;
left: 41.32%;
width: 17.36%;
height: 15%;
display: grid;
grid-template-columns: 0.8fr 1.2fr;
gap: 5px;
color: #315d4e;
}
.soup .environment-current {
display: grid;
justify-items: center;
gap: 1px;
font-family: "DM Sans", sans-serif;
line-height: 1;
}
.soup .environment-current > span,
.soup .compass-label {
font-size: 8px;
font-weight: 800;
letter-spacing: 0.06em;
}
.soup .compass-arrow {
font-size: 30px;
line-height: 1;
transition: transform 0.4s;
}
.soup .environment-ozone {
display: grid;
justify-self: center;
width: 100%;
max-width: 82px;
justify-items: center;
gap: 2px;
padding: 5px 3px;
background: #fff1bc;
border: 1px solid #b29843;
border-radius: 11px;
color: #685017;
font-family: "DM Sans", sans-serif;
line-height: 1;
box-shadow: 0 2px 0 #ac9c6140;
pointer-events: auto;
cursor: help;
}
.ozone-value {
display: flex;
align-items: center;
gap: 2px;
}
.ozone-value svg {
width: 24px;
height: 24px;
flex: none;
}
.soup .ozone {
font-size: 34px;
line-height: 1;
font-weight: 800;
font-variant-numeric: tabular-nums;
}
.soup .board-wrap {
width: 100%;
max-width: 1035px;
margin-inline: auto;
container-type: inline-size;
}
.board-reference {
position: absolute;
left: 1%;
top: 2%;
width: 21%;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 14px;
text-align: center;
}
.soup .pond-tools {
position: absolute;
top: 2%;
right: 1%;
z-index: 1;
gap: 4px;
}
.soup .board-display-controls {
position: absolute;
right: 1%;
top: calc(2% + 48px);
z-index: 2;
display: flex;
gap: 4px;
}
.soup .board-control {
flex: none;
width: 44px;
height: 44px;
padding: 10px;
color: #6a8173;
background: transparent;
border-color: transparent;
box-shadow: none;
}
.soup .board-control:active {
transform: none;
}
.soup .board-control svg {
width: 22px;
height: 22px;
}
.soup .board-control:hover,
.soup .board-control[aria-pressed="true"] {
color: var(--ink);
background: #e0eacb;
border-color: var(--line);
}
.soup-board-key {
display: flex;
flex-direction: column;
align-items: center;
color: #617653;
text-align: center;
gap: 6px;
font-size: clamp(10px, 1.3cqw, 14px);
--marker-size: clamp(5px, 0.8cqw, 8px);
}
.scoring-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
font-variant-numeric: tabular-nums;
}
.scoring-table caption {
margin-bottom: 6px;
font-weight: 600;
}
.scoring-table caption svg {
display: inline-block;
vertical-align: middle;
width: 15px;
height: 15px;
}
.scoring-table th,
.scoring-table td {
padding: 4px 1px;
text-align: center;
}
.scoring-table thead {
font-size: 0.85em;
color: #78896b;
}
.scoring-table th[scope="row"] svg {
width: 20px;
height: 20px;
margin: auto;
}
.scoring-table td.current {
background: var(--scoring-current);
border-radius: 4px;
color: var(--ink);
font-weight: 700;
}
.scoring-points {
display: block;
}
.scoring-markers {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: flex-start;
gap: 2px;
width: calc(var(--marker-size) * 3 + 4px);
max-width: 100%;
min-height: calc(var(--marker-size) * 2 + 2px);
margin: 3px auto 0;
}
.scoring-marker {
flex: none;
width: var(--marker-size);
height: var(--marker-size);
border-radius: 50%;
background: var(--marker-color);
border: 1px solid var(--marker-border);
cursor: help;
}
.scoring-marker:focus-visible,
.gene-scoring-badge:focus-visible {
outline: 2px solid var(--ink);
outline-offset: 2px;
}
.scoring-total {
display: flex;
gap: 4px;
align-items: center;
font-weight: 600;
}
.scoring-finish {
font-size: 10px;
line-height: 1.5;
}
.scoring-help {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 0;
font: inherit;
color: inherit;
}
.scoring-help:hover {
text-decoration: underline;
}
.scoring-detail {
--marker-size: 12px;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
max-width: 420px;
margin: 20px auto;
font-size: 16px;
}
.scoring-detail .scoring-table th,
.scoring-detail .scoring-table td {
padding: 8px 3px;
}
.scoring-detail .scoring-table thead {
font-size: 14px;
}
.soup .pond-bottom {
margin: 0;
min-height: 32px;
gap: 15px;
padding-top: 6px;
}
.soup .last-move {
font-size: 13px;
line-height: 1.7;
color: var(--ink);
flex: 1;
}
.food-reserve {
display: flex;
gap: 7px;
align-items: center;
}
.food-reserve > small {
font-size: 10px;
color: var(--muted);
}
.soup .colony-panel {
padding-top: 10px;
/* The pond sizes the grid row; genes use the remaining sidebar space. */
container: colony-panel / size;
min-height: 0;
display: flex;
flex-direction: column;
}
.soup .colony-panel > :not(.gene-list) {
flex: none;
}
.soup .colony-heading h2 {
font-size: 25px;
max-width: 165px;
overflow-wrap: anywhere;
}
.soup .bio-balance > svg {
width: 21px;
height: 27px;
grid-row: span 2;
}
.soup .specimen {
height: 120px;
}
.soup #selected-portrait {
width: 118px;
}
.soup .diet {
margin-top: 10px;
}
.soup .gene-heading {
margin-top: 20px;
}
.soup .gene-list {
flex: 0 1 auto;
min-height: 0;
max-height: none;
overflow: auto;
padding: 1px 4px 4px 1px;
}
.soup .gene-list > .gene {
flex: none;
padding: 9px;
}
@container colony-panel (max-height: 32rem) {
.soup .specimen {
display: none;
}
}
.soup .gene p {
font-size: 10px;
color: #64795e;
}
.soup .gene-text {
min-width: 0;
}
.empty-genes {
font-size: 12px;
line-height: 1.6;
color: var(--muted);
margin: 4px 0;
}
.colony-metrics {
display: flex;
flex-wrap: wrap;
gap: 10px;
font-size: 11px;
color: #748669;
padding: 15px 0;
}
.colony-metrics > span {
display: flex;
gap: 4px;
align-items: center;
}
.colony-metrics svg {
width: 14px;
height: 14px;
}
.soup .turnbar {
position: sticky;
bottom: 10px;
z-index: 12;
margin-top: 14px;
flex-wrap: wrap;
padding: 14px 18px;
gap: 12px;
background: #fbfaf1f7;
backdrop-filter: blur(8px);
flex: none;
}
.soup .phase-label {
font-size: 14px;
font-weight: 600;
color: var(--ink);
}
.soup .phase-steps {
display: flex;
flex-wrap: wrap;
gap: 3px;
margin: 8px 0 0;
padding: 0;
list-style: none;
}
.phase-steps > li {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 3px;
min-width: 0;
height: 27px;
padding: 3px;
border: 1px solid #d5dfca;
border-radius: 6px;
background: #f0f3e7;
color: #708064;
font-size: 10px;
font-weight: 600;
cursor: help;
}
.phase-steps svg {
width: 14px;
height: 14px;
flex: none;
}
.phase-income .bp-amount {
color: inherit;
}
.phase-environment svg {
width: 18px;
height: 18px;
}
.phase-detail {
display: inline-flex;
align-items: center;
border-left: 1px solid currentColor;
margin-left: 2px;
padding-left: 5px;
}
.phase-steps .complete {
color: #486442;
background: #e7eedb;
}
.phase-steps [aria-current="step"] {
color: #fcffec;
background: #426b50;
border-color: #426b50;
}
.phase-steps > li:focus-visible {
outline: 2px solid #426b50;
outline-offset: 2px;
}
.game-progress {
display: grid;
justify-items: center;
gap: 5px;
color: #657c64;
font-size: 11px;
}
.round-progress {
display: flex;
align-items: center;
gap: 4px 10px;
color: var(--ink);
font-size: 12px;
flex-wrap: wrap;
justify-content: center;
}
.round-progress strong {
font-size: 16px;
}
.round-meter {
display: flex;
gap: 3px;
}
.round-meter > span {
width: 7px;
height: 5px;
border-radius: 2px;
background: #d9e2cc;
}
.round-meter > .reached {
background: #73974f;
}
.game-finish {
display: block;
line-height: 1.5;
cursor: help;
}
.phase-instruction {
font-size: 12px;
color: #708064;
margin-top: 5px;
line-height: 1.5;
max-width: 630px;
}
.soup .turn-details {
flex: 1 1 300px;
}
.soup .action-buttons {
flex-wrap: wrap;
justify-content: flex-end;
overflow: visible;
padding: 3px 0 5px;
}
.soup .action {
font-size: 12px;
white-space: normal;
max-width: 340px;
line-height: 1.4;
padding: 10px 13px;
}
.action > svg {
width: 18px;
height: 18px;
flex: none;
}
.action > small {
font-size: 10px;
opacity: 0.75;
}
.action.primary .food-amount {
color: #f2f6d8;
}
.game-message {
color: #9a4636;
font-size: 12px;
padding-top: 10px;
}
.amoeba-picker {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
margin-top: 14px;
gap: 8px;
flex-wrap: wrap;
}
.amoeba-picker select {
font: inherit;
color: var(--ink);
border: 1px solid #c8d7b5;
border-radius: 6px;
background: #fffcf3;
padding: 5px 8px;
}
.placement-price {
display: inline-flex;
align-items: center;
padding: 4px 7px;
border-radius: 6px;
background: #e4edda;
color: #506c43;
font-size: 14px;
font-weight: 700;
white-space: nowrap;
}
.soup dialog {
max-width: 960px;
max-height: 85dvh;
padding: 0;
overflow: hidden;
}
.soup dialog[open] {
display: flex;
flex-direction: column;
}
.soup .modal-content {
min-height: 0;
padding: 33px;
overflow: auto;
overscroll-behavior: auto;
}
.soup .close-modal {
z-index: 2;
background: var(--paper);
box-shadow: 0 2px 8px #153c4420;
}
.pool-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding-right: 25px;
}
.soup .pool-header h2 {
margin: 0;
}
.soup .pool-header p {
margin: 5px 0 0;
font-size: 13px;
}
.pool-filters {
display: flex;
margin-top: 16px;
}
.soup .pool-filters .action {
flex: none;
min-height: 44px;
white-space: normal;
}
.pool-filters small {
border-radius: 5px;
padding: 2px 5px;
background: #8faa7c33;
}
.pool-empty {
padding: 24px 0;
}
.soup .pool-guide {
display: flex;
align-items: center;
gap: 7px;
padding: 9px 12px;
border: 1px solid #d9c58f;
background: #fff6da;
color: #68501c;
border-radius: 12px;
flex: none;
}
.pool-guide > svg {
width: 26px;
height: 26px;
flex: none;
}
.pool-guide > strong {
font-size: 30px;
line-height: 1;
}
.soup :is(.sensitivity-badge, .gene-sensitivity, .pool-guide) {
cursor: help;
}
.soup :is(.environment-ozone, .sensitivity-badge, .pool-guide):focus-visible {
outline: 2px solid #3d7468;
outline-offset: 3px;
}
.pool-section {
margin-top: 26px;
}
.pool-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 12px;
}
.pool-heading h3 {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
font-size: 20px;
}
.pool-heading h3 > svg {
width: 22px;
height: 22px;
}
.pool-heading > span {
font-size: 12px;
font-weight: 700;
color: #576a5b;
white-space: nowrap;
}
.pool-section--new .pool-heading h3 {
color: #694c79;
}
.soup .market-status {
margin: -3px 0 14px;
padding: 0;
background: none;
font-size: 12px;
color: #6a5875;
line-height: 1.5;
}
.soup .shop-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}
.shop-family {
display: grid;
grid-column: span var(--gene-count);
grid-template-columns: repeat(var(--gene-count), minmax(0, 1fr));
gap: 16px;
min-width: 0;
}
.soup .shop-card {
display: flex;
flex-direction: column;
border-radius: 14px;
}
.soup .shop-card--new {
border-color: #cdbed6;
}
.soup .shop-art {
display: flex;
align-items: center;
justify-content: space-between;
height: 102px;
padding: 10px 12px;
gap: 8px;
border-right: 0;
border-bottom: 1px solid #d4ddc9;
}
.soup .shop-card--new .shop-art {
background: #eae3f0;
border-color: #d5c8dd;
}
.shop-illustration {
flex: 1;
min-width: 0;
display: flex;
justify-content: center;
}
.shop-illustration > svg {
width: 86px;
height: 86px;
max-width: 100%;
}
.sensitivity-badge {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 4px;
padding: 8px 7px;
border: 1px solid #c9a85c;
border-radius: 12px;
background: #fff1bc;
color: #6f4d13;
min-width: 88px;
flex: none;
}
.sensitivity-value {
display: flex;
align-items: center;
gap: 5px;
}
.sensitivity-value svg {
width: 21px;
height: 21px;
}
.sensitivity-value strong {
font-size: 38px;
font-weight: 800;
line-height: 1;
font-variant-numeric: tabular-nums;
}
.sensitivity-badge.protective,
.soup .gene-sensitivity.protective {
background: #e3f0de;
border-color: #83a574;
color: #3e6135;
}
.soup .shop-body {
padding: 15px;
gap: 0;
}
.soup .shop-body h3 {
font-size: 17px;
line-height: 1.3;
}
.shop-title {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 8px;
}
.gene-scoring-badge {
display: inline-flex;
align-items: center;
vertical-align: middle;
gap: 3px;
flex: none;
padding: 3px 6px;
border: 1px solid #91ad7b;
border-radius: 6px;
background: #e5efcf;
color: #3c5d35;
font-size: 14px;
line-height: 1;
cursor: help;
}
.gene-scoring-badge svg {
width: 15px;
height: 15px;
}
.new-gene-badge {
display: inline-flex;
align-items: center;
gap: 5px;
align-self: flex-start;
background: #efe7f5;
border: 1px solid #d1bedc;
border-radius: 5px;
padding: 2px 6px;
color: #694c79;
font-size: 10px;
font-weight: 800;
line-height: 1.4;
margin-bottom: 7px;
}
.new-gene-star {
display: inline-flex;
flex: none;
color: #785290;
line-height: 1;
margin-right: 4px;
}
.gene-label .new-gene-star {
margin: 0;
}
.gene-facts {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin: 13px 0 1px;
padding: 11px 0;
border-top: 1px solid #d9dfcd;
border-bottom: 1px solid #d9dfcd;
}
.gene-facts > div {
display: grid;
gap: 5px;
}
.gene-facts > div + div {
border-left: 1px solid #d9dfcd;
padding-left: 14px;
}
.gene-facts > div > span {
font-size: 10px;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #58674e;
}
.gene-facts strong {
display: flex;
align-items: center;
gap: 5px;
font-size: 22px;
line-height: 1;
font-weight: 800;
color: #345b49;
}
.gene-facts strong small {
font-size: 12px;
font-weight: 700;
}
.gene-cost .bp-amount {
color: inherit;
}
.gene-cost .bp-amount svg {
width: 17px;
height: 17px;
}
.gene-stock.is-empty strong {
color: #7c7164;
}
.soup .shop-body p {
font-size: 12px;
line-height: 1.6;
color: #4c634e;
margin: 12px 0;
}
.soup .gene-prerequisite {
font-size: 11px;
margin: 0 0 12px;
color: #5c6954;
line-height: 1.5;
}
.soup .gene-unavailable {
font-size: 11px;
color: #687360;
border-top: 1px solid #e0e5d7;
padding-top: 10px;
}
.soup .shop-body .action {
margin-top: 5px;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 5px;
}
.soup .shop-body .action > svg {
width: 16px;
height: 16px;
}
.soup .gene-sensitivity {
display: flex;
font-size: 20px;
color: #6f4d13;
background: #fff1bc;
border: 1px solid #d2b66e;
border-radius: 8px;
padding: 5px;
min-width: 40px;
justify-content: center;
gap: 3px;
}
.soup .gene-sensitivity > svg {
width: 14px;
height: 14px;
}
.soup .gene--new {
border-left: 3px solid #ac8dbe;
}
.gene-detail-hero {
display: flex;
justify-content: center;
align-items: center;
gap: 24px;
margin-bottom: 18px;
}
.gene-detail-hero .gene-explainer-art {
margin: 0;
}
.gene-detail-cost {
display: flex;
align-items: center;
gap: 12px;
font-size: 16px;
}
.gene-detail-cost > span {
font-size: 12px;
font-weight: 700;
color: #58674e;
}
.soup .journal-list {
max-height: 65dvh;
}
.soup .journal-list li {
font-size: 13px;
}
.rules-links {
display: flex;
flex-wrap: wrap;
gap: 12px 24px;
}
.results-list {
list-style: none;
padding: 0;
}
.results-list li {
display: flex;
gap: 18px;
align-items: center;
border-bottom: 1px solid var(--line);
padding: 8px;
}
.results-list svg {
width: 55px;
height: 55px;
}
.results-list li > b {
margin-left: auto;
font: 30px "Soup Display";
}
.tutorial-slot:empty {
display: none;
}
.bgs-tutorial-guide {
padding: 14px 18px;
border: 1px solid #d0dcc0;
border-left: 4px solid #7da75d;
border-radius: 10px;
background: #fbfceef5;
margin: 10px 0 0;
}
.bgs-tutorial-heading {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.bgs-tutorial-heading strong {
font-size: 15px;
}
.bgs-tutorial-guide p {
margin: 8px 0 10px;
max-width: 1000px;
font-size: 13px;
line-height: 1.6;
}
.bgs-tutorial-guide button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
border: 1px solid #bfceb0;
background: #f9fbed;
border-radius: 6px;
padding: 6px 9px;
font-size: 12px;
min-height: 33px;
}
.bgs-tutorial-controls,
.bgs-tutorial-playback,
.bgs-tutorial-help {
display: flex;
gap: 6px;
align-items: center;
flex-wrap: wrap;
}
.bgs-tutorial-controls {
justify-content: space-between;
}
.bgs-tutorial-guide small {
display: block;
font-size: 10px;
color: #8a977a;
margin-top: 7px;
}
.bgs-tutorial-highlight {
outline: 3px solid #bb892d;
outline-offset: 3px;
}
.bgs-tutorial-feedback {
color: #4f7941;
font-weight: 600;
}
.bgs-tutorial-guide [role="alert"] {
color: #a04630;
}
.bgs-tutorial-guide [hidden] {
display: none !important;
}
.bgs-tutorial-next-chapter svg {
flex: none;
}
.soup:has(.bgs-tutorial-guide) .board {
height: clamp(375px, calc(100dvh - 500px), 580px);
}
.soup:has(.bgs-tutorial-guide) .specimen {
height: 80px;
}
.soup:has(.bgs-tutorial-guide) #selected-portrait {
width: 90px;
}
.practice-nav {
display: flex;
justify-content: center;
gap: 14px;
padding: 10px;
background: #234c44;
color: #f9f6dc;
font:
12px "DM Sans",
sans-serif;
align-items: center;
flex-wrap: wrap;
}
.practice-nav a {
color: inherit;
}
.practice-nav select,
.practice-nav button {
font: inherit;
background: #fff1;
color: inherit;
border: 1px solid #ffffff50;
border-radius: 4px;
padding: 5px 8px;
}
.practice-nav select option {
color: #234c44;
background: #f8f8eb;
}
@media (max-width: 1699px) {
.soup .player {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 5px 8px;
}
.soup .player-portrait {
grid-row: 1;
grid-column: 1;
}
.soup .player-info {
grid-row: 1;
grid-column: 2;
}
.soup .player-balances {
grid-row: 2;
grid-column: 1 / -1;
justify-content: space-between;
gap: 8px;
}
}
@media (max-width: 1000px) {
.soup .board-wrap {
padding-top: 48px;
}
.soup .board-display-controls {
top: -48px;
}
.soup .pond-tools {
top: -48px;
right: calc(1% + 96px);
}
.player-income .income-unit {
display: none;
}
.soup-board-key {
font-size: 14px;
--marker-size: 9px;
margin: 8px 0 12px;
padding: 10px;
border: 1px solid var(--line);
border-radius: 12px;
background: #f7f8ee;
}
.board-reference {
position: static;
display: block;
width: 100%;
}
.soup .board-wrap {
flex-direction: column;
}
.board-actions {
position: relative;
bottom: auto;
left: auto;
width: 100%;
justify-content: center;
margin: 8px 0;
}
.soup .board-actions .board-movement {
flex-direction: row;
gap: 8px;
padding: 10px;
}
.soup .board {
flex: none;
}
.game-progress {
position: absolute;
top: 6px;
left: 1%;
width: 21%;
}
.soup .play-area {
grid-template-columns: minmax(0, 1fr) 230px;
gap: 15px;
}
.soup .board {
height: 430px;
}
.soup .food-amount {
font-size: 9px;
}
.soup .nutrients {
gap: 3px;
}
.soup .colony-heading h2 {
font-size: 22px;
}
.soup .food-reserve {
display: none;
}
.soup .player-stat {
font-size: 10px;
}
}
@media (max-width: 760px) {
.soup {
padding: 0 10px 14px;
}
.soup .topbar {
height: 68px;
}
.soup .brand h1 {
font-size: 23px;
}
.soup .brand > span {
width: 35px;
}
.soup .players {
gap: 4px;
padding: 10px 0;
}
.soup .player {
display: grid;
padding: 7px 5px;
}
.soup .player-name {
font-size: 10px;
}
.soup .player-stat {
font-size: 8px;
line-height: 1.5;
}
.soup .player-portrait {
width: 29px;
}
.soup .player-score {
font-size: 20px;
}
.player-balances {
grid-row: 1;
grid-column: 2;
gap: 9px;
}
.player-bp {
font-size: 20px;
}
.player-sensitivity {
font-size: 18px;
padding: 2px 4px;
gap: 3px;
}
.player-sensitivity svg {
width: 13px;
height: 13px;
}
.soup .player-bp svg {
width: 14px;
height: 14px;
}
.soup .player-population > svg {
width: 13px;
height: 13px;
}
.player-income .income-unit {
display: none;
}
.soup .play-area {
display: flex;
gap: 0;
}
.soup .pond-subtitle {
font-size: 10px;
}
.soup .board,
.soup:has(.bgs-tutorial-guide) .board {
height: auto;
aspect-ratio: 900/750;
width: 100%;
margin: 0;
}
.soup .organisms {
--amoeba-height: 14%;
--amoeba-width: 13%;
}
.soup .current-compass {
left: 39.5%;
width: 21%;
gap: 3px;
}
.soup .environment-current > span,
.soup .compass-label {
font-size: 6px;
}
.soup .compass-arrow {
font-size: 23px;
}
.soup .ozone {
font-size: 24px;
}
.ozone-value svg {
width: 16px;
height: 16px;
}
.soup .current-compass {
grid-template-columns: 0.65fr 1.35fr;
}
.soup .environment-ozone {
padding: 4px 2px;
border-radius: 8px;
}
.soup .cell-destination {
font-size: 7px;
padding: 2px 4px;
}
.soup .water-cell .cell-coord {
font-size: 7px;
}
.soup .food-amount {
font-size: 8px;
gap: 1px;
}
.food-amount > .food {
width: 8px;
height: 8px;
}
.soup .nutrients {
bottom: 7%;
gap: 2px;
}
.soup .amoeba-number {
height: 16px;
min-width: 16px;
width: 16px;
font-size: 9px;
}
.soup .injury {
font-size: 8px;
}
.game-progress {
gap: 3px;
font-size: 8px;
}
.round-progress {
gap: 4px;
font-size: 9px;
}
.round-progress strong {
font-size: 13px;
}
.round-meter {
gap: 2px;
}
.round-meter > span {
width: 3px;
height: 3px;
}
.soup .pond-bottom {
padding: 3px 5px 9px;
}
.soup .last-move {
font-size: 12px;
}
.soup .colony-panel {
contain: none;
container-type: normal;
display: grid;
grid-template-columns: 1fr 1fr;
padding: 12px 5px;
gap: 9px 16px;
}
.soup .specimen,
.soup .specimen-heading,
.soup .diet {
display: none;
}
.soup .colony-heading {
grid-column: 1;
grid-row: 1;
}
.soup .colony-heading h2 {
font-size: 20px;
max-width: 105px;
}
.soup .gene-heading {
grid-column: 2;
grid-row: 1;
margin: 0;
}
.soup .gene-list {
grid-column: 2;
grid-row: 2 / span 2;
max-height: 140px;
}
.soup .gene {
padding: 5px !important;
gap: 6px;
}
.soup .gene-art {
width: 25px;
height: 25px;
}
.soup .gene-art svg {
width: 22px;
height: 22px;
}
.soup .gene p {
display: block;
font-size: 9px;
}
.soup .colony-metrics {
grid-column: 1;
grid-row: 2;
display: flex;
flex-direction: column;
gap: 6px;
padding: 0;
}
.amoeba-picker {
grid-column: 1;
margin: 0;
font-size: 10px;
}
.soup .turnbar {
bottom: 5px;
padding: 10px;
gap: 8px;
margin-top: 7px;
}
.soup .turn-details {
flex: 1 1 210px;
}
.soup .phase-label {
font-size: 12px;
}
.phase-instruction {
font-size: 11px;
}
.soup .action-buttons {
justify-content: flex-start;
max-height: 160px;
overflow: auto;
width: auto;
flex: 1 1 100%;
}
.soup .action {
flex: initial;
min-height: 38px;
padding: 8px 10px;
font-size: 11px;
}
.soup .action .food-amount {
font-size: 11px;
}
.soup .modal-content {
padding: 24px 18px;
}
.soup .shop-grid {
grid-template-columns: 1fr;
}
.shop-family {
grid-column: span 1;
grid-template-columns: 1fr;
}
.soup .shop-art {
height: 94px;
}
.soup .shop-body h3 {
font-size: 17px;
}
.soup .gene-sensitivity {
font-size: 18px;
min-width: 36px;
}
.soup .gene-list .gene-art {
display: none;
}
.pool-heading h3 {
font-size: 18px;
}
.soup .pool-guide {
font-size: 12px;
}
.bgs-tutorial-guide {
padding: 10px 12px;
margin-top: 6px;
}
.bgs-tutorial-guide p {
font-size: 12px;
line-height: 1.5;
}
.bgs-tutorial-heading strong {
font-size: 13px;
}
.bgs-tutorial-guide small {
font-size: 9px;
}
.utilities .quiet-button {
font-size: 10px;
}
.soup .empty-genes {
font-size: 10px;
margin: 0;
}
}
@media (max-width: 480px) {
.utilities .utility-label {
display: none;
}
.utilities [data-ui="genes"] {
width: 30px;
justify-content: center;
}
.soup .players {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
/* "Undo my move" adds a fifth header control on the narrowest phones. */
@media (max-width: 340px) {
.soup .topbar:has([data-ui="undo-move"]:not([hidden])) {
gap: 4px;
}
.soup .topbar:has([data-ui="undo-move"]:not([hidden])) .brand {
gap: 6px;
}
.soup .topbar:has([data-ui="undo-move"]:not([hidden])) .brand > span {
width: 28px;
}
.soup .topbar:has([data-ui="undo-move"]:not([hidden])) .utilities {
gap: 3px;
}
}
@media (min-width: 1001px) and (max-height: 750px) {
.board-reference {
top: 1%;
gap: 6px;
}
.soup-board-key .scoring-table th,
.soup-board-key .scoring-table td {
padding-block: 2px;
}
}
@media (min-width: 1001px) and (max-height: 850px) {
.soup:has(.bgs-tutorial-guide) .topbar {
height: 60px;
}
.soup:has(.bgs-tutorial-guide) .players {
padding: 7px 0;
}
.soup:has(.bgs-tutorial-guide) .player {
padding: 8px;
}
.soup:has(.bgs-tutorial-guide) .board {
height: clamp(300px, calc(100dvh - 420px), 430px);
}
.soup:has(.bgs-tutorial-guide) .specimen {
display: none;
}
.soup:has(.bgs-tutorial-guide) .specimen-heading {
margin-top: 12px;
}
.soup:has(.bgs-tutorial-guide) .turnbar {
padding: 9px 13px;
margin-top: 7px;
}
.bgs-tutorial-guide {
padding: 9px 14px;
}
.bgs-tutorial-guide p {
line-height: 1.5;
margin: 6px 0;
}
}
.soup:fullscreen {
max-width: none;
overflow-y: auto;
background-color: #eff1e6;
}
.gene-label {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.3em;
padding: 0.05em 0.45em;
border: 1px solid #b9cda1;
border-radius: 0.45em;
background: #edf3df;
color: #3f6038;
font:
600 0.92em / 1.35 "DM Sans",
sans-serif;
vertical-align: middle;
white-space: nowrap;
}
.gene-label svg {
width: 1.05em;
height: 1.05em;
flex: none;
}
.resource-amount {
display: inline-flex;
align-items: baseline;
gap: 0.2em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
vertical-align: baseline;
}
.resource-amount svg {
align-self: center;
width: 1em;
height: 1em;
flex: none;
}
.injury-amount {
color: #924d39;
}
.injury-amount svg {
width: 1.2em;
height: 1.2em;
}
.bp-amount {
color: #5c7541;
}
.bgs-tutorial-guide .food-amount,
.last-move .food-amount,
.journal-list .food-amount,
.phase-instruction .food-amount,
.modal-content p .food-amount {
font-size: inherit;
align-items: baseline;
vertical-align: baseline;
gap: 0.2em;
}
.bgs-tutorial-guide .food-amount > .food,
.last-move .food-amount > .food,
.journal-list .food-amount > .food,
.phase-instruction .food-amount > .food,
.modal-content p .food-amount > .food {
width: 0.8em;
height: 0.8em;
}
.action.primary .resource-amount {
color: inherit;
}
.soup-activity .chat-translate {
display: inline-flex;
align-items: center;
justify-content: center;
vertical-align: middle;
width: 24px;
height: 24px;
min-height: 0;
padding: 4px;
margin-left: 3px;
border: 0;
border-radius: 3px;
background: transparent;
color: inherit;
opacity: 0.55;
cursor: pointer;
}
.soup-activity .chat-edit {
display: inline-flex;
align-items: center;
justify-content: center;
vertical-align: middle;
width: 24px;
height: 24px;
min-height: 0;
padding: 4px;
margin-left: 3px;
border: 0;
border-radius: 3px;
background: transparent;
color: inherit;
opacity: 0.55;
cursor: pointer;
}
.soup-activity .chat-translate:hover,
.soup-activity .chat-translate:focus-visible {
opacity: 1;
}
.soup-activity .chat-edit:hover,
.soup-activity .chat-edit:focus-visible {
opacity: 1;
}
.soup-activity .chat-translate[aria-pressed="true"] {
opacity: 1;
background: #77965926;
}
.soup-activity .chat-edit[aria-pressed="true"] {
opacity: 1;
background: #77965926;
}
.soup-activity .chat-translate:disabled {
cursor: wait;
}
.soup-activity .chat-edit:disabled {
cursor: wait;
}
.pond-tools [hidden] {
display: none;
}
.soup-activity .chat-editing {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 12px;
opacity: 0.85;
padding: 3px 0;
flex-shrink: 0;
}
.soup-activity .chat-editing[hidden] {
display: none;
}
.soup-activity .chat-edit-cancel {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
min-height: 0;
padding: 0;
border: 0;
background: transparent;
color: inherit;
cursor: pointer;
}
.food.black {
background: #505960;
border-color: #303b43;
}
.food.burgundy {
background: #ac6797;
border-color: #683b5b;
}
.practice-nav {
flex-wrap: wrap;
}
.private-forecast {
margin: 10px 20px;
padding: 10px 14px;
border-radius: 10px;
background: #e5eef2;
color: #305767;
font-size: 13px;
}
.toxin-marker {
position: absolute;
right: 7px;
top: 5px;
color: #6c3d88;
background: #f1e5fa;
border-radius: 7px;
padding: 2px 5px;
font-size: 12px;
}
.meal-source {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
}
.meal-source select {
padding: 5px;
max-width: 170px;
}
.turnbar > .action-buttons {
max-height: 240px;
overflow-y: auto;
}
.practice-nav input[type="checkbox"] {
accent-color: #527446;
}
@media (max-width: 760px) {
.soup .colony-panel {
grid-template-columns: auto minmax(0, 1fr);
padding: 8px 5px;
gap: 6px 12px;
align-items: center;
}
.soup .colony-heading .eyebrow,
.soup .colony-heading .bio-balance,
.soup .colony-metrics {
display: none;
}
.soup .colony-heading h2 {
font-size: 14px;
max-width: 110px;
margin: 0;
}
.soup .gene-heading {
gap: 8px;
}
.soup .gene-heading .text-button {
min-height: 44px;
}
.soup .gene-list {
grid-column: 1 / -1;
grid-row: auto;
max-height: none;
overflow: visible;
padding: 0;
}
.soup .gene-list .empty-genes {
margin: 0;
font-size: 11px;
line-height: 1.4;
}
.soup .gene p {
font-size: 11px;
}
.soup .amoeba-picker {
grid-column: 1 / -1;
grid-row: auto;
font-size: 12px;
}
}
@media (max-width: 760px) {
.soup .pond-bottom:has(.last-move:empty) {
display: none;
}
.soup .pond-bottom {
min-height: 0;
padding: 4px 5px;
}
}
.soup .supporter-badge {
display: inline-block;
width: 14px;
height: 14px;
margin-left: 4px;
vertical-align: -2px;
flex-shrink: 0;
}