.log-game{--ink:#233e4b;--teal:#11635b;color:var(--ink);max-width:450px;margin:auto;font-size:14px;line-height:1.35;text-align:left}
.log-game *{box-sizing:border-box}
.log-game img{image-rendering:pixelated;object-fit:contain}
.log-toolbar,.log-manifest,.log-controls,.log-cargo strong,.log-orders>div,.log-slots,.log-warehouse>div {display:flex;align-items:center;gap:.4rem}
.log-notice,.log-rules {margin:3px 0}
.log-toolbar,.log-manifest,.log-cargo strong{justify-content:space-between}
.log-toolbar{padding:7px 0}
.log-game button{font:inherit;cursor:pointer;min-height:44px;min-width:44px}
.log-toolbar button{padding:5px 10px}
.log-paper{background:#fff7d9;border:1px solid #b6a56f;border-left:5px solid #cf9443;border-radius:6px;padding:5px 9px}
.log-manifest{margin-bottom:4px}
.log-count{font-weight:700;font-size:.86em}
.log-orders{display:flex;gap:4px 10px;flex-wrap:wrap}
.log-orders>div{gap:3px}
.log-orders span{display:inline-flex;align-items:center;font-size:.87em}
.log-orders img{width:20px;height:20px}
.log-delivered{text-decoration:line-through;color:#306548}
.log-map{margin:8px auto;display:grid;grid-template-columns:repeat(5,1fr);width:min(100%,325px);padding:3px;border:2px solid #384f59;border-radius:7px;background:#899d98;overflow:hidden}
.log-cell{position:relative;aspect-ratio:1.28;background:#e7e8d7;box-shadow:inset 1px 1px #c8ccbe;color:#253b3e;isolation:isolate}
.log-cell::before{content:"";position:absolute;inset:0 1px 9px;background:var(--facility,none) center top/contain no-repeat;image-rendering:pixelated}
.log-cell span:not(:empty){position:absolute;right:2px;bottom:2px;padding:1px 3px;background:#fffbee;border:1px solid #76827c;border-radius:3px;font-size:12px;font-weight:800;line-height:1.05;z-index:2}
.log-tile-A{--facility:url('../img/games/logistics/booth-a.png');background-color:#f9e3c2}
.log-tile-B{--facility:url('../img/games/logistics/booth-b.png');background-color:#dceaf0}
.log-tile-W{--facility:url('../img/games/logistics/depot.png');background-color:#d3e9d9}
.log-tile-wall{--facility:url('../img/games/logistics/crate.png');background-color:#bdc6bb}
.log-cell.log-here{box-shadow:inset 0 0 0 2px #32736a}
.log-here::after{content:"";position:absolute;inset:3%;background:url('../img/games/logistics/cart.png') center/contain no-repeat;image-rendering:pixelated}
.log-here:not(.log-tile-path)::after{inset:auto auto 0 1px;width:46%;height:53%}
.log-controls{justify-content:center;gap:12px}
.log-pad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:3px}
.log-pad button,.log-warehouse button{font-weight:800;border-bottom:3px solid #51776d;touch-action:manipulation}
.log-pad button{font-size:22px;line-height:1}
.log-pad .log-up{grid-column:2}.log-pad .log-left{grid-column:1}
.log-game button:active:enabled{transform:translateY(1px)}
.log-cargo{min-width:112px;border:2px solid #558d81;border-radius:8px;padding:6px;background:#e7f4ec}
.log-slots{margin-top:4px}
.log-slots span{width:44px;min-height:44px;display:grid;place-items:center;background:white;border:1px dashed #789587;border-radius:5px;font-size:12px}
.log-slots img{width:25px;height:25px}
.log-warehouse{margin-top:8px}.log-warehouse>strong{display:block;margin-bottom:3px}
.log-warehouse button{flex:1;display:grid;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:0 4px;padding:4px;min-height:45px}
.log-warehouse img{width:23px;height:23px}.log-warehouse small{grid-column:1/-1}
.log-notice{color:var(--teal);font-weight:700;min-height:1.35em}.log-rules{font-size:12px}
.log-game :focus-visible{outline:3px solid #1960ac;outline-offset:2px}
/* 지도 선택과 카트 슬롯을 픽셀 도구로 묶는다. */
.log-game { color-scheme: only light; }
.log-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; padding: 4px; background: #dce9e2; border: 1px solid #94ada0; }
.log-plans .btn { padding: 6px 2px; font-size: 12px; white-space: nowrap; }
.log-plans [aria-pressed=true] { color: #fff; background: var(--navy, #233e4b); border-color: var(--navy, #233e4b); box-shadow: none; }
.log-cargo { border-color: var(--navy, #233e4b); border-radius: 4px; background: #e6efe6; box-shadow: 0 3px 0 #b1c5b7; }
.log-slots span { height: 44px; border: 2px solid #527968; border-radius: 2px; box-shadow: inset 2px 2px 0 #c5d5c8; }
.log-slots .log-empty { border-style: dashed; background: repeating-linear-gradient(0deg, #f6faf2 0 10px, #e8f0e4 10px 11px); }
.log-slots img { width: 32px; height: 32px; }
.log-rules { display: flex; gap: 4px; justify-content: center; margin-top: 8px; }
.log-rules span { padding: 4px; background: #fff5d6; border: 1px solid #cdb77b; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.log-warehouse small { font-size: 12px; }
@media (max-height: 500px) and (min-width: 600px) {
  .log-game { max-width: 850px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr); gap: 6px 16px; }
 .log-toolbar, .log-plans, .log-paper, .log-controls, .log-warehouse, .log-notice, .log-rules { grid-column: 2; }
.senior-card { grid-column: 2;}
  .log-map { grid-column: 1; grid-row: 1 / 7; width: 100%; margin: 0; }
  .log-toolbar { padding: 0; }
}
