/* Game-owned presentation only. Silver bar, log layout, buttons and history are FW2. */
#game.entropyGame { background:#091220; }
#game.entropyGame #logo { display:none; }
#entropy { --entropy-highlight:#00d4ff;--entropy-highlight-width:3px;--entropy-highlight-edge:#031621;--entropy-ink:#e5eef7;--entropy-dim:#b2c4d7;--entropy-line:#415872;--entropy-panel:#142337;container:entropy-surface / inline-size;color-scheme:dark;color:var(--entropy-ink);background-color:#091220;background-image:linear-gradient(#071021bd,#071021de),url('../images/systems/solar-system-back.webp');background-position:center;background-size:auto 240%;border-radius:6px; }
#entropy * { box-sizing:border-box; }
#entropy [hidden] { display:none!important; }
#entropy .entropyLayout { display:grid;grid-template-columns:minmax(0,min(56%,var(--entropy-board-limit,56vw))) minmax(330px,1fr);gap:12px;padding:10px;align-items:start; }
#entropyBoard { position:relative;aspect-ratio:1;min-width:0;width:100%;margin:0 auto; }
#entropyBoard .entropyTutorialLink { position:absolute;left:1.5%;bottom:1.5%;z-index:45;display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-color:#91cfe6;background:#122b43;color:#d4f5ff;font-size:13px;line-height:1.4;text-decoration:none; }
#entropyBoard .entropyTutorialLink:hover,#entropyBoard .entropyTutorialLink:focus-visible { background:#244763;color:#fff; }
#entropy .entropyBoardArt { width:100%;height:100%;display:block;object-fit:contain; }
#entropy .entropyArea { border:0;background:transparent;color:inherit;padding:0;min-width:0;font:inherit;touch-action:manipulation; }
#entropy .entropyArea>img { display:block;width:100%;height:100%;object-fit:contain; }
#entropyBoard>.entropyArea,#entropyBoard>.entropyPile,#entropyBoard>.entropyScientist,#entropyBoard>.entropyBoardToken,#entropyBoard>.entropyGenerator,#entropyBoard>.entropyObjectiveMarker { position:absolute; }
#entropy .entropyOuterArtwork { position:absolute;pointer-events:none;z-index:1; }
#entropy .entropyOuterArtwork>img { display:block;width:100%;height:100%;object-fit:contain; }
#entropy .entropyMoveTarget { border-radius:3px;z-index:3; }
#entropy .entropyMoveTarget.active,#entropy .entropyMoveTarget.entropySelected { z-index:5; }
#entropy .entropyMoveBonus { display:none;position:absolute;pointer-events:none;border-radius:3px;z-index:4; }
#entropy .entropyMoveBonus.entropyAvailable { display:block; }
#entropy .entropyOwnMarker img { filter:drop-shadow(1px 0 0 #fff0a1) drop-shadow(-1px 0 0 #fff0a1) drop-shadow(0 1px 0 #fff0a1) drop-shadow(0 -1px 0 #fff0a1) drop-shadow(0 1px 2px #091220); }
#entropy .entropyBoardInfo { position:absolute;z-index:45;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transform:translate(-50%,-50%);padding:0;border:1px solid #91cfe6;border-radius:50%;background:#122b43;color:#d4f5ff;box-shadow:0 1px 3px #0008;font:italic 700 18px/1 Georgia,serif; }
.entropyObjectiveHelp h4 { font-size:14px;margin:9px 0 4px; }
.entropyObjectiveHelp h4:first-child { margin-top:0; }
.entropyObjectiveHelp p { margin:0 0 8px; }
.entropyObjectiveHelp { max-height:65vh;overflow:auto; }
.entropyPopover.entropySectionPopover { --bs-popover-max-width:min(470px,calc(100vw - 24px));width:min(470px,calc(100vw - 24px)); }
.entropySectionHelp { max-height:70vh;overflow:auto; }
.entropySegmentPanel+.entropySegmentPanel { border-top:1px solid #415872;margin-top:14px;padding-top:14px; }
.entropySegmentPanel h4 { font-size:14px;margin:0 0 8px; }
.entropySegmentPanel h5 { font-size:12px;margin:10px 0 5px;color:#bdcfe1; }
.entropySegmentActionExplanation { display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center; }
.entropySegmentActionExplanation>img { width:36px;height:38px;object-fit:contain; }
.entropySegmentSummary { margin:0;font-size:13px;line-height:1.45; }
.entropySegmentBonuses { display:flex;flex-wrap:wrap;gap:6px; }
.entropySegmentMeaning { display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;border-radius:4px;background:#ffffff08;font-size:12px;flex:1 1 150px; }
.entropySegmentGain { display:inline-flex;align-items:center;gap:4px;white-space:nowrap; }
.entropySegmentGain img,.entropySegmentNotes img { width:21px;height:22px;object-fit:contain; }
.entropySegmentNotes { display:grid;gap:7px;margin-top:14px;border-top:1px solid #415872;padding-top:10px;font-size:12px; }
.entropySegmentNotes>div { display:flex;align-items:center;gap:6px; }
.entropyPopover .entropyMassIcon { background:#d1dbe7;border-radius:2px;padding:1px; }
#entropy .entropyScientist,#entropy .entropyBoardToken,#entropy .entropyGenerator,#entropy .entropyObjectiveMarker { pointer-events:none;z-index:4; }
#entropy .entropyTrackTarget { position:absolute;pointer-events:none;background:transparent; }
#entropy .entropyScientist img,#entropy .entropyBoardToken img,#entropy .entropyGenerator img,#entropy .entropyObjectiveMarker img { width:100%;height:100%;object-fit:contain; }
#entropy .entropyPile>.entropyArea { width:100%;height:100%; }
#entropy .entropyPileCount { position:absolute;right:0;bottom:0;background:#132438;border:1px solid #58708a;padding:0 clamp(1px,.3cqw,3px);border-radius:clamp(2px,.3cqw,3px);color:#fff;font-size:clamp(7px,1.2cqw,12px);line-height:1.3;pointer-events:none; }
#entropy .entropyLens { position:absolute;right:-.8cqw;top:-.8cqw;border:1px solid #7890a8;border-radius:50%;width:clamp(14px,2.4cqw,24px);height:clamp(14px,2.4cqw,24px);background:#172c44;color:#eaf4ff;padding:0;display:flex;align-items:center;justify-content:center;font-size:clamp(9px,1.3cqw,13px);z-index:5;touch-action:manipulation; }
#entropy .entropyPlayer { width:100%;float:none;position:relative;margin:0;border:0;border-left:3px solid var(--entropy-player-color);border-bottom:1px solid #41536b;background:#142337;color:var(--entropy-ink); }
#entropy .entropyPlayerHeader { display:block;position:relative;padding:4px 7px;min-height:57px;background:#142337; }
#entropy .entropyExpanded>.entropyPlayerHeader { background:#22364f; }
#entropy .entropyPlayerIdentity { display:flex;align-items:center;gap:4px;min-height:22px;padding-right:170px;white-space:nowrap;font-size:13px; }
#entropy .entropyPlayerExpand { width:26px;height:26px;background:transparent;border:0;color:inherit;padding:0;font:inherit; }
#entropy .entropyFirst { color:#ffe5a1;font-size:17px; }
#entropy .entropyPlayerFigures { display:flex;align-items:center;gap:6px;position:absolute;right:4px;top:1px;height:30px; }
#entropy .entropyStat { display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;border:0;padding:0;background:transparent;color:inherit; }
#entropy .entropyStat img { width:17px;height:18px;object-fit:contain; }
#entropy .entropyStat-mass img { background:#d1dbe7;border-radius:2px;padding:1px; }
#entropy .entropyMassIcon,.entropyFlight .entropyMassIcon { background:#d1dbe7;border-radius:2px;padding:1px; }
#entropy .entropyPlayerFigures .entropyStat img { width:17px;height:18px; }
#entropy .entropyHandCount,#entropy .entropyScoreInfo { background:transparent;border:0;color:inherit;padding:0;display:flex;align-items:center;gap:3px;min-height:30px;font:inherit; }
#entropy .entropyScoreInfo { justify-content:center;width:27px; }
#entropy .entropyHandIcon { display:inline-block;width:12px;height:16px;border:1px solid currentColor;border-radius:2px;background:#ffffff0a; }
#entropy .entropyPlayerStats { display:flex;gap:9px;align-items:center;flex-wrap:wrap;min-height:23px; }
#entropy .entropyPlayerStats>.entropyStat,#entropy .entropyPlayerFigures .entropyHandCount { gap:3px;padding:1px 4px;border:1px solid #b2c4d72e;border-radius:4px;background:#ffffff0a; }
#entropy .entropyTokenSummary { display:flex;gap:1px;margin-left:auto; }
#entropy .entropyTokenSummary img { width:17px;height:18px;object-fit:contain; }
#entropy .entropyLying { transform:rotate(65deg); }
#entropy .entropyPlaced { opacity:.45; }
#entropyPlayers { min-width:0; }
#entropy .entropyPlayerDetail {scrollbar-width:thin;background:#0d1c2f; }
#entropy .entropyPlayerContent { padding:7px;container:entropy-player-content / inline-size; }
#entropy h3 { font:500 13px/1.4 system-ui,sans-serif;margin:10px 0 6px;color:#e8f2fc; }
#entropy .entropySystems { display:flex;flex-wrap:wrap;gap:5px;margin-bottom:6px; }
#entropy .entropySystemSummary { flex:1 1 95px;display:flex;align-items:center;gap:5px;border:1px solid #465e77;border-radius:4px;padding:4px;min-height:38px;text-align:left;font-size:12px; }
#entropy .entropySystemSummary>img { width:28px;height:28px; }
#entropy .entropySystemSummary[aria-pressed=true] { background:#2b435c;border-color:#bed7ed; }
/* Each system owns a compact responsive tile and stable action anchors. */
#entropy .entropySystemTiles { display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:8px;align-items:stretch; }
#entropy .entropySystemTile,#entropy .entropyConsoleSection { container-type:inline-size;min-width:0;border:1px solid #344c64;border-radius:7px;background:#102036;padding:7px; }
#entropy .entropySystemPreview { border-style:dashed; }
#entropy .entropySystemTitle { font:500 13px/1.3 system-ui,sans-serif;margin:0;color:#d2eafa;grid-column:2;grid-row:1;align-self:end;justify-self:center; }
#entropy .entropySystem { --entropy-system-star:clamp(62px,25cqw,120px);position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--entropy-system-star) minmax(0,1fr);grid-template-rows:minmax(58px,auto) minmax(max(104px,calc(var(--entropy-system-star) + 16px)),1fr) auto;height:100%;align-items:center;gap:3px 0; }
#entropy .entropySystem>.entropyArea { position:relative;z-index:2; }
#entropy .entropySun { grid-column:2;grid-row:2;width:100%;aspect-ratio:1; }
#entropy .entropyPlanet { grid-row:2;width:calc(var(--entropy-system-star)*.88667);justify-self:center;aspect-ratio:1;border-radius:50%; }
#entropy .entropyPlanet0,#entropy .entropySystemHeader0,#entropy .entropyAsteroidRow0 { grid-column:1; }
#entropy .entropyPlanet1,#entropy .entropySystemHeader1,#entropy .entropyAsteroidRow1 { grid-column:3; }
#entropy .entropyBiomeCell { grid-row:3;position:relative;width:calc(100% + var(--entropy-system-star)/2);max-width:160px;height:50px; }
#entropy .entropyBiomeCell0 { grid-column:1;justify-self:start; } #entropy .entropyBiomeCell1 { grid-column:3;justify-self:end; }
#entropy .entropyBiome { width:100%;height:100%; }
#entropy .entropyBiomeInfo { position:absolute;left:50%;top:2px;transform:translateX(-50%);z-index:5;width:18px;height:18px;border:1px solid #91cfe699;border-radius:50%;background:#122b43e8;color:#e6eff7;font-size:11px;line-height:16px;padding:0;box-shadow:0 1px 3px #0006; }
#entropy .entropySlot { background:#12263caa;border:1px dashed #7795b0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#bdcfe1;border-radius:4px;font-size:12px; }
#entropy .entropySlot small { font-size:11px; }
#entropy .entropySun.entropySlot,#entropy .entropyPlanet.entropySlot { border-radius:50%; }
#entropy .entropyPlanet.entropySlot { width:calc(var(--entropy-system-star)*.72);justify-self:center; }
#entropy .entropyPlanet.entropySlot small { display:none; }
#entropy .entropySystemHeader { grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0; }
#entropy .entropyLocalLife { display:flex;justify-content:center;gap:2px; }
#entropy .entropyLocalLife .entropyStat { font-size:12px;gap:1px; }
#entropy .entropyLocalLife .entropyStat img { width:14.4px;height:14.4px; }
#entropy .entropyAsteroidRow { grid-row:2;position:relative;width:calc(var(--entropy-system-star)*.8);height:calc(var(--entropy-system-star)*.8);justify-self:center;align-self:center;pointer-events:none;z-index:4; }
#entropy .entropyAsteroid { position:absolute;width:clamp(28px,calc(var(--entropy-system-star)*.32),40px);height:clamp(28px,calc(var(--entropy-system-star)*.32),40px);border-radius:50%;pointer-events:none; }
#entropy .entropyAsteroid:first-child { left:0;top:0;transform:translate(-50%,-50%); }
#entropy .entropyAsteroid:last-child { right:0;bottom:0;transform:translate(50%,50%); }
#entropy .entropyAsteroid small { display:none; }
#entropy .entropyPlayed { display:flex;align-items:center;justify-content:center;gap:3px; }
#entropy .entropyPlayed>.entropyArea { width:22px;height:34px;border-radius:3px; }
#entropy .entropyPlayed small { display:none; }
#entropy .entropyBiomePlacement { grid-row:2;width:calc(var(--entropy-system-star)*.88667);aspect-ratio:1;justify-self:center;align-self:center;z-index:3!important;background:transparent;border:0;border-radius:50%; }
.entropyBiomeHelpArt { display:block;width:100%;height:auto;margin-bottom:10px; }
.entropyBiomeHelp h4 { font-size:14px;margin:12px 0 5px; }
.entropyBiomeHelp p { margin:4px 0; }
#entropy .entropyConsoleHeading { display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px; }
#entropy .entropyResourceBlock { position:absolute;right:0;bottom:1%;display:flex;flex-direction:column;align-items:flex-end;gap:.8cqw;z-index:5; }
#entropy .entropyBank { display:grid;grid-template-columns:repeat(4,2.8cqw);grid-template-rows:repeat(2,2.8cqw);gap:1.2cqw; }
#entropy .entropyBankTarget { width:100%;height:100%; }
#entropy .entropyExchanges { display:flex;flex-direction:column;align-items:flex-end;gap:.6cqw; }
#entropy .entropyExchange { flex:0 0 auto;padding:.35cqw .55cqw;border-radius:4px; }
#entropy .entropyExchange>span { display:flex;align-items:center;gap:.25cqw;font-size:clamp(7px,1.05cqw,12px);white-space:nowrap; }
#entropy .entropyExchange img { flex:none;width:1.5cqw;height:1.6cqw;object-fit:contain; }
#entropy .entropyExchange:disabled { opacity:.4; }
#entropy .entropyConsole { position:relative;display:grid;grid-template-columns:20px repeat(3,minmax(0,1fr)) 32px;gap:4px 4px;align-items:center;padding:6px 0; }
#entropy .entropyConsoleLabel { font-size:11px;color:var(--entropy-dim); }
#entropy .entropyConsoleHome { grid-row:1;display:flex;justify-content:center;align-items:center;height:36px;min-width:0; }
#entropy .entropyConsoleToken,#entropy .entropyConsoleTokenSlot { display:block;width:34px;height:34px; }
#entropy .entropyConsoleTokenSlot { border:1px dashed #7890a8;border-radius:5px;padding:3px; }
#entropy .entropyConsoleTokenSlot img { width:100%;height:100%;object-fit:contain;opacity:.3; }
#entropy .entropyConsoleRetrieval { grid-column:2/6;display:flex;justify-content:center;align-items:center;gap:5px;background:#22344c;border-radius:4px;padding:4px;font-size:12px; }
#entropy .entropyConsoleRetrieval img { width:21px;height:23px;object-fit:contain; }
#entropy .entropyFocusCell { grid-row:3;min-width:0;align-self:start; }
#entropy .entropyFocus { display:block;width:100%;background:transparent;border:0;padding:0;color:inherit; }
#entropy .entropyFocusEffect { display:block;padding:2px;opacity:.5; }
#entropy .entropyFocusSymbol { display:block;position:relative;width:100%;aspect-ratio:610/230;overflow:hidden; }
#entropy .entropyFocusSymbol>img { position:absolute;left:-39.344%;top:-421.739%;width:158.852%;height:auto; }
#entropy .entropyFocusSymbol[data-level="2"]>img { top:-530.435%; }
#entropy .entropyFocusEffectCurrent { opacity:1;background:#19394b;border-radius:4px; }
#entropy .entropyConsoleWild { grid-row:3;grid-column:4;text-align:center;color:var(--entropy-dim); }
.entropyFocusArtwork { display:block;position:relative;overflow:hidden;aspect-ratio:969/744; }
.entropyFocusArtwork[data-level="0"] { aspect-ratio:969/520; }
.entropyFocusArtwork>img { position:absolute;bottom:0;left:0;width:100%;height:auto; }
.entropyFocusArtwork[data-level="2"]>img { transform:rotate(180deg); }
#entropy .entropyFocusInfo { display:flex;align-items:center;justify-content:center;gap:4px;width:100%;min-height:24px;border:0;padding:2px;background:transparent;color:inherit;font-size:12px; }
#entropy .entropyFocusCost { display:flex;align-items:center;justify-content:center;gap:3px;font-size:12px; }
#entropy .entropyFocusCost img { width:18px;height:22px;object-fit:contain; }

#entropy .entropyHand { display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;min-height:36px; }
#entropy .entropyHandCard { width:71.3px;height:110.4px;border-radius:5px;overflow:hidden; }
#entropy .entropyUsed { opacity:.5; }
/* Cursor feedback is local to Entropy; native FW2 activation owns action availability. */
#entropy .entropyTarget:not(.active):not(.stayActive):not(.clickMeElement):not(.clickMe),
#entropy button:disabled,
#entropy [aria-disabled="true"] { cursor:default!important; }
/* One static, high-contrast selection treatment for actions, bonuses, cards and pieces.
   Keep the stroke inside each target so adjacent fields remain separate. */
#entropy .entropyTarget.active,#entropy .entropyTarget.stayActive,#entropy .entropySelected,#entropy .entropyMoveBonus.entropyAvailable {
    outline:var(--entropy-highlight-width) solid var(--entropy-highlight)!important;outline-offset:calc(-1 * var(--entropy-highlight-width));
    box-shadow:0 0 0 1.5px var(--entropy-highlight-edge);opacity:1;
}
#entropy .entropyTarget.active,#entropy .entropyTarget.stayActive { cursor:pointer;pointer-events:auto; }
#entropy .entropyPaymentChoice { padding:5px;display:inline-flex;gap:6px;align-items:center; }
.entropyPopover { --bs-popover-bg:#15283e;--bs-popover-body-color:#e6eff7;--bs-popover-header-bg:#223a54;--bs-popover-header-color:#e6eff7;--bs-popover-border-color:#617d99;--bs-popover-max-width:min(470px,calc(100vw - 20px)); }
.entropyPopover .entropyPopoverHeading { display:flex;justify-content:space-between;align-items:center;gap:16px; }
.entropyPopover .popover-body { padding:8px 12px; }
.entropyPopover .entropyComponentDetail img { display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto; }
.entropyPopover .entropyInventory { display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start;max-height:55vh;overflow:auto; }
.entropyPopover .entropyInventoryItem { width:128px;flex:0 0 128px;display:flex;flex-direction:column;align-items:center;padding:0;line-height:0;background:transparent;border:0;color:inherit; }
.entropyPopover .entropyInventoryItem img { display:block;width:100%;height:auto; }
.entropyPopover.entropyBiomePopover { --bs-popover-max-width:min(960px,calc(100vw - 24px));width:min(960px,calc(100vw - 24px)); }
.entropyPopover.entropyFocusPopover { --bs-popover-max-width:min(560px,calc(100vw - 24px));width:min(560px,calc(100vw - 24px)); }
.entropyFocusStages { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:65vh;overflow:auto; }
.entropyFocusStage { border:1px solid #415872;border-radius:4px;padding:6px;min-width:0; }
.entropyFocusStage>strong { display:block;margin-bottom:6px; }
.entropyFocusStageCurrent { border:2px solid #f6d883; }
@media(max-width:559px) { .entropyFocusStages { grid-template-columns:minmax(0,1fr); } }
.entropyPopover .entropyBiomePileDetail .entropyInventory { display:grid;grid-template-columns:minmax(0,1fr);gap:6px;max-height:65vh; }
.entropyPopover .entropyBiomePileDetail .entropyInventoryItem { width:100%;min-width:0; }
@media(min-width:900px) { .entropyPopover .entropyBiomePileDetail .entropyInventory { grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr; } }
.entropyPopover .entropyObjectivePileDetail .entropyInventory { flex-wrap:nowrap;overflow:visible; }
.entropyPopover .entropyObjectivePileDetail .entropyInventoryItem { width:76px;flex:0 1 76px;min-width:0; }
.entropyPopover .entropyObjectivePileDetail .entropyInventoryItem img { height:auto; }
.entropyPopover .entropyScoreRow { display:flex;gap:9px;align-items:center;justify-content:space-between; }
.entropyPopover .entropyScoreRow>img { width:20px;height:24px;object-fit:contain; }
.entropyLog { display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:inherit; }
/* FW2 maps the selected player palette to colorN on every move header. */
#log .move.color0 { background:#2373ac;color:#fff; }
#log .move.color1 { background:#eb8b38;color:#132337; }
#log .move.color2 { background:#26a7a1;color:#132337; }
#log .move.color3 { background:#850a43;color:#fff; }
.entropyPreparationTitle { display:block;margin:4px 0; }
.entropyStartingEquipment { border-left:3px solid var(--entropy-player-color);padding:3px 5px;margin:4px 0; }
.entropyStartingItems { display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:3px 0; }
.entropyStartingItems .entropyLogComponent { display:inline-flex;padding:0;border:0;background:transparent; }
#log .entropyStartingItems img { width:30px;height:42px;object-fit:contain; }
.entropyStartingResources { display:flex;flex-wrap:wrap;gap:8px; }
.entropyStartingResources>span { display:inline-flex;align-items:center;gap:3px; }
#log .entropyStartingResources img { width:17px;height:18px;object-fit:contain; }
.entropyLog img { display:inline-block;width:25px;height:27px;object-fit:contain;vertical-align:middle; }
/* Override FW2's #log .action img width without enlarging resource icons. */
#log .entropyLog img.entropyLogCard { width:52px;height:auto; }
#log .entropyLog img.entropyLogPlanet { width:64px;height:auto; }
#log .entropyLog img.entropyLogBiome { width:96px;height:auto; }
#log .entropyLog img.entropyLogTile { width:32px;height:auto; }
#log .entropyStarUpgrade .entropyLogComponent>img { width:32px;height:32px; }
#log .entropyLog img.entropyLogScientist { width:25px;height:36px; }
#log .entropyLog img.entropyDestinationIcon { width:30px;height:30px; }
#log .entropyLog img.entropyLogToken { width:25px;height:27px; }
.entropyLog .entropyEndpoint { font-size:inherit;white-space:nowrap; }
.entropyLog .entropyLogComponent { display:inline-flex;padding:0;border:0;background:transparent;color:inherit;vertical-align:middle; }
.entropyFlight { position:absolute;z-index:10000;pointer-events:none; }
.entropyFlight img { width:100%;height:100%;object-fit:contain;display:block; }
.entropyFlight>span { position:absolute;right:-5px;bottom:-3px;border:1px solid #6e879e;border-radius:3px;background:#13263d;color:#fff;padding:0 3px;font:12px/1.2 system-ui,sans-serif; }
#entropy .entropyPending { display:flex;gap:8px;flex-wrap:wrap; }
#entropy .entropyPending button { width:76px; }
@container entropy-surface (max-width:850px) { #entropy .entropyLayout { grid-template-columns:1fr; } #entropyPlayers { max-height:none;overflow:visible; } #entropyBoard { width:100%;max-width:640px;margin:10px auto; } #entropy .entropyPlayerDetail { max-height:none;overflow:visible; } }
@container entropy-surface (max-width:430px) { #entropy .entropyBoardInfo { width:21px;height:21px;font-size:16px; } }
@container entropy-surface (max-width:430px) { #entropy .entropyLayout { padding:5px;gap:8px; } #entropy .entropyPlayerStats { gap:5px; } #entropy .entropyTokenSummary img { width:14px;height:16px; } #entropy .entropyStat { gap:2px;font-size:11px; } #entropy .entropyStat img { width:14px;height:16px; } #entropy .entropyPlayerIdentity { font-size:12px; } #entropy .entropyPlayed>.entropyArea { width:20.7px;height:29.9px; } #entropy .entropyLocalLife { gap:4px; } #entropy .entropySlot small { font-size:11px; } }
@media (pointer:coarse) { #entropy .entropyPlayerExpand,#entropy .entropyScoreInfo,#entropy .entropyHandCount { min-height:40px; } #entropy .entropyPlayerHeader { min-height:65px; } #entropy .entropyPlayerIdentity { min-height:32px; } #entropy .entropyPlayerFigures { height:39px; } #entropy .entropySystemSummary { min-height:44px; } }

/* Crop only the placed tile; inspection retains the complete original artwork. */
#entropy .entropyPlanetCrop { display:block;position:relative;width:100%;height:100%;overflow:hidden; }
#entropy .entropyPlanetCrop>img { position:absolute;left:-61%;top:0;width:175%;height:100%;object-fit:fill;clip-path:url(#entropyPlanetMask); }
#entropy .entropyAsteroidCost { width:36px;height:36px;background:#12263cbb;border:1px dashed #8faec7;overflow:visible; }
#entropy .entropyAsteroidCostContent { display:flex;align-items:center;justify-content:center;gap:3px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:2px;background:transparent;border-radius:4px;font-size:13px;line-height:1;color:#f0f5fa;white-space:nowrap; }
#entropy .entropyAsteroidCostContent img { flex:none;width:16px;height:18px;object-fit:contain; }


.entropyPopover .entropyMissionHelp { max-width:390px;max-height:65vh;overflow:auto; }
.entropyPopover .entropyMissionSection+section { margin-top:16px; }
.entropyPopover .entropyMissionSection h4,.entropyPopover .entropyMissionCurrent h4 { font-size:15px;margin:0 0 8px; }
.entropyPopover .entropyMissionExplanation { display:grid;grid-template-columns:minmax(80px,120px) minmax(0,1fr);gap:12px;align-items:center; }
.entropyPopover .entropyMissionSymbols { display:block;width:100%;height:auto;overflow:hidden;border-radius:4px; }
.entropyPopover .entropyMissionExplanation p { margin:0;line-height:1.45; }
.entropyPopover .entropyMissionDiscard { margin:16px 0 0;border-top:1px solid #617d99;padding-top:10px;font-size:12px;color:#bdcfe1; }

/* Sector help stays proportional to the printed arrow at every board size. */
#entropyBoard { container-type:inline-size; }
#entropy #entropyBoard>.entropySectorInfo { width:1.8%;height:1.8%;font-size:1.35cqw;border-width:.07cqw;box-shadow:none; }

/* Three base rewards; the Lifeform upgrade glyph is reserved for movement bonuses. */
.entropySoupSymbol { display:inline-flex;flex-wrap:wrap;align-items:center;gap:3px; }
.entropySoupSymbol>span { display:inline-flex;align-items:center;gap:2px; }
.entropySoupSymbol img,.entropySoupSymbol svg { width:20px;height:22px;object-fit:contain; }
.entropySegmentActionExplanation>.entropySoupSymbol { width:40px;justify-content:center;font-size:11px; }
.entropySegmentActionExplanation>.entropySoupSymbol svg { width:25px; }
.entropyLog .entropySoupSymbol { width:auto;height:auto; }

#entropy .entropyConsoleInfo { background:transparent;border:0;color:inherit;padding:2px;font-size:13px; }
#entropy .entropyConsoleLevelHeads { grid-column:1;grid-row:3;align-self:stretch;display:grid;grid-template-rows:1fr 1fr; }
#entropy .entropyConsoleLevelHeads>span { display:flex;flex-direction:column;align-items:center;justify-content:center; }
#entropy .entropyConsoleLevelHeads img { width:19px;height:14px;object-fit:contain; }
#entropy .entropyConsoleLevelHeads img+img { margin-top:-7px; }
.entropyConsoleHelp { max-height:65vh;overflow:auto; }
.entropyConsoleHelp h4 { display:flex;align-items:center;gap:7px;font-size:14px;margin:14px 0 5px; }
.entropyConsoleHelp h4 img { width:26px;height:26px;object-fit:contain; }
.entropyConsoleHelpEffect { display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;align-items:center;margin:5px 0; }
.entropyConsoleHelp .entropyFocusEffect { display:block;opacity:1; }
.entropyConsoleHelp .entropyFocusSymbol { display:block;position:relative;width:100%;aspect-ratio:610/230;overflow:hidden; }
.entropyConsoleHelp .entropyFocusSymbol>img { position:absolute;left:-39.344%;top:-421.739%;width:158.852%;height:auto; }
.entropyConsoleHelp .entropyFocusSymbol[data-level="2"]>img { top:-530.435%; }

#entropy .entropyPlayerIdentity .symbol { display:none; }

.entropyLifeHelp .entropyMissionExplanation { grid-template-columns:90px minmax(0,1fr); }
.entropyLifeHelp section:first-child .entropyMissionSymbols { max-height:180px; }
.entropyLifeHelp .entropyMissionExplanation p+p { margin-top:8px; }

#entropy .entropyLifePile>.entropyArea { border-radius:5px;overflow:hidden;box-shadow:none;filter:none; }
#entropy .entropyOfferPairLens { right:auto;transform:translate(-50%,-50%); }
.entropyLifePairHelp { max-height:65vh;overflow:auto;max-width:390px; }
.entropyLifePairHelp h4 { font-size:15px;margin:0 0 8px; }
.entropyLifePairActive { display:flex;justify-content:center;gap:14px; }
.entropyLifePairChoice { position:relative;display:flex;flex-direction:column;align-items:center;gap:4px; }
.entropyLifeOfferPick { border:0;padding:0;background:transparent;border-radius:5px;overflow:hidden; }
.entropyLifeOfferPick img { display:block;width:110px;height:auto; }
.entropyLifeOfferPick:disabled { opacity:1; }
.entropyLifeOfferInfo { position:absolute;right:3px;top:3px;z-index:2;border:1px solid #91cfe6;border-radius:50%;width:22px;height:22px;padding:0;background:#122b43;color:#e6eff7;font-size:13px; }
.entropyNestedPopover { z-index:1080; }
.entropyLifePairRemaining { margin-top:12px;border-top:1px solid #617d99;padding-top:9px; }
.entropyLifePairRemaining summary { cursor:pointer; }
.entropyLifePairRemaining p { font-size:12px;margin:8px 0; }
.entropyLifePairHelp .entropyInventory { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:none; }
.entropyLifePairHelp .entropyInventoryItem { width:100%;min-width:0; }

.entropyPlanetOffer { display:flex;flex-direction:column;align-items:center;width:110px; }
.entropyPlanetOfferGlobe { display:block;position:relative;width:110px;height:110px;overflow:hidden; }
.entropyPlanetOfferGlobe>img { position:absolute;left:-61%;top:0;width:175%;height:100%;object-fit:fill;clip-path:url(#entropyPlanetMask); }
.entropyPlanetOfferCost { display:flex;align-items:center;justify-content:center;gap:4px;color:#e6eff7;font-size:14px;padding:3px; }
.entropyPlanetOfferCost>img { width:20px;height:22px;object-fit:contain;background:#d1dbe7;border-radius:2px; }
.entropyPlanetPairHelp .entropyInventoryItem img { width:auto; }
.entropyPlanetPairHelp .entropyInventoryItem { line-height:normal; }
.entropyPlanetPairHelp .entropyInventoryItem .entropyPlanetOffer { width:100%; }
.entropyPlanetPairHelp .entropyInventoryItem .entropyPlanetOfferGlobe { width:100%;height:auto;aspect-ratio:1; }
.entropyPlanetPairHelp .entropyLifeOfferPick .entropyPlanetOfferGlobe>img { width:175%;height:100%; }

.entropyPlanetPairHelp .entropyInventoryItem .entropyPlanetOfferGlobe>img { width:175%;height:100%; }
.entropyPlanetPairHelp .entropyInventoryItem .entropyPlanetOfferCost>img { width:20px;height:22px; }

@container entropy-player-content (min-width:610px) { #entropy .entropySystemTiles { grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr; } }

#entropy .entropyBiomeInfo::before { content:"";position:absolute;inset:-5px; }

#entropy .entropyConsoleSection { align-self:stretch;min-height:200px; }
#entropy .entropyConsoleHeading { gap:8px; }
#entropy .entropyConsoleHeading h3 { margin:0;font:500 13px/1.3 system-ui,sans-serif;color:#d2eafa; }

#log .effectMovementBonus,#log .effectRetrievalBonus { display:block;margin:2px 0; }
#log .effectMovementBonus::before,#log .effectRetrievalBonus::before { content:none!important; }

/* Full card artwork stays readable without occupying the entire screen. */
.entropyPopover .entropyComponentDetail[data-kind="life"] img,
.entropyPopover .entropyComponentDetail[data-kind="mission"] img,
.entropyPopover .entropyComponentDetail[data-kind="focus"] img {
    width:auto;height:auto;max-width:min(240px,calc(100vw - 56px));max-height:min(360px,calc(100vh - 120px));
}

#entropy .entropySystemTile { display:grid; }
#entropy .entropyConsoleInfo { order:3;margin-left:auto; }

.entropyBiomePairHelp .entropyLifeOfferPick img { width:170px;max-width:100%; }
.entropyBiomePairHelp .entropyInventory { grid-template-columns:repeat(2,minmax(0,1fr)); }
.entropyBiomePairHelp .entropyLifePairChoice { min-width:0; }

.entropyScoreGoalLabel { display:flex;flex-direction:column;gap:2px;min-width:0; }
.entropyScoreGoalLabel .entropyScoreGoal { width:110px;height:36px;object-fit:contain; }
.entropyScoreGoalLabel small { font-size:11px;max-width:180px; }
.entropyScoreFormula { white-space:nowrap; }
.entropyScoreDetail .entropyScoreRow { display:grid;grid-template-columns:minmax(0,1fr) auto 20px;gap:12px;margin:6px 0; }
.entropyScoreDetail .entropyScoreRow>span:first-child { min-width:0; }

.entropyScoreDetail .entropyInventoryItem { width:64px;flex:0 0 64px; }

#buttons .entropyFooterChoice img { width:18px;height:18px;object-fit:contain;vertical-align:middle; }



#entropy .entropyPlayerFigures .entropyHandCount { min-height:0;font-size:12px;line-height:18px; }

#entropy .entropyRefillPlaceholder { border:1px dashed #7890a8;border-radius:5px;background:#102036;display:flex;align-items:center;justify-content:center; }
#entropy .entropyRefillLabel { font-size:clamp(8px,1.3cqw,13px);color:#d8eafa; }
.entropyOfferRefill { display:flex;align-items:center;justify-content:center;width:110px;min-height:169px;border:1px dashed #7890a8;border-radius:5px;background:#102036;color:#d8eafa; }
.entropyBiomePairHelp .entropyOfferRefill { width:170px;min-height:56px; }

.entropyPlanetPairHelp .entropyOfferRefill { min-height:110px; }

/* The unused upper-left corner keeps the endgame countdown visible. */
#entropy .entropyEndgameNotice { position:absolute;z-index:6;left:1%;top:1%;width:19%;color:#fff;font-size:clamp(8px,1.25cqw,14px);line-height:1.2;pointer-events:auto; }
#entropy .entropyEndgameNotice strong,#entropy .entropyEndgameRound { display:block; }
#entropy .entropyEndgameNotice strong { color:#ffd578; }
#entropy .entropyEndgameRound { margin:0.15em 0 .4em; }
#entropy .entropyEndgameMedals { display:flex;justify-content:flex-start;gap:.8cqw; }
#entropy .entropyEndgameMedal { display:flex;align-items:center;justify-content:center;width:clamp(20px,4.4cqw,36px);height:clamp(20px,4.4cqw,36px);flex:none;border:1px dashed #63788e;border-radius:50%;background:#102036; }
#entropy .entropyEndgameMedal.entropyMedalClaimed { border:clamp(2px,.35cqw,3px) solid var(--entropy-medal-color,#e5eef7); }
#entropy .entropyEndgameMedal:not(.entropyMedalClaimed) .entropyEndgameTrophy { opacity:.2; }


/* Board-relative sizing keeps markers and help controls aligned at every scale. */
#entropyBoard { container-type:inline-size; }
#entropy .entropyScientist,#entropy .entropyBoardToken,#entropy .entropyGenerator,#entropy .entropyObjectiveMarker { display:block;line-height:0; }
#entropy .entropyScientist img,#entropy .entropyBoardToken img,#entropy .entropyGenerator img,#entropy .entropyObjectiveMarker img { display:block; }
.entropyInfoIcon,#entropy .entropyInfoIcon { display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;min-height:0;padding:0;border:1px solid #91cfe6;border-radius:50%;background:#122b43;color:#d4f5ff;font:italic 700 13px/1 Georgia,serif;box-shadow:0 1px 3px #0008; }
#entropy #entropyBoard>.entropyBoardInfo { display:flex;width:2.1%;height:2.1%;font-size:1.6cqw;border-width:0.1cqw; }
#entropy #entropyBoard>.entropySectorInfo { width:1.8%;height:1.8%;font-size:1.35cqw; }

.entropyCost { color:#b82424;font-weight:700; }
#entropy .entropyCost,.entropyPopover .entropyCost { color:#ff7272; }

.entropyBiomePairHelp .entropyLifeOfferInfo { left:50%;right:auto;top:2px;transform:translateX(-50%); }

#entropy .entropyPlayerHeader { cursor:pointer; }
#entropy .entropyPlayerIdentity .playerInfoLogin { cursor:inherit; }
#entropyPlayers { max-height:none;overflow:visible; }

/* Header layout follows the actual content width, including player names. */
#entropy .entropyPlayerHeader { display:grid;grid-template-columns:24px max-content minmax(0,1fr) max-content;grid-template-areas:"scientist identity resources figures";align-items:center;gap:4px 8px;min-height:36px;padding:5px 7px; }
#entropy .entropyHeaderScientist { grid-area:scientist;width:22px;height:30px;object-fit:contain;align-self:center; }
#entropy .entropyPlayerIdentity { grid-area:identity;min-height:0;padding:0;min-width:0; }
#entropy .entropyPlayerIdentity .playerInfoLogin { overflow:hidden;text-overflow:ellipsis; }
#entropy .entropyPlayerStats { grid-area:resources;gap:6px;min-height:0;flex-wrap:nowrap; }
#entropy .entropyPlayerFigures { grid-area:figures;position:static;height:auto;gap:6px; }
#entropy .entropyHeaderWrapped { grid-template-columns:24px minmax(0,1fr) max-content;grid-template-areas:"scientist identity figures" "scientist resources resources"; }
#entropy .entropyHeaderWrapped .entropyHeaderScientist { height:38px; }
#entropy .entropyHeaderWrapped .entropyPlayerStats { flex-wrap:wrap; }

#entropy .entropyHandCount { cursor:default; }


#entropy .entropyEndgameTrophy { width:50%;height:80%;flex:none; }

/* Temporarily expand Lifeform choices without moving Planets or played cards. */
#entropy .entropyLocalLife.entropyLocalLifePicking { gap:8px;height:var(--entropy-life-row-height);align-items:center;position:relative;z-index:6; }
#entropy .entropyLocalLifePicking .entropyStat.active { flex:none;min-width:32px;min-height:28px;padding:4px 5px;gap:3px;border-radius:4px;background:#142337;transform:translateY(-4px); }
#entropy .entropyLocalLifePicking .entropyStat.active img { width:17px;height:17px; }

.entropyCreateLifeTrafficNote { margin:8px 0 0;font-size:12px;line-height:1.4;color:#bdcfe1; }

#entropy .entropyNamesToggle { position:absolute;right:1%;top:1%;width:clamp(22px,3cqw,30px);height:clamp(22px,3cqw,30px);display:flex;align-items:center;justify-content:center;border:1px solid #7890a8;border-radius:50%;background:#142337;color:#c4d8e9;padding:0;font-size:clamp(14px,2cqw,20px);z-index:6; }
#entropy .entropyNamesToggle[aria-pressed="true"] { color:#ffe29a;border-color:#ffe29a; }
#entropy .entropyPlanetName { display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(9px,3cqw,12px);line-height:1.25;color:#d2eafa; }
#entropy .entropySystemTitle { max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(10px,3.5cqw,13px); }

.entropyMissionCurrent { border-top:1px solid #415872;padding-top:10px;margin-top:10px; }
.entropyMissionRewardNow { display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0 12px; }
.entropyMissionGain,.entropyMissionConditionReward { display:inline-flex;align-items:center;gap:5px; }
.entropyMissionGain img,.entropyMissionConditionReward>img { width:22px;height:24px;object-fit:contain; }
