puerto-rico/viewer/style.css

2882 lines
57 KiB
CSS

body:has(.pr-game) {
margin: 0;
}
.pr-game {
--paper: #e8dcc1;
--panel: #f7edda;
--ink: #3e392b;
--muted: #716754;
--line: #c6b58e;
--sea: #bfd4c9;
--gold: #c89737;
--selected: #e0e5c4;
--shadow: #49372018;
--terra: #ac6045;
--foliage: #71814c;
--grain: #76522009;
--card: #fbf3e2;
--port-ink: #294d49;
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
color: var(--ink);
background-color: var(--paper);
background-image: radial-gradient(var(--grain) 0.7px, transparent 0.7px);
background-size: 5px 5px;
font-size: 14px;
line-height: 1.4;
min-height: 100vh;
padding: 0 16px calc(var(--dock-height, 60px) + 24px);
box-sizing: border-box;
color-scheme: light;
}
.pr-game.dark {
--paper: #242723;
--panel: #34352c;
--ink: #f4e8cc;
--muted: #c0b89f;
--line: #626047;
--sea: #284b48;
--gold: #ddb568;
--selected: #424c33;
--shadow: #0002;
--terra: #c98766;
--foliage: #9eac75;
--grain: #ecd9a708;
--card: #3b382e;
--port-ink: #ebecd8;
color-scheme: dark;
}
.pr-game * {
box-sizing: border-box;
}
.pr-game button,
.pr-game input {
font: inherit;
color: inherit;
}
.pr-game button {
cursor: pointer;
touch-action: manipulation;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 3px;
min-height: 42px;
padding: 7px 12px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
}
.pr-game button:hover {
border-color: var(--gold);
}
.pr-game button:focus-visible {
outline: 3px solid var(--gold);
outline-offset: 2px;
}
.pr-game button:disabled {
opacity: 0.55;
cursor: default;
pointer-events: none;
}
.pr-game button[aria-disabled="true"] {
opacity: 0.6;
}
.pr-game .icon {
flex-shrink: 0;
vertical-align: middle;
max-width: 100%;
color: var(--ink);
}
.pr-game .icon-button {
width: 42px;
padding: 8px;
flex-shrink: 0;
}
.pr-game .metric {
display: inline-flex;
align-items: center;
gap: 3px;
white-space: nowrap;
}
.pr-game .inline-symbol {
display: inline-flex;
align-items: center;
vertical-align: middle;
height: 1.4em;
white-space: nowrap;
line-height: 1;
}
.pr-game .inline-symbol > span {
display: inline-flex;
align-items: center;
gap: 2px;
}
.pr-game .inline-symbol .icon,
.pr-game .inline-symbol .score-token {
display: block;
width: 1.4em;
height: 1.4em;
}
.pr-game .symbol-range {
max-width: 100%;
}
.pr-game .symbol-range > span {
flex-wrap: wrap;
}
.pr-game .metric + .metric {
margin-inline-start: 7px;
}
.pr-game h2,
.pr-game h3,
.pr-game p {
margin: 0;
}
.pr-game h2 {
font-family: Georgia, "Times New Roman", serif;
font-size: 20px;
font-weight: normal;
}
.pr-game h3 {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: 650;
display: flex;
align-items: center;
gap: 7px;
margin: 14px 0 8px;
}
.pr-game small {
font-size: 11px;
color: var(--muted);
}
.pr-game .pr-content {
width: 100%;
}
.pr-game .game-header {
position: relative;
height: 78px;
display: flex;
align-items: center;
gap: 25px;
border-bottom: 3px double var(--gold);
}
.pr-game .wordmark {
display: flex;
flex-direction: column;
font-family: Georgia, serif;
font-size: 24px;
letter-spacing: 0.12em;
color: var(--ink);
}
.pr-game .wordmark small {
font: 10px system-ui;
letter-spacing: 0.19em;
text-transform: uppercase;
}
.pr-game nav {
margin-inline-start: auto;
display: flex;
gap: 5px;
}
.pr-game nav button {
background: transparent;
border: 0;
}
.pr-game .round-indicator {
font-size: 12px;
white-space: nowrap;
}
.pr-game .round-indicator b {
font-family: Georgia, serif;
font-size: 23px;
margin-inline-start: 5px;
}
.pr-game .player-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
gap: 6px;
margin: 12px 0;
}
.pr-game .player-tab {
padding: 8px;
min-width: 0;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
border-bottom-width: 3px;
gap: 4px;
background: transparent;
border-width: 0 0 3px;
border-radius: 0;
border-style: solid;
border-color: var(--line);
cursor: pointer;
touch-action: manipulation;
}
.pr-game .player-tab.turn {
border-bottom-color: var(--gold);
}
.pr-game .player-tab.selected {
background: var(--selected);
}
.pr-game .player-marker {
display: inline-flex;
align-items: center;
justify-content: center;
width: 17px;
height: 17px;
flex: 0 0 17px;
color: var(--player-color);
}
.pr-game .player-marker svg {
display: block;
width: 100%;
height: 100%;
}
.pr-game .player-board > header h2 {
display: flex;
align-items: center;
gap: 6px;
}
.pr-game .player-name {
display: flex;
align-items: center;
gap: 4px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 650;
}
.pr-game button.player-name {
min-height: 24px;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
justify-content: flex-start;
}
.pr-game .score-hidden {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
min-height: 28px;
}
.pr-game .score-button {
padding: 0;
min-height: 28px;
min-width: 28px;
border: 0;
background: transparent;
border-radius: 4px;
}
.pr-game .score-button:hover {
background: var(--selected);
box-shadow: 0 0 0 1px var(--gold);
}
.pr-game .player-tab > .metric {
font-size: 12px;
}
.pr-game .player-tab .player-card-score {
font-size: 12px;
display: flex;
gap: 6px;
}
.pr-game .local-controls {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 4px;
color: var(--muted);
font-size: 11px;
margin-bottom: 8px;
}
.pr-game .local-controls button {
min-height: 30px;
width: 32px;
padding: 4px;
border: 0;
background: transparent;
}
.pr-game .board-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 16px;
align-items: start;
}
.pr-game .shared-board {
grid-column: 1;
grid-row: 1;
}
.pr-game .player-board {
grid-column: 2;
grid-row: 1/3;
}
.pr-game .action-panel {
grid-column: 1;
grid-row: 2;
}
.pr-game .building-market {
grid-column: 1/-1;
}
.pr-game .panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 3px;
padding: 15px;
}
.pr-game .panel > header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}
.pr-game .panel > header > div {
display: flex;
flex-wrap: wrap;
gap: 2px;
}
.pr-game .roles {
display: grid;
grid-auto-rows: 1fr;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
margin-bottom: 14px;
}
.pr-game .role {
position: relative;
padding: 7px 4px;
display: flex;
flex-direction: column;
gap: 1px;
font-size: 11px;
min-width: 0;
min-height: 65px;
border-top: 3px solid var(--role-accent, var(--gold));
background: var(--card);
box-shadow: 0 2px 0 var(--line);
}
.pr-game .role[data-role-id="planter"] {
--role-accent: var(--foliage);
}
.pr-game .role[data-role-id="builder"] {
--role-accent: var(--terra);
}
.pr-game .role[data-role-id="captain"] {
--role-accent: #78a8ae;
}
.pr-game .role[data-role-id="smuggler"] {
--role-accent: #a594af;
}
.pr-game .role-help {
justify-content: center;
background: transparent;
border-style: dashed;
}
.pr-game .modal-body .roles-help-intro {
margin: 0 0 16px;
color: var(--muted);
}
.pr-game .role-reference-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.pr-game .role-reference {
display: flex;
flex-direction: column;
gap: 10px;
border: 1px solid var(--line);
border-radius: 2px;
padding: 12px;
}
.pr-game .role-reference h3 {
display: flex;
align-items: center;
gap: 8px;
font-size: 15px;
margin: 0;
text-transform: none;
letter-spacing: normal;
}
.pr-game .role-reference small {
display: block;
color: var(--muted);
font-weight: 600;
margin-bottom: 3px;
}
.pr-game .modal-body .role-reference p {
margin: 0;
line-height: 1.5;
}
.pr-game .role-privilege {
border-top: 1px solid var(--line);
padding-top: 8px;
}
@media (max-width: 600px) {
.pr-game .role-reference-list {
grid-template-columns: 1fr;
}
}
.pr-game .role b {
font-weight: 600;
}
.pr-game .role.available {
border-top-color: var(--role-accent, var(--gold));
background: var(--card);
}
.pr-game .role.taken {
background: transparent;
}
.pr-game .role.taken > .role-icon,
.pr-game .role.taken > b {
opacity: 0.58;
}
.pr-game .role.current {
background: var(--selected);
border-color: var(--gold);
box-shadow:
inset 0 0 0 1px var(--gold),
0 2px 0 var(--gold);
padding-top: 14px;
}
.pr-game .role.current > .role-icon,
.pr-game .role.current > b {
opacity: 1;
}
.pr-game .role.current .role-icon > .icon {
width: 26px;
height: 26px;
}
.pr-game .role-status {
position: absolute;
top: 2px;
left: 4px;
font-size: 9px;
font-weight: 750;
line-height: 12px;
color: var(--ink);
}
.pr-game .role > .player-marker {
position: absolute;
top: 3px;
right: 3px;
}
.pr-game .role-icon {
position: relative;
display: flex;
}
.pr-game .role-warning {
position: absolute;
top: 4px;
left: 4px;
line-height: 0;
}
.pr-game .role .role-warning .icon {
width: 15px;
height: 15px;
}
.pr-game .role-warning-heading,
.pr-game .role-warning-gain,
.pr-game .role-warning-bonuses > div {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.pr-game .role-warning-heading {
font-size: 18px;
}
.pr-game .role-warning-bonuses {
display: grid;
gap: 6px;
}
.pr-game .role-warning-note {
color: var(--muted);
font-size: 12px;
}
.pr-game .role small {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.pr-game .port {
color: var(--port-ink);
--ink: var(--port-ink);
--muted: var(--port-ink);
background-color: var(--sea);
background-image: repeating-linear-gradient(
174deg,
transparent 0 29px,
#92bfb819 30px 31px,
transparent 32px 60px
);
border-top: 3px solid #71958b;
border-bottom: 3px double #71958b;
}
.pr-game .recruitment-pool {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 10px;
margin-bottom: 12px;
border: 1px solid var(--line);
background: var(--panel);
font-size: 12px;
}
.pr-game .recruitment-pool > strong {
display: inline-flex;
align-items: center;
gap: 5px;
margin-inline-end: auto;
}
.pr-game .ships {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.pr-game .ship {
min-width: 0;
text-align: center;
}
.pr-game .ship-art {
width: 100%;
height: auto;
display: block;
}
.pr-game .ship > div {
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
font-size: 20px;
}
.pr-game .ship small {
font-size: 14px;
}
.pr-game .ship.full {
border-bottom: 2px solid var(--gold);
}
.pr-game .trade-row {
display: flex;
align-items: center;
gap: 5px;
margin-top: 14px;
border-top: 1px solid var(--line);
padding-top: 10px;
}
.pr-game .trade-row > span:first-child {
font-size: 12px;
margin-inline-end: auto;
}
.pr-game .trade-slot {
border: 1px solid #8aa9a5;
border-radius: 2px;
width: 38px;
height: 34px;
display: grid;
place-items: center;
background: #ffffff12;
}
.pr-game .estate-offer {
display: flex;
gap: 5px;
flex-wrap: wrap;
margin-top: 10px;
}
.pr-game .offer {
width: 46px;
min-height: 40px;
padding: 4px;
position: relative;
}
.pr-game .offer small {
position: absolute;
bottom: 0;
right: 3px;
font-weight: bold;
color: var(--ink);
}
.pr-game .festival-strip {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin-top: 16px;
}
.pr-game .festival {
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
gap: 12px;
padding: 12px;
min-width: 0;
font-size: 12px;
line-height: 1.45;
text-align: start;
background: var(--card);
border: 1px solid var(--line);
border-top: 4px solid var(--gold);
border-radius: 8px;
box-shadow:
0 3px 0 var(--line),
0 5px 10px var(--shadow);
}
.pr-game .festival-heading {
display: flex;
align-items: center;
gap: 8px;
}
.pr-game .festival-heading > .icon {
flex-shrink: 0;
}
.pr-game .festival-heading small {
display: block;
color: var(--muted);
font-size: 10px;
}
.pr-game .festival-heading strong {
display: block;
font-size: 14px;
line-height: 1.25;
}
.pr-game .festival-condition {
display: flex;
flex-direction: column;
gap: 10px;
}
.pr-game .festival-requirement {
display: flex;
flex-direction: column;
gap: 4px;
}
.pr-game .festival-targets {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
}
.pr-game .festival-targets > span {
display: inline-flex;
align-items: center;
gap: 4px;
}
.pr-game .festival-targets .icon {
flex-shrink: 0;
}
.pr-game .festival-reward {
margin-top: auto;
padding-top: 8px;
border-top: 1px solid var(--line);
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 4px;
}
.pr-game .festival-reward > small {
color: var(--muted);
font-size: 11px;
}
.pr-game .festival-reward > span {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.pr-game .festival-reward .metric {
margin: 0;
}
.pr-game .festival.claimed {
border-top-color: var(--foliage);
}
.pr-game .festival-claimed {
display: flex;
align-items: center;
gap: 5px;
font-size: 11px;
}
.pr-game .inventory {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 4px;
padding: 10px 0;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.pr-game .inventory .metric {
margin: 0;
}
.pr-game .inventory .icon {
width: 24px;
height: 24px;
}
.pr-game .player-board {
border-top: 3px solid var(--foliage);
background-image: linear-gradient(110deg, #c6b3760d, transparent 60%);
}
.pr-game .player-board h3 {
color: var(--foliage);
}
.pr-game .player-board h3:last-of-type {
color: var(--terra);
}
.pr-game .estates {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
grid-auto-rows: 1fr;
gap: 5px;
}
.pr-game .estate {
min-height: 66px;
border-radius: 2px;
background: var(--selected);
border: 1px solid var(--line);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 4px;
gap: 3px;
}
.pr-game .empty-estate {
background: transparent;
border-style: dashed;
}
.pr-game .worker-slots {
display: flex;
gap: 3px;
justify-content: center;
}
.pr-game .worker-slot {
display: inline-flex;
align-items: center;
justify-content: center;
width: 25px;
min-height: 23px !important;
height: 23px;
border: 1px solid var(--line);
border-radius: 50%;
font-size: 13px;
padding: 0;
background: var(--paper);
}
.pr-game button.worker-slot {
width: 32px;
height: 32px;
min-height: 32px !important;
}
.pr-game .worker-slot.c {
border-color: #bd8e39;
}
.pr-game .city-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 7px;
}
.pr-game .owned-building {
border: 1px solid var(--line);
border-radius: 2px;
border-top: 3px solid var(--terra);
padding: 5px 4px;
min-height: 98px;
background: var(--paper);
}
.pr-game .owned-building.expanded {
grid-column: span 2;
}
.pr-game .building-face {
border: 0;
background: transparent;
min-height: 68px;
padding: 1px;
display: flex;
flex-direction: column;
width: 100%;
font-size: 12px;
gap: 3px;
}
.pr-game .building-face .metric {
font-size: 10px;
}
.pr-game .building-type-icon {
display: inline-flex;
flex-shrink: 0;
align-items: center;
vertical-align: middle;
}
.pr-game .building-face .metric .icon {
width: 14px;
height: 14px;
}
.pr-game .empty-city {
grid-column: 1/-1;
min-height: 105px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--muted);
gap: 8px;
}
.pr-game .town-vignette {
display: block;
width: 220px;
max-width: 100%;
height: 62px;
}
.pr-game .action-panel:empty {
display: none;
}
.pr-game .action-panel h2 {
font-size: 14px;
margin-bottom: 10px;
}
.pr-game .action-choices {
display: flex;
flex-wrap: wrap;
gap: 7px;
}
.pr-game .move > span {
display: inline-flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
justify-content: center;
}
.pr-game .primary {
background: var(--gold);
border-color: var(--gold);
color: #282d24;
font-weight: 650;
}
.pr-game .primary .icon {
color: #282d24;
}
.pr-game .quiet {
background: transparent;
color: var(--muted);
}
.pr-game .market-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 7px;
}
.pr-game .building-market {
background: transparent;
border-width: 3px 0 0;
border-style: double;
border-radius: 0;
padding-inline: 0;
}
.pr-game .bcard {
position: relative;
width: 100%;
height: 100%;
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-rows: auto 1fr auto;
gap: 9px;
text-align: start;
padding: 12px;
font-size: 13px;
background: var(--card);
border-top: 3px solid var(--terra);
box-shadow: 0 2px 0 var(--shadow);
align-items: start;
}
.pr-game .bcard.production {
border-top-color: var(--foliage);
}
.pr-game .bcard.affordable {
border-color: var(--foliage);
background: var(--selected);
}
.pr-game .bcard-title {
grid-column: 1/-1;
display: flex;
gap: 7px;
align-items: center;
min-height: 38px;
padding-inline-end: 46px;
}
.pr-game .bcard-title strong {
font-family: Georgia, "Times New Roman", serif;
font-size: 15px;
font-weight: 600;
line-height: 1.3;
overflow-wrap: anywhere;
}
.pr-game .bcard-cost {
position: absolute;
top: 12px;
right: 12px;
display: flex;
flex-direction: column;
align-items: center;
font-size: 20px;
line-height: 1.2;
}
.pr-game .bcard-effect {
grid-column: 1/-1;
font-size: 12px;
line-height: 1.45;
}
.pr-game .building-symbols,
.pr-game .building-symbols > span {
display: flex;
flex-direction: column;
gap: 5px;
}
.pr-game .effect-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
min-height: 28px;
}
.pr-game .effect-quantity,
.pr-game .effect-options {
display: inline-flex;
align-items: center;
gap: 3px;
white-space: nowrap;
font-size: 14px;
}
.pr-game .effect-caption {
font-size: 11px;
line-height: 1.35;
}
.pr-game .move.compact-action {
min-height: 44px;
min-width: 48px;
padding: 8px 12px;
}
.pr-game .compact-action .metric {
font-size: 16px;
}
.pr-game .compact-action .metric .icon {
width: 27px;
height: 27px;
}
.pr-game .bcard-stats {
grid-column: 1/-1;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 6px;
}
.pr-game .points-badge {
display: inline-flex;
align-items: center;
gap: 3px;
white-space: nowrap;
font-size: 13px;
}
.pr-game .capacity-slots {
display: inline-flex;
gap: 3px;
}
.pr-game .capacity-slots > span {
display: inline-flex;
align-items: center;
justify-content: center;
width: 23px;
height: 24px;
border: 1px dashed var(--muted);
border-radius: 2px;
}
.pr-game .capacity-slots .icon {
opacity: 0.65;
}
.pr-game .bcard.sold-out {
opacity: 0.6;
}
.pr-game .pr-modal .building-market {
padding: 0;
border: 0;
background: transparent;
}
.pr-game .pr-modal .building-market > header {
display: none;
}
.pr-game .pr-modal .market-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pr-game .action-dock {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 20;
background: var(--panel);
border-top: 3px double var(--gold);
box-shadow: 0 -4px 16px var(--shadow);
padding: 9px 16px max(9px, env(safe-area-inset-bottom));
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
min-height: 60px;
}
.pr-game .action-dock .dock-prompt {
margin-inline-end: auto;
display: flex;
align-items: center;
gap: 10px;
}
.pr-game .dock-controls {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 8px;
min-width: 0;
margin-inline-start: auto;
}
.pr-game .dock-controls:empty {
display: none;
}
.pr-game .action-editor-footer {
position: sticky;
bottom: -16px;
display: flex;
justify-content: flex-end;
padding: 10px 0;
margin-top: 14px;
border-top: 1px solid var(--line);
background: var(--panel);
}
.pr-game .placement-editor h3 {
margin: 16px 0 8px;
font-size: 12px;
text-transform: uppercase;
}
.pr-game .placement-editor h3 small {
color: var(--muted);
}
.pr-game .action-dock strong {
font-size: 13px;
max-width: 420px;
}
.pr-game .assignment-tools {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.pr-game .selected {
background: var(--selected);
border-color: var(--gold);
}
.pr-game .assignment-tools > span {
width: 100%;
font-size: 12px;
color: var(--muted);
margin-top: 5px;
}
.pr-game .storage-editor p {
margin-bottom: 10px;
font-size: 12px;
}
.pr-game .storage-editor > div {
display: flex;
align-items: center;
gap: 6px;
margin-top: 5px;
}
.pr-game .storage-editor strong {
margin-inline-end: auto;
}
.pr-game .storage-editor b {
min-width: 38px;
text-align: center;
}
.pr-game dialog {
color: var(--ink);
background: var(--panel);
border: 1px solid var(--line);
border-radius: 3px;
border-top: 3px solid var(--gold);
padding: 0;
width: min(620px, calc(100vw - 24px));
max-height: calc(100dvh - 32px);
max-width: calc(100vw - 24px);
overflow: hidden;
box-shadow: 0 15px 60px #00161b55;
}
.pr-game dialog::backdrop {
background: #0b273ab3;
}
.pr-game dialog > header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-bottom: 1px solid var(--line);
gap: 12px;
}
.pr-game dialog > header h2 {
min-width: 0;
overflow-wrap: anywhere;
}
.pr-game .modal-body {
overflow: auto;
max-height: calc(100dvh - 110px);
padding: 20px;
overscroll-behavior: auto;
touch-action: pan-x pan-y pinch-zoom;
}
.pr-game .modal-body p {
margin: 12px 0;
line-height: 1.65;
}
.pr-game .rules-content > section + section,
.pr-game .rules-edition,
.pr-game .rules-reference + section {
margin-top: 22px;
padding-top: 16px;
border-top: 1px solid var(--line);
}
.pr-game .rules-content h3 {
margin: 0 0 10px;
font-size: 17px;
text-transform: none;
letter-spacing: 0;
}
.pr-game .rules-content h4 {
display: flex;
align-items: center;
gap: 6px;
margin: 0;
font-size: 14px;
}
.pr-game .rules-content p {
margin: 6px 0 10px;
line-height: 1.5;
}
.pr-game .rules-round {
padding-inline-start: 24px;
margin: 0;
}
.pr-game .rules-round li {
padding-inline-start: 4px;
margin-bottom: 12px;
}
.pr-game .rules-round li::marker {
font-weight: 700;
}
.pr-game .rules-round p {
margin-top: 2px;
}
.pr-game .rules-chain {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
list-style: none;
padding: 12px;
margin: 12px 0;
background: var(--selected);
border-radius: 2px;
}
.pr-game .rules-chain li {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
font-size: 12px;
}
.pr-game .rules-chain p {
margin: 2px 0 0;
}
.pr-game .rules-goods {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.pr-game .rules-tip {
margin-top: 18px;
padding: 12px;
border-inline-start: 3px solid var(--gold);
background: var(--sea);
}
.pr-game .rules-tip p {
margin-bottom: 0;
}
.pr-game .rules-edition section {
margin-top: 14px;
}
.pr-game .rules-edition section h3 {
font-size: 14px;
margin-bottom: 4px;
}
.pr-game .rules-content .rules-reference {
margin-top: 16px;
}
@media (max-width: 480px) {
.pr-game .rules-goods {
grid-template-columns: 1fr;
gap: 8px;
}
.pr-game .rules-chain {
padding: 10px;
}
.pr-game .rules-chain .icon {
width: 22px;
height: 22px;
}
}
.pr-game .building-detail {
display: flex;
align-items: center;
gap: 16px;
}
.pr-game .building-detail-stats {
display: flex;
flex-wrap: wrap;
gap: 14px;
}
.pr-game .building-detail-stats > span {
display: flex;
flex-direction: column;
gap: 5px;
}
.pr-game .building-detail-stats small {
color: var(--muted);
}
.pr-game .building-detail .metric {
font-size: 20px;
}
.pr-game .journal-list {
list-style: none;
padding: 0;
margin: 0;
}
.pr-game .journal-list li {
display: flex;
align-items: center;
gap: 9px;
padding: 9px 0;
border-bottom: 1px solid var(--line);
font-size: 12px;
flex-wrap: wrap;
}
.pr-game .journal-content {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
min-width: 0;
flex: 1;
}
.pr-game .journal-list .journal-player {
flex-basis: 80px;
overflow-wrap: anywhere;
}
.pr-game .journal-list .phase-divider {
margin-top: 14px;
border-bottom: 2px solid var(--line);
padding-top: 12px;
}
.pr-game .journal-list .journal-building {
min-height: 30px;
padding: 2px 4px;
border: 0;
background: transparent;
text-decoration: underline;
text-underline-offset: 3px;
text-align: start;
font-size: inherit;
}
.pr-game .journal-content small {
display: inline-flex;
align-items: center;
gap: 4px;
}
.pr-game .journal-allocation,
.pr-game .journal-loss {
flex-basis: 100%;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 5px;
}
.pr-game .journal-allocation > span {
display: inline-flex;
align-items: center;
gap: 4px;
background: var(--paper);
padding: 3px 5px;
border-radius: 4px;
}
.pr-game .journal-setup p {
margin: 0;
}
.pr-game .journal-empty {
color: var(--muted);
}
@media (max-width: 480px) {
.pr-game .journal-list .journal-player {
flex-basis: 100%;
}
}
.pr-game .journal-list .round-divider {
font-weight: bold;
letter-spacing: 0.06em;
background: var(--sea);
padding: 8px;
margin-top: 12px;
}
.pr-game .scores {
display: grid;
gap: 12px;
}
.pr-game .score-detail {
display: grid;
gap: 22px;
}
.pr-game .score-detail section > header,
.pr-game .score-total,
.pr-game .score-lines > li,
.pr-game .score-building-list > li {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.pr-game .score-detail h3 {
margin: 0;
font-size: 15px;
text-transform: none;
letter-spacing: normal;
}
.pr-game .score-detail .score-note,
.pr-game .score-hint {
margin: 5px 0 0;
color: var(--muted);
font-size: 12px;
line-height: 1.5;
}
.pr-game .score-lines,
.pr-game .score-building-list {
list-style: none;
margin: 8px 0 0;
padding: 0;
}
.pr-game .score-lines > li {
align-items: flex-start;
padding: 9px 0;
border-top: 1px solid var(--line);
}
.pr-game .score-lines .score-label {
flex: 1;
min-width: 0;
}
.pr-game .score-value {
display: inline-flex;
flex-shrink: 0;
}
.pr-game .score-building-list {
margin-inline-end: 6px;
}
.pr-game .score-building-list > li {
padding: 3px 0;
}
.pr-game .score-building-list .score-token {
width: 22px;
height: 22px;
}
.pr-game .score-history summary {
cursor: pointer;
padding: 8px 0;
font-size: 12px;
font-weight: 600;
}
.pr-game .score-total {
background: var(--selected);
border-top: 2px solid var(--gold);
padding: 12px;
}
.pr-game .scores article {
border: 1px solid var(--line);
border-radius: 8px;
padding: 12px;
}
.pr-game .scores header {
display: flex;
align-items: center;
justify-content: space-between;
}
.pr-game .scores p {
display: flex;
justify-content: space-between;
margin: 3px 0;
}
.pr-game .festival-details {
display: flex;
gap: 10px;
flex-wrap: wrap;
font-size: 22px;
}
.pr-game .pr-error {
position: fixed;
bottom: 80px;
left: 16px;
right: 16px;
z-index: 50;
background: #7e3434;
color: #fff;
padding: 15px;
border-radius: 8px;
}
.pr-game .pr-chat {
height: min(650px, 90dvh);
}
.pr-game .chat-mount {
height: calc(100% - 68px);
min-height: 0;
display: flex;
flex-direction: column;
}
.pr-game .chat-mount details {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}
.pr-game .chat-mount summary {
display: none;
}
.pr-game .chat-mount [role="log"] {
overflow: auto;
min-height: 0;
max-height: none;
flex: 1;
touch-action: pan-y pinch-zoom;
overscroll-behavior: auto;
}
.pr-game .cargo-form label {
display: flex;
align-items: center;
gap: 9px;
margin: 12px 0;
}
.pr-game .cargo-form input {
width: 70px;
margin-inline-start: auto;
padding: 10px;
background: var(--paper);
border: 1px solid var(--line);
border-radius: 5px;
}
@media (min-width: 1450px) {
.pr-game .roles {
grid-template-columns: repeat(8, minmax(0, 1fr));
}
}
@media (max-width: 760px) {
.pr-game {
padding: 0 8px calc(var(--dock-height, 60px) + 24px);
font-size: 13px;
}
.pr-game .game-header {
height: 58px;
gap: 12px;
}
.pr-game .wordmark {
font-size: 18px;
letter-spacing: 0.06em;
}
.pr-game .wordmark small {
font-size: 8px;
}
.pr-game .round-indicator {
font-size: 10px;
}
.pr-game .round-indicator b {
font-size: 17px;
margin-inline-start: 2px;
}
.pr-game nav {
gap: 0;
}
.pr-game nav .icon-button {
width: 34px;
min-height: 38px;
padding: 6px;
}
.pr-game .player-strip {
gap: 4px;
margin: 8px 0;
}
.pr-game .player-tab {
padding: 6px 5px;
flex-direction: column;
align-items: flex-start;
font-size: 11px;
}
.pr-game .player-tab .player-card-score {
gap: 1px;
font-size: 10px;
}
.pr-game .player-tab .icon {
width: 16px;
height: 16px;
}
.pr-game .player-tab .score-token {
width: 24px;
height: 24px;
}
.pr-game .player-tab .metric + .metric {
margin-inline-start: 3px;
}
.pr-game .board-layout {
display: flex;
flex-direction: column;
gap: 12px;
}
.pr-game .shared-board,
.pr-game .player-board,
.pr-game .building-market,
.pr-game .action-panel {
width: 100%;
}
.pr-game .shared-board {
order: 0;
}
.pr-game .action-panel {
order: 1;
}
.pr-game .player-board {
order: 2;
}
.pr-game .building-market {
order: 3;
}
.pr-game .panel {
padding: 10px;
}
.pr-game .roles {
gap: 4px;
grid-template-columns: repeat(4, minmax(0, 1fr));
margin-bottom: 10px;
}
.pr-game .role {
min-height: 59px;
font-size: 10px;
padding: 5px 2px;
}
.pr-game .role .icon {
width: 28px;
height: 28px;
}
.pr-game .port > header {
margin-bottom: 0;
}
.pr-game h2 {
font-size: 15px;
}
.pr-game .ships {
gap: 5px;
}
.pr-game .ship-art {
max-height: 100px;
}
.pr-game .ship > div {
font-size: 18px;
}
.pr-game .ship > div > .icon {
height: 20px;
width: 20px;
}
.pr-game .trade-row {
margin-top: 9px;
padding-top: 8px;
}
.pr-game .trade-slot {
height: 30px;
width: 33px;
}
.pr-game .offer {
width: 40px;
min-height: 36px;
}
.pr-game .festival-strip {
grid-template-columns: 1fr;
}
.pr-game .market-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
}
.pr-game .bcard {
padding: 9px;
gap: 8px;
font-size: 12px;
}
.pr-game .bcard-title {
flex-direction: column;
align-items: flex-start;
gap: 5px;
padding-inline-end: 0;
}
.pr-game .bcard-title > .icon {
margin-inline-end: 44px;
}
.pr-game .bcard-cost {
top: 9px;
right: 9px;
font-size: 18px;
}
.pr-game .bcard-effect {
font-size: 11px;
}
.pr-game .capacity-slots > span {
width: 19px;
height: 22px;
}
.pr-game .action-dock {
padding: 7px 9px max(7px, env(safe-area-inset-bottom));
gap: 5px;
min-height: 58px;
flex-wrap: wrap;
}
.pr-game .action-dock .dock-prompt {
gap: 6px;
width: 100%;
}
.pr-game .dock-controls {
width: 100%;
gap: 5px;
}
.pr-game .action-dock strong {
font-size: 12px;
}
.pr-game .action-dock .dock-order {
display: none;
}
.pr-game .action-dock:not(.action-dock-compact) .dock-controls > button:not(.dock-order) {
flex: 1 1 0;
min-width: 0;
min-height: 44px;
justify-content: center;
}
.pr-game .action-dock-compact {
flex-wrap: nowrap;
gap: 10px;
}
.pr-game .action-dock-compact .dock-prompt {
width: auto;
flex: 1 1 auto;
min-width: 0;
}
.pr-game .action-dock-compact .dock-prompt > .icon {
flex-shrink: 0;
}
.pr-game .action-dock-compact .dock-prompt strong {
overflow-wrap: anywhere;
}
.pr-game .action-dock-compact .dock-controls {
width: auto;
flex: 0 0 auto;
max-width: 50%;
}
.pr-game .action-dock-compact .dock-pass {
min-height: 42px;
}
.pr-game .action-dock .move {
font-size: 12px;
padding: 6px 8px;
}
.pr-game .action-dock .move .icon {
width: 18px;
height: 18px;
}
.pr-game .action-dock .primary {
padding: 7px 10px;
font-size: 12px;
}
.pr-game .action-choices {
gap: 5px;
}
.pr-game .action-choices .move {
font-size: 12px;
padding: 7px 9px;
}
.pr-game .city-grid {
gap: 5px;
}
.pr-game .owned-building {
padding: 4px 3px;
}
.pr-game .estate {
min-height: 59px;
}
.pr-game .modal-body {
padding: 14px;
}
.pr-game .storage-editor > div {
gap: 4px;
}
.pr-game .storage-editor .icon-button {
width: 35px;
padding: 5px;
}
}
@media (prefers-reduced-motion: no-preference) {
.pr-game button {
transition:
background-color 0.12s,
border-color 0.12s;
}
}
.pr-game .mobile-market-launch {
display: none;
}
.pr-game .chat-body {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
padding: 8px 14px;
}
.pr-game .chat-body .chat-messages {
max-height: none;
flex: 1;
min-height: 0;
}
.pr-game .chat-body .chat-composer {
flex-shrink: 0;
}
.pr-game .chat-body input {
background: var(--paper);
color: var(--ink);
}
@media (max-width: 760px) {
.pr-game .board-layout > .building-market {
display: none;
}
.pr-game .mobile-market-launch {
display: flex;
width: 100%;
margin-top: 12px;
}
.pr-game.is-building .board-layout > .building-market {
display: block;
order: 1;
}
.pr-game.is-building .action-panel {
display: none;
}
.pr-game .modal-body .building-market {
display: block;
padding: 0;
border: 0;
}
.pr-game .pr-chat {
height: 90dvh;
}
}
.pr-game .pr-chat .chat-body {
position: absolute;
inset: 68px 0 0;
height: auto;
}
.pr-game .supporter-badge {
width: 14px;
height: 14px;
vertical-align: -2px;
flex-shrink: 0;
}
.achievements,
.puertoma-board {
margin-top: 1rem;
}
.achievements p,
.puertoma-board p {
font-size: 0.85rem;
line-height: 1.4;
}
.achievements > div,
.achievement-choices {
display: grid;
gap: 0.6rem;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.achievement-card {
display: flex;
flex-direction: column;
gap: 8px;
padding: 0.6rem;
border: 1px solid var(--line);
border-radius: 0.4rem;
}
.achievement-card strong,
.achievement-card small,
.achievement-choices strong,
.achievement-choices small {
display: block;
}
.achievement-card small,
.achievement-choices small {
white-space: normal;
line-height: 1.4;
margin-top: 0.4rem;
}
.achievement-card.completed {
border-color: #477347;
}
.achievement-choices button {
height: auto;
min-width: 0;
text-align: start;
}
.puertoma-board .metric {
margin-inline-end: 0.5rem;
}
.pr-game .achievements h3 {
display: flex;
align-items: center;
gap: 0.4rem;
}
.pr-game .achievements h3 .icon-button {
position: relative;
width: 16px;
height: 16px;
min-height: 0;
padding: 0;
border: 0;
background: transparent;
line-height: 1;
}
.pr-game .achievements h3 .icon-button::after {
content: "";
position: absolute;
inset: -7px;
}
.pr-game .achievement-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}
.pr-game .achievement-heading strong {
flex: 1;
min-width: 0;
font-size: 13px;
line-height: 1.3;
}
.pr-game .achievement-points {
flex-shrink: 0;
}
.pr-game .achievement-points .metric {
margin: 0;
}
.pr-game .achievement-card {
background: var(--card);
padding: 12px;
gap: 8px;
}
.pr-game .achievement-card > small {
margin-top: 0;
}
.pr-game .achievement-card.completed {
background: var(--panel);
}
.pr-game button.worker-slot:disabled {
opacity: 0.35;
border-style: dashed;
background: transparent;
}
.pr-game .player-summary[hidden] {
display: none;
}
.pr-game .player-summary {
position: fixed;
top: 0;
left: 0;
right: 0;
margin: 0;
z-index: 18;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 8px 12px;
background: var(--panel);
border: 1px solid var(--line);
border-bottom: 2px solid var(--gold);
box-shadow: 0 3px 8px var(--shadow);
font-size: 12px;
}
.pr-game .summary-owner,
.pr-game .summary-owner > strong,
.pr-game .summary-stock,
.pr-game .summary-goods {
display: flex;
align-items: center;
gap: 12px;
}
.pr-game .summary-owner {
min-width: 0;
}
.pr-game .summary-owner > strong {
gap: 5px;
min-width: 0;
overflow-wrap: anywhere;
}
.pr-game .summary-stock {
flex-shrink: 0;
}
.pr-game .player-summary .metric {
margin: 0;
gap: 3px;
}
.pr-game .player-summary .icon {
width: 18px;
height: 18px;
}
@media (max-width: 600px) {
.pr-game .player-summary {
flex-direction: column;
align-items: stretch;
gap: 5px;
padding: 6px 8px;
}
.pr-game .summary-owner {
justify-content: space-between;
}
.pr-game .summary-goods {
justify-content: space-between;
}
}
.pr-game .player-tab {
padding: 6px 8px;
flex-direction: column;
flex-wrap: nowrap;
align-items: stretch;
justify-content: flex-start;
gap: 3px;
}
.pr-game .player-card-top {
display: flex;
align-items: center;
min-width: 0;
}
.pr-game .round-order {
display: inline-grid;
place-items: center;
flex: 0 0 20px;
height: 20px;
margin-inline-start: 5px;
border-radius: 50%;
background: var(--surface-shade);
color: var(--muted);
font-size: 11px;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.pr-game .player-card-top .player-name {
width: 100%;
min-width: 0;
flex-wrap: nowrap;
gap: 4px;
}
.pr-game .player-card-top .player-name > .icon {
flex-shrink: 0;
}
.pr-game .player-card-portrait {
position: relative;
display: inline-flex;
align-items: center;
flex-shrink: 0;
}
.pr-game .player-card-portrait.has-avatar .player-marker {
position: absolute;
inset-inline-end: -3px;
bottom: -2px;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--panel);
}
.pr-game .player-name-text {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
text-align: start;
}
.pr-game .player-card-resources,
.pr-game .player-card-goods,
.pr-game .player-card-reserve,
.pr-game .player-card-score {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px 8px;
font-size: 12px;
}
.pr-game .player-card-score,
.pr-game .player-card-reserve {
flex-wrap: nowrap;
flex-shrink: 0;
}
.pr-game .player-card-resources {
min-width: 0;
width: 100%;
min-height: 28px;
}
.pr-game .player-card-resources .metric,
.pr-game .player-tab .player-card-resources .metric + .metric {
margin: 0;
}
.pr-game .player-card-goods .icon,
.pr-game .player-card-reserve .icon {
width: 18px;
height: 18px;
}
@media (max-width: 760px) {
.pr-game .player-strip {
gap: 4px;
}
.pr-game .player-strip.many-players {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pr-game .player-tab {
padding: 5px 6px;
font-size: 12px;
}
.pr-game .player-tab .player-card-resources,
.pr-game .player-tab .player-card-goods,
.pr-game .player-tab .player-card-reserve,
.pr-game .player-tab .player-card-score {
gap: 3px 6px;
font-size: 11px;
}
.pr-game .player-card-resources .metric {
gap: 2px;
}
.pr-game .player-card-goods .icon,
.pr-game .player-card-reserve .icon {
width: 16px;
height: 16px;
}
.pr-game .player-card-top .player-avatar {
width: 20px;
height: 20px;
}
}
/* A field tile, a workshop and a loose product have distinct silhouettes. */
.pr-game .plantation-supply {
margin-top: 12px;
padding: 10px;
border: 1px solid var(--line);
border-inline-start: 3px solid var(--foliage);
background: var(--panel);
}
.pr-game .plantation-supply > header {
display: flex;
align-items: center;
gap: 7px;
}
.pr-game .plantation-supply h3 {
margin: 0;
}
.pr-game .plantation-supply .estate-offer {
margin-top: 8px;
}
.pr-game .plantation-supply .offer {
width: auto;
min-width: 48px;
min-height: 62px;
flex: 1;
flex-direction: column;
gap: 3px;
padding: 5px;
background: var(--selected);
font-size: 10px;
}
.pr-game .estate-name {
font-size: 10px;
line-height: 1.2;
}
.pr-game .building-kind {
display: block;
margin-top: 3px;
font: 600 10px system-ui;
color: var(--muted);
letter-spacing: 0.04em;
text-transform: uppercase;
}
.pr-game .staffed-icon {
position: relative;
display: inline-flex;
padding-inline-end: 8px;
padding-bottom: 3px;
}
.pr-game .staffed-icon > .icon-worker {
position: absolute;
right: 0;
bottom: 0;
background: var(--card);
border-radius: 50%;
}
.pr-game .stock-label {
color: var(--muted);
font-size: 10px;
}
.pr-game .inline-symbol .symbol-word {
font-size: 0.9em;
line-height: 1;
margin-inline-start: 2px;
}
.pr-game .inline-symbol:has(.symbol-word) {
height: auto;
}
.pr-game .production-overview {
margin: 10px 0 16px;
padding: 12px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--card);
}
.pr-game .production-overview > summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 9px;
}
.pr-game .player-board .production-overview h3 {
display: flex;
align-items: center;
gap: 6px;
margin: 0 0 3px;
color: var(--ink);
}
.pr-game .production-overview summary small {
font-size: 10px;
color: var(--muted);
}
.pr-game .production-help {
min-height: 26px;
height: 26px;
width: 26px;
padding: 4px;
border-radius: 50%;
flex-shrink: 0;
background: transparent;
}
.pr-game .production-line + .production-line {
margin-top: 8px;
}
.pr-game .production-good {
display: flex;
align-items: center;
gap: 5px;
font-size: 12px;
margin-bottom: 6px;
}
.pr-game .production-flow {
display: grid;
grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 18px auto;
align-items: center;
gap: 5px;
}
.pr-game .production-step {
display: flex;
align-items: center;
gap: 5px;
min-height: 46px;
padding: 5px;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 4px;
font-size: 12px;
}
.pr-game .production-step > .icon {
flex-shrink: 0;
}
.pr-game .production-step small {
font-size: 10px;
color: var(--muted);
}
.pr-game .production-step > span > small:first-child {
display: block;
}
.pr-game .production-step.not-needed {
background: transparent;
border-style: dashed;
justify-content: center;
text-align: center;
}
.pr-game .production-join {
text-align: center;
color: var(--muted);
}
.pr-game .production-output {
font-size: 18px;
font-weight: bold;
padding: 5px;
min-width: 42px;
text-align: center;
}
.pr-game .production-line.blocked .production-output {
color: var(--muted);
}
.pr-game .production-line.ready .production-output {
background: var(--selected);
border-radius: 4px;
}
.pr-game .production-status {
display: flex;
align-items: center;
gap: 4px;
color: var(--muted);
font-size: 11px;
margin-top: 6px;
}
.pr-game .production-destination {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 5px;
border-top: 1px solid var(--line);
margin-top: 10px;
padding-top: 8px;
color: var(--muted);
font-size: 10px;
}
.pr-game .production-destination > span {
display: inline-flex;
align-items: center;
gap: 3px;
}
.pr-game .production-or {
margin: 0 3px;
}
.pr-game .production-guide-flow {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
padding: 12px 0;
}
.pr-game .production-guide-flow > span {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
font-size: 11px;
text-align: center;
}
.pr-game .production-guide p + p {
margin-top: 12px;
}
@media (max-width: 600px) {
.pr-game .production-overview {
padding: 9px;
}
.pr-game .production-flow {
grid-template-columns: minmax(0, 1fr) 9px minmax(0, 1fr) 14px auto;
gap: 3px;
}
.pr-game .production-step {
flex-direction: column;
align-items: center;
text-align: center;
gap: 2px;
}
.pr-game .production-step > .icon {
width: 25px;
height: 25px;
}
.pr-game .production-output {
font-size: 16px;
min-width: 36px;
padding: 3px;
}
.pr-game .production-guide-flow {
gap: 5px;
}
.pr-game .production-guide-flow > span > .icon {
max-width: 38px;
}
}
.pr-game .goods-supply {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 14px;
margin: 0 0 12px;
font-size: 12px;
}
.pr-game .goods-supply > strong {
flex-basis: 100%;
font-size: 11px;
font-weight: 500;
}
.pr-game .supply-good.depleted {
opacity: 0.45;
filter: grayscale(1);
}
.pr-game .festival-reserved {
display: flex;
flex-direction: column;
gap: 4px;
margin-top: 8px;
padding-top: 7px;
border-top: 1px solid var(--line);
font-weight: 400;
}
.pr-game .festival-reserved > small {
color: var(--muted);
font-size: 10px;
}
.pr-game .festival-reserved > span {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 5px;
}
.pr-game .festival-reserved > span > small {
font-size: 10px;
}
.pr-game .trade-prices > div {
display: flex;
flex-wrap: wrap;
gap: 8px 16px;
margin-top: 6px;
}
.pr-game .trade-prices > div > span {
display: inline-flex;
align-items: center;
gap: 4px;
}
.pr-game .festival-reserved.compact {
flex-direction: row;
align-items: center;
flex-wrap: wrap;
gap: 6px;
margin-top: 5px;
padding-top: 5px;
}
.pr-game .festival-reserved.compact .metric {
font-size: 11px;
}
.pr-game .festival-reserved.compact .icon {
width: 17px;
height: 17px;
}
.pr-game .festival-section {
margin-top: 16px;
}
.pr-game .festival-section-heading {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
}
.pr-game .festival-section-heading h3 {
display: flex;
align-items: center;
gap: 6px;
margin: 0;
font-size: 13px;
}
.pr-game .festival-section-heading > small {
color: var(--muted);
font-size: 11px;
}
.pr-game .festival-section .festival-strip {
margin-top: 0;
}
.pr-game .festival-section .festival {
gap: 14px;
padding: 12px;
border-top-width: 1px;
box-shadow: 0 2px 5px var(--shadow);
}
.pr-game .festival-emblem {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--panel);
border: 1px solid var(--line);
}
.pr-game .festival-heading > strong {
flex: 1;
}
.pr-game .festival-heading > .icon {
color: var(--muted);
}
.pr-game .festival-section .festival-requirement > span:first-child {
color: var(--muted);
font-size: 11px;
}
.pr-game .festival-section .festival-targets > span {
background: var(--panel);
border-radius: 5px;
padding: 4px 7px;
}
.pr-game .festival-card-bottom {
display: flex;
flex-direction: column;
gap: 7px;
margin-top: auto;
}
.pr-game .festival-section .festival-reward {
margin-top: 0;
}
.pr-game .festival-section .festival-reserved.compact {
border: 0;
margin: 0;
padding: 0;
color: var(--muted);
}
.pr-game .festival-section .festival.claimed {
background: var(--panel);
}
.pr-game .festival-section .festival-card-bottom {
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 6px 10px;
border-top: 1px solid var(--line);
padding-top: 8px;
}
.pr-game .festival-section .festival-reward {
border: 0;
padding: 0;
justify-content: flex-start;
gap: 5px;
}
.pr-game .festival-section .festival-reward > span {
gap: 4px;
}
.pr-game .festival-reward-symbol {
color: var(--muted);
}
.pr-game .festival-section .festival-reserved.compact {
gap: 3px;
}
.pr-game .festival-reserved.compact .metric {
margin: 0;
gap: 2px;
}
.pr-game .city-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pr-game .owned-building {
display: flex;
flex-direction: column;
gap: 8px;
min-height: 0;
padding: 8px;
}
.pr-game .building-face {
flex-direction: row;
align-items: center;
justify-content: flex-start;
text-align: start;
gap: 7px;
min-height: 36px;
}
.pr-game .building-face > span:last-child {
min-width: 0;
line-height: 1.25;
}
.pr-game .owned-building-bottom {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 5px;
margin-top: auto;
}
.pr-game .owned-building-bottom > .metric {
margin: 0;
}
.pr-game .achievement-progress {
display: flex;
flex-wrap: wrap;
gap: 5px 10px;
margin-top: auto;
}
.pr-game .achievement-progress > span {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 12px;
}
.pr-game .achievement-progress b small {
display: inline;
margin: 0;
font-weight: 400;
color: var(--muted);
}
.pr-game .achievement-progress .done {
color: var(--foliage);
}
.pr-game .offer[data-plantation-info] {
opacity: 0.5;
cursor: help;
}
.pr-game .bcard-cost {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 4px;
}
.pr-game .quarry-limit {
display: inline-flex;
align-items: center;
gap: 3px;
white-space: nowrap;
color: var(--muted);
}
.pr-game .quarry-limit small {
font-size: 10px;
font-weight: 400;
}
.pr-game .city-footprint {
display: inline-flex;
align-items: center;
line-height: 1;
}
.pr-game .city-footprint .icon {
display: block;
width: 24px;
height: 24px;
margin-block: -4px;
}
.pr-game .market-grid {
padding: 11px 11px 0;
gap: 15px;
}
.pr-game .bcard-points {
display: inline-flex;
align-items: center;
gap: 7px;
}
.pr-game .building-stock-count {
position: absolute;
top: -3px;
inset-inline-end: -1px;
transform: translate(50%, -50%);
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border: 2px solid var(--panel);
border-radius: 50%;
background: var(--ink);
color: var(--card);
font-size: 11px;
font-weight: 700;
line-height: 1;
}
.pr-game[dir="rtl"] .building-stock-count {
transform: translate(-50%, -50%);
}
.pr-game .player-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
/* Secondary information stays one tap away without pushing the mobile board down. */
.pr-game .compact-section > summary {
cursor: pointer;
list-style: none;
min-height: 42px;
}
.pr-game .compact-section > summary::-webkit-details-marker {
display: none;
}
.pr-game .compact-section > summary::after {
content: "⌄";
font-size: 20px;
flex-shrink: 0;
line-height: 1;
}
.pr-game .compact-section[open] > summary::after {
transform: rotate(180deg);
}
.pr-game .compact-section:not([open]) > summary {
margin-bottom: 0;
}
.pr-game .production-quick {
display: none;
}
.pr-game .production-overview:not([open]) .production-quick {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 2px;
}
.pr-game .production-overview > summary > div {
flex: 1;
min-width: 0;
}
.pr-game .production-overview .production-help {
min-width: 38px;
min-height: 38px;
}
@media (max-width: 760px) {
.pr-game .production-overview {
margin: 6px 0 10px;
padding: 6px 9px;
}
.pr-game .festival-section {
margin-top: 8px;
}
.pr-game .festival-section-heading {
flex-wrap: nowrap;
gap: 8px;
}
.pr-game .festival-section-heading > small {
flex: 1;
text-align: end;
}
.pr-game .festival-section .festival {
padding: 8px;
gap: 7px;
}
.pr-game .festival-emblem {
width: 28px;
height: 28px;
}
}
.pr-game[dir="rtl"] .icon-arrow {
transform: scaleX(-1);
}
.pr-game [data-panel="chat"] {
position: relative;
}
.pr-game .chat-unread:not([hidden]) {
position: absolute;
top: -2px;
inset-inline-end: -3px;
min-width: 18px;
height: 18px;
padding: 0 4px;
border-radius: 10px;
background: var(--gold);
color: #24271f;
font-size: 10px;
font-weight: 700;
line-height: 18px;
text-align: center;
pointer-events: none;
}
.pr-game .production-overview > summary {
display: grid;
grid-template-columns: minmax(0, 1fr) 40px 40px;
gap: 0 8px;
align-items: center;
}
.pr-game .production-overview > summary > div {
display: contents;
}
.pr-game .production-quick {
grid-column: 1 / -1;
grid-row: 2;
}
.pr-game .production-overview > summary::after {
display: none;
}
.pr-game .player-board .production-overview h3 {
min-height: 40px;
margin: 0;
grid-column: 1;
grid-row: 1;
}
.pr-game .production-toggle {
grid-column: 3;
grid-row: 1;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--panel);
}
.pr-game .production-overview[open] .production-toggle svg {
transform: rotate(180deg);
}
.pr-game .production-overview > summary:hover .production-toggle {
border-color: var(--gold);
}
.pr-game .production-compare {
grid-column: 2;
grid-row: 1;
width: 40px;
height: 40px;
}
.pr-game .production-comparison {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
font-size: 12px;
}
.pr-game .production-comparison th:first-child {
width: 36%;
text-align: start;
overflow-wrap: anywhere;
}
.pr-game .production-comparison th,
.pr-game .production-comparison td {
padding: 6px 3px;
text-align: center;
}
.pr-game .production-comparison .comparison-player {
padding-top: 14px;
border-top: 1px solid var(--line);
}
.pr-game .player-card-objectives {
display: inline-flex;
align-items: center;
gap: 5px;
}
.pr-game .role-coins {
position: absolute;
inset-inline-start: calc(100% - 5px);
top: -4px;
white-space: nowrap;
font-weight: bold;
}
.pr-game .role-coins .metric { gap: 1px; }
.pr-game .role-coins .icon { width: 16px; height: 16px; }
.pr-game .role-recruits { font-size: 11px; }
.pr-game .role-recruits .icon { width: 15px; height: 15px; }
.pr-game .role-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; align-items: start; }
.pr-game .role-choice { min-width: 0; }
.pr-game .role-choice > .role { width: 100%; min-height: 82px; }
.pr-game .role-choice-warning {
font-size: 12px;
line-height: 1.4;
margin: 8px 0 0;
overflow-wrap: anywhere;
}
.pr-game .role-choice-warning > .icon { margin-inline-end: 4px; vertical-align: middle; }
.pr-game .recruitment-preview { border-top: 1px solid var(--line); padding-top: 12px; }
.pr-game .recruitment-preview h3 { display: flex; align-items: center; gap: 6px; }
.pr-game .recruitment-shares { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pr-game .recruitment-shares > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pr-game .recruitment-shares b { overflow-wrap: anywhere; }
.pr-game .recruitment-preview p { font-size: 12px; margin-bottom: 0; }
@media (max-width: 600px) {
.pr-game .role-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pr-game .role-recruits, .pr-game .recruitment-count, .pr-game .role-recruits > span {
display: inline-flex;
align-items: center;
gap: 2px;
}
.pr-game .produce-goods { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; }
.pr-game .produce-action > span { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
.pr-game .action-dock .produce-label,
.pr-game .action-dock .production-custom > span { display: none; }
.pr-game .action-dock:not(.action-dock-compact) .dock-controls > button.production-custom {
flex: 0 0 44px;
padding: 8px;
}
.pr-game .action-dock:not(.action-dock-compact) .dock-controls:has(.produce-action) > button.dock-pass {
flex: 0 0 auto;
}
.pr-game .action-dock .produce-action { flex: 1 1 auto; }
}
.pr-game .action-bonus { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; white-space: nowrap; font-size: .85em; }
.pr-game .action-bonus .icon, .pr-game .action-bonus .score-token { width: 20px; height: 20px; }
.pr-game .building-face .owned-building-name {
flex: 1;
min-width: 0;
}
.pr-game .current-building-effect {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 2px 5px;
margin-left: auto;
max-width: 55%;
font-size: 15px;
font-weight: 600;
}
.pr-game .current-building-effect > span {
display: inline-flex;
align-items: center;
white-space: nowrap;
gap: 1px;
}
.pr-game .building-face .current-building-effect .metric {
font-size: 15px;
margin: 0;
gap: 2px;
}
.pr-game .building-face .current-building-effect .icon {
width: 24px;
height: 24px;
}
.pr-game .current-building-effect.inactive {
opacity: 0.4;
filter: grayscale(1);
}
.pr-game .vp-supply-status { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pr-game .final-round-badge { color: #f0ca79; background: #e1b25a1a; border-radius: 5px; padding: 4px 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pr-game .role.role-pending {
outline: 2px solid var(--gold);
outline-offset: -2px;
}