/* Coordinates refer to the complete native illustrations, never a cover crop. */
.proxima-world{position:relative;overflow:visible}
.proxima-board{min-width:0;width:100%;aspect-ratio:1672/941;background-image:url('/assets/proxima/tabellone-orizzontale-v2.webp');background-size:100% 100%;--map-center-x:49.94%;--map-step-x:5.921%;--map-row-0:20.62%;--map-row-1:29.44%;--map-row-2:38.26%;--map-row-3:47.08%;--map-row-4:55.90%;--map-row-5:64.72%;--map-row-6:73.54%;--map-row-7:82.36%;--map-row-8:91.18%;--orbit-x:12%;--orbit-y-0:29%;--orbit-y-1:41%;border-radius:14px}
.proxima-table .proxima-hex{width:5.921%;height:11.76%;box-shadow:none;border:0;background:transparent}
.proxima-table .proxima-hex.ocean-reserved:not(.occupied){background:transparent}
.proxima-table .proxima-hex.chosen{background:#e4b52d88}
.proxima-table .proxima-hex.orbital{width:8%;height:12%;background:#071e37aa;border:1px solid #71dafb;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);font-size:clamp(9px,1vw,14px)}
.proxima-table .proxima-player-toggle{position:absolute;left:0;top:35.1%;width:2.8%;min-width:28px;height:19%;padding:0;border:0;background:transparent;color:#a7f1ff;font-size:20px;border-radius:0;z-index:4}
.proxima-table .proxima-player-toggle:hover{background:#48dcff30}
.proxima-consortia{position:absolute;left:3.2%;top:4%;width:min(690px,92%);max-height:92%;margin:0;padding:10px;overflow-y:auto;overscroll-behavior:contain;z-index:5;box-shadow:0 14px 40px #000b;background:#041321f5}
.proxima-consortia>header{display:flex;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:-10px;z-index:2;background:#041321;padding:5px}
.proxima-consortia h3{margin:0}.proxima-consortia [data-p=players]{display:block;min-width:0}
.proxima-player{padding:4px 0;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.proxima-player>summary{font-size:14px;white-space:normal}
.proxima-resources{min-width:580px;width:100%;max-width:none;font-size:12px}
.proxima-resource{left:calc(4.3% + var(--column)*32.05%);top:calc(9.4% + var(--row)*34.15%);width:27.4%;height:23.2%}
.proxima-resource-name{top:4%;left:0;width:65%;height:24%;gap:4px;font-size:11px;line-height:1.05;white-space:nowrap}
.proxima-resource-name .proxima-symbol{width:19px;height:19px}
.proxima-production,.proxima-quantity{top:34%;height:59%;gap:3px;text-align:center;justify-items:center}
.proxima-production{left:0;width:65%}.proxima-quantity{left:72%;width:28%}
.proxima-resources small{font-size:10px}.proxima-resources b{font-size:20px;line-height:1.1}
.proxima-player-info{left:5%;top:82%;height:8%;width:21%;display:grid;place-items:center}
.proxima-table .proxima-corporation{left:31%;top:80%;width:62%;height:11%;min-height:0;font-size:12px;display:flex;align-items:center;justify-content:center}
.proxima-inventory{display:flex;gap:14px;align-items:center;padding:12px 5px;min-width:0}
.proxima-opponent-hand{display:grid;grid-template-columns:45px auto;align-items:center;column-gap:8px;font-size:12px;flex-shrink:0}
.proxima-opponent-hand .pc-card-back{width:45px;height:66px;grid-row:1 / 3}.proxima-hand-count{font-size:24px;color:#fff2b7}
.proxima-field-tags{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.proxima-field-tags>small{flex-basis:100%;color:#b5e9ff}
.proxima-tag-count{display:inline-flex;align-items:center;gap:4px;min-width:44px;font-size:13px}.proxima-tag-count .proxima-symbol{width:25px;height:25px}
.proxima-mini-map{min-width:0;max-width:650px}.proxima-mini-map .proxima-hex{font-size:11px}
@media(orientation:portrait){
  .proxima-board{aspect-ratio:941/1672;background-image:url('/assets/proxima/tabellone-verticale-v2.webp');--map-center-x:49.95%;--map-step-x:10.627%;--map-row-0:26.914%;--map-row-1:31.579%;--map-row-2:36.364%;--map-row-3:41.388%;--map-row-4:46.471%;--map-row-5:51.615%;--map-row-6:56.758%;--map-row-7:61.902%;--map-row-8:66.866%;--orbit-x:15%;--orbit-y-0:16%;--orbit-y-1:22%}
  .proxima-table .proxima-hex{width:10.627%;height:6.738%}
  .proxima-table .proxima-hex.orbital{width:11%;height:5.5%;font-size:10px}
  .proxima-table .proxima-player-toggle{left:auto;right:0;top:39.83%;width:5.2%;height:10.47%;font-size:17px;min-width:22px}
  .proxima-consortia{left:auto;right:5.6%;top:12%;width:91%;max-height:77%;padding:8px}
  .proxima-inventory{align-items:flex-start;gap:10px}.proxima-field-tags{gap:6px}.proxima-field-tags>small{font-size:11px}
}
@media(max-width:600px){
  /* Reuse the six printed panels without shrinking their labels or forcing horizontal scrolling. */
  .proxima-resources{min-width:0;aspect-ratio:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:none}
  .proxima-resource{position:relative;left:auto;top:auto;width:100%;height:auto;aspect-ratio:530/305;background-image:url('/assets/proxima/plancia-giocatore-plain.webp');background-size:315.47% 308.52%;background-position:calc(2.36% + var(--column)*46.85%) calc(7.07% + var(--row)*50.32%)}
  .proxima-resource-name{left:7%;top:14%;width:56%;height:22%;font-size:8px;white-space:normal;gap:2px}
  .proxima-resource-name .proxima-symbol{width:14px;height:14px}
  .proxima-production{left:7%;top:40%;width:56%;height:43%;gap:1px}
  .proxima-quantity{left:72%;top:40%;width:23%;height:43%;gap:1px}
  .proxima-resources small{font-size:8px}.proxima-resources b{font-size:17px}
  .proxima-player-info{position:static;width:auto;height:auto;min-height:42px;grid-column:1}
  .proxima-table .proxima-corporation{position:static;width:100%;height:auto;grid-column:2;min-height:42px;font-size:10px}
}
