#content.bangkokklongs2-state-1,#game.bangkokklongs2-state-2{background:#b9cec2;background-image:radial-gradient(ellipse at 20% 0, #e1eade99,transparent 60%),repeating-linear-gradient(174deg,#edf5ed0a 0 2px,transparent 2px 19px),linear-gradient(135deg,#b9cec2,#9bbcac 65%,#abc7bb)}
#BangkokKlongs2{display:flex;align-items:flex-start;justify-content:center;gap:10px;width:100%;padding:4px;box-sizing:border-box;color:#183e35;--bk-side:225px;--bk-board:800px}
#BangkokKlongs2 *{box-sizing:border-box}#BangkokKlongs2 .bk-main{width:var(--bk-board);max-width:100%;min-width:0}#BangkokKlongs2 .bk-board{position:relative;width:100%;aspect-ratio:800/515}#BangkokKlongs2 .bk-map{width:100%;height:100%;display:block;max-width:none;border-radius:8px}#BangkokKlongs2 .bk-cells,#BangkokKlongs2 .bk-landings{position:absolute;inset:0;pointer-events:none}
#BangkokKlongs2 button{cursor:default;touch-action:manipulation;color:inherit}#BangkokKlongs2 button:disabled{opacity:1}#BangkokKlongs2 button.bk-active,#BangkokKlongs2 button.bk-help,#BangkokKlongs2 button.bk-stock{cursor:pointer}#BangkokKlongs2 button:focus-visible{outline:3px solid #ffe692;outline-offset:1px}
#BangkokKlongs2 .bk-cell{position:absolute;width:10%;height:7.767%;background:none;padding:0;border:0;border-radius:5px;pointer-events:auto}#BangkokKlongs2 .bk-boat,.bk-moving .bk-boat{width:100%;height:100%;object-fit:contain;display:block}#BangkokKlongs2 .bk-cell.bk-active{outline:2px solid #fff0a8;outline-offset:-2px;background:#ffef9444}#BangkokKlongs2 .bk-cell.bk-selected,#BangkokKlongs2 .bk-hand-boat.bk-selected{outline:3px solid #ffbb22;outline-offset:-2px}#BangkokKlongs2 .bk-cell.bk-last{box-shadow:inset 0 0 0 1px #ffffff88}
#BangkokKlongs2 .bk-merchant,.bk-moving .bk-merchant{position:absolute;left:33%;top:12%;height:65%;aspect-ratio:1;border-radius:45% 45% 30% 30%;background:var(--bk-color);border:1px solid white;box-shadow:0 1px 3px #000b;color:white;display:grid;place-items:center;font-size:clamp(9px,1vw,13px);font-weight:bold;line-height:1}#BangkokKlongs2 .bk-landing{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#fff3c8;color:#413314;font-size:18px;display:none;pointer-events:auto}#BangkokKlongs2 .bk-landing.bk-active{display:block;box-shadow:0 0 0 2px #cba94b}#BangkokKlongs2 .bk-luk{position:absolute;left:94.75%;width:4%;height:auto;transform:translateY(-50%);pointer-events:none}
#BangkokKlongs2 .bk-sidebar{width:var(--bk-side);min-width:0;flex-shrink:0}#BangkokKlongs2 .bk-phase{font-weight:650;font-size:13px;padding:5px 0 8px;line-height:1.3}#BangkokKlongs2 .bk-players{display:grid;gap:8px}#BangkokKlongs2 .bk-player{min-width:0;background:#f4eedb;border-left:5px solid var(--bk-color);padding:8px;border-radius:7px}#BangkokKlongs2 .bk-player.bk-turn{box-shadow:inset 0 0 0 2px var(--bk-color)}#BangkokKlongs2 .bk-player header{display:flex;align-items:center;gap:4px;font-size:15px;font-weight:650}#BangkokKlongs2 .bk-login{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#BangkokKlongs2 .bk-star{font-size:10px}#BangkokKlongs2 .bk-stats{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;line-height:1.5;margin:4px 0}#BangkokKlongs2 .bk-stock{display:flex;align-items:center;justify-content:space-between;width:100%;padding:2px 0;border:0;background:none;gap:2px}#BangkokKlongs2 .bk-stock>span{display:flex;flex-direction:column;align-items:center;font-size:12px}#BangkokKlongs2 .bk-stock img{width:20px;height:20px;object-fit:contain}#BangkokKlongs2 .bk-stock small{font-weight:700;font-size:12px}
#BangkokKlongs2 .bk-bottom{display:flex;align-items:center;gap:9px;padding:9px 0 3px;min-height:65px}#BangkokKlongs2 .bk-hand{display:flex;gap:4px;flex:1;min-width:0}#BangkokKlongs2 .bk-hand-boat{position:relative;width:23%;max-width:100px;aspect-ratio:2;background:none;border:0;padding:0;border-radius:5px}#BangkokKlongs2 .bk-hand-boat.bk-active{outline:2px solid #748a54;outline-offset:1px}#BangkokKlongs2 .bk-supply{display:flex;gap:5px}#BangkokKlongs2 .bk-pile{position:relative;width:50px;height:45px;padding:0;border:0;background:none;border-radius:5px}#BangkokKlongs2 .bk-pile img{width:100%;height:100%;object-fit:contain}#BangkokKlongs2 .bk-pile b{position:absolute;bottom:0;right:1px;background:#fff5d6;border-radius:4px;padding:0 4px;font-size:12px}#BangkokKlongs2 .bk-pile.bk-active{outline:2px solid #a76d1a}#BangkokKlongs2 .bk-help{padding:3px 10px;font-size:14px}#BangkokKlongs2 .bk-choices{display:flex;flex-wrap:wrap;gap:5px;min-height:32px;padding:3px 0}#BangkokKlongs2 .bk-choices button{font-size:13px;background:#faf4df;border-color:#9e8b56;min-height:30px}
#BangkokKlongs2.bk-stacked{flex-direction:column;align-items:center;gap:5px}#BangkokKlongs2.bk-stacked .bk-sidebar{order:-1;width:100%}#BangkokKlongs2.bk-stacked .bk-players{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}#BangkokKlongs2.bk-stacked .bk-player{padding:4px 6px}#BangkokKlongs2.bk-stacked .bk-player header{font-size:13px}#BangkokKlongs2.bk-stacked .bk-stock>span{flex-direction:row}#BangkokKlongs2.bk-stacked .bk-stock img{width:16px;height:16px}#BangkokKlongs2.bk-stacked .bk-stats{margin:2px 0}#BangkokKlongs2.bk-stacked .bk-phase{padding:2px 0 5px}
@media(max-width:600px){#BangkokKlongs2 .bk-main{width:100%}#BangkokKlongs2 .bk-bottom{gap:5px}#BangkokKlongs2 .bk-pile{width:33px;height:36px}#BangkokKlongs2 .bk-stats{font-size:11px}#BangkokKlongs2.bk-stacked .bk-stock>span{flex-direction:column}#BangkokKlongs2 .bk-stock img{width:16px;height:16px}}
.bk-popover{max-width:min(420px,92vw)}.bk-popover .bk-stock-list{display:flex;flex-wrap:wrap;gap:4px}.bk-popover .bk-boat{display:inline-block;width:80px;height:40px;object-fit:contain;vertical-align:middle;margin:3px}.bk-moving{position:relative;display:block;pointer-events:none}.bk-moving-pile{object-fit:contain;pointer-events:none}
body.bangkok-game #log .bk-log{display:inline;line-height:1.6;white-space:normal}body.bangkok-game #log .bk-log img.bk-boat{display:inline-block;width:64px;height:32px;max-width:64px;max-height:32px;object-fit:contain;vertical-align:middle;margin:2px 5px;border:0}body.bangkok-game #log .bk-log-score{display:inline-block;font-weight:650;margin-left:6px}body.bangkok-game #log .move.color0{background:#c2dcef;color:#153e61}body.bangkok-game #log .move.color1{background:#edc6c0;color:#602e29}body.bangkok-game #log .move.color2{background:#c4dfca;color:#204b2c}body.bangkok-game #log .move.color3{background:#eee0aa;color:#564719}

#BangkokKlongs2 .bk-coordinates{position:absolute;inset:0;pointer-events:none;color:white;font-size:10px;font-weight:650;text-shadow:0 1px 2px #000}#BangkokKlongs2 .bk-coordinates span{position:absolute;line-height:1}#BangkokKlongs2 .bk-column{top:1px;transform:translateX(-50%)}#BangkokKlongs2 .bk-row{left:1px;transform:translateY(-50%)}
#BangkokKlongs2 .bk-player .bk-hand{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px 0 2px}
#BangkokKlongs2 .bk-players{gap:6px}#BangkokKlongs2 .bk-player{padding:6px}
#BangkokKlongs2 .bk-player .bk-hand-boat{width:100%;justify-self:center}
#BangkokKlongs2 .bk-bottom{justify-content:flex-end;min-height:45px}
#BangkokKlongs2 .bk-bottom :is(.bk-help,.bk-tutorial-link) {
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    height: 29px;
    padding: 0;
    color: inherit;
    font-size: 14px;
}
#BangkokKlongs2 .bk-choices{min-height:40px}
#BangkokKlongs2 .bk-score{margin-left:auto;flex-shrink:0;white-space:nowrap;font-size:12px}
#BangkokKlongs2 .bk-market-help{position:absolute;right:4px;transform:translateY(-50%);width:22px;height:22px;padding:0;border:1px solid #6c5936;border-radius:50%;background:#fff5dc;color:#413314;font-size:14px;font-weight:700;line-height:1;cursor:pointer;z-index:2}
.bk-popover .popover-body{max-height:65vh;overflow-y:auto}
.bk-popover{--bs-popover-bg:#fbf8eb;--bs-popover-border-color:#7b6945;--bs-popover-border-radius:10px;--bs-popover-header-bg:#214c3e;--bs-popover-header-color:#fff1cb;--bs-popover-header-border-bottom:1px solid #b49a5b;--bs-popover-body-color:#183e35;--bs-popover-arrow-border:#7b6945;box-shadow:0 5px 18px #173e3540;font-family:inherit}
.bk-popover .popover-header{padding:10px 14px;font-weight:650;letter-spacing:.02em}
.bk-popover .popover-body{padding:12px 14px;font-size:13px;line-height:1.55;background:linear-gradient(135deg,#fffdf3,#f0ead5);border-radius:0 0 9px 9px}
.bk-popover .popover-body p{margin:0 0 10px}.bk-popover .popover-body p:last-child{margin-bottom:0}
#BangkokKlongs2 .bk-player header{min-width:0}#BangkokKlongs2 .bk-login{min-width:0}

body.bangkok-game #log .bk-log-coordinate {
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
#BangkokKlongs2 .bk-cells .bk-cell:is(.bk-log-preview,.bk-log-selected),
#BangkokKlongs2 .bk-landings .bk-landing:is(.bk-log-preview,.bk-log-selected) {
    box-shadow: 0 0 0 3px #fff3a0, 0 0 0 5px #25351f;
    z-index: 1;
}
#BangkokKlongs2 .bk-landing:is(.bk-log-preview,.bk-log-selected):not(.bk-active) {
    display: block;
    pointer-events: none;
}
#BangkokKlongs2 .bk-sidebar{display:flex;flex-direction:column;min-height:calc(var(--bk-board)*515/800)}
#BangkokKlongs2 .bk-sidebar .bk-bottom{margin-top:auto;padding-bottom:0}
#BangkokKlongs2 .bk-sidebar .bk-stats{margin:2px 0}#BangkokKlongs2 .bk-players{gap:4px}
#BangkokKlongs2.bk-stacked .bk-sidebar{min-height:0}
#BangkokKlongs2 .bk-stock img{width:30px;height:30px;flex:none}
#BangkokKlongs2.bk-stacked .bk-stock img{width:24px;height:24px}
#BangkokKlongs2{container:bk-game / inline-size}
#BangkokKlongs2 .bk-merchant,.bk-moving .bk-merchant{width:auto;aspect-ratio:9/10;object-fit:contain;display:block;background:none;border:0;border-radius:0;box-shadow:none;filter:none}
#BangkokKlongs2 .bk-reserve{display:inline-flex;align-items:center;gap:3px}#BangkokKlongs2 .bk-merchant-icon{width:16.2px;height:18px;object-fit:contain}
@container bk-game (max-width:600px){#BangkokKlongs2 .bk-stock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 2px}#BangkokKlongs2 .bk-stock img{width:24px;height:24px}}
@supports not (container-type: inline-size){#BangkokKlongs2 .bk-stock:where([data-gcf-bangkokklongs2-q0]){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 2px}#BangkokKlongs2 .bk-stock img:where([data-gcf-bangkokklongs2-q1]){width:24px;height:24px}}
#BangkokKlongs2 .bk-stock{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:2px 0}
#BangkokKlongs2 .bk-stock>span.bk-good{min-width:0;flex-direction:column;gap:0;padding:1px;border:1px solid #d1c59e;border-radius:6px;background:linear-gradient(150deg,#fffbed,#eee5cb)}
#BangkokKlongs2 .bk-stock>span.bk-has-goods{border-color:#a4ad77;background:linear-gradient(150deg,#f0f4db,#dfe8c1)}
#BangkokKlongs2 .bk-good img{max-width:100%;opacity:.5}#BangkokKlongs2 .bk-has-goods img{opacity:1}
#BangkokKlongs2 .bk-good b{font:700 13px/12px Georgia,serif;color:#6b7658}#BangkokKlongs2 .bk-has-goods b{color:#214c3e}
#BangkokKlongs2 .bk-stock small{position:absolute;right:0;top:-17px;font-size:11px;line-height:14px;color:#476147}
@container bk-game (max-width:600px){#BangkokKlongs2 .bk-stock{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}}
@supports not (container-type: inline-size){#BangkokKlongs2 .bk-stock:where([data-gcf-bangkokklongs2-q2]){grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}}

#BangkokKlongs2 .bk-hand-slot{width:100%;max-width:100px;aspect-ratio:2;justify-self:center;border:1px dashed #a49a75;border-radius:5px;background:#e4dcc744}
#BangkokKlongs2 .bk-hand-slot.bk-active,#BangkokKlongs2 .bk-stock.bk-theft-target{outline:2px solid #a76d1a;outline-offset:2px;background:#ffef9444;cursor:pointer}
#BangkokKlongs2 .bk-good.bk-destination{outline:2px solid #a76d1a;background:#ffe8a0}

#BangkokKlongs2 .bk-hand-slot .bk-boat{opacity:.65}#BangkokKlongs2 .bk-inspector-discard{margin-top:6px;background:#faf4df;border-color:#9e8b56;font-size:12px}

/* Keep board overlays proportional to the rendered 800px reference board. */
#BangkokKlongs2 .bk-landing{width:calc(30 * var(--bk-board-unit,1px));height:calc(30 * var(--bk-board-unit,1px));font-size:calc(18 * var(--bk-board-unit,1px));line-height:1}
#BangkokKlongs2 .bk-landing.bk-active{box-shadow:0 0 0 calc(2 * var(--bk-board-unit,1px)) #cba94b}
#BangkokKlongs2 .bk-market-help{right:calc(4 * var(--bk-board-unit,1px));width:calc(22 * var(--bk-board-unit,1px));height:calc(22 * var(--bk-board-unit,1px));font-size:calc(14 * var(--bk-board-unit,1px));border-width:calc(1 * var(--bk-board-unit,1px))}
#BangkokKlongs2 .bk-coordinates{font-size:calc(10 * var(--bk-board-unit,1px))}
