.island-game .game-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 12px; padding: 10px 0; }
.island-game .island-guide { color: #555; font-size: 15px; margin: 14px 0; }
.island-game .island-board { position: relative; width: 100%; max-width: 540px; margin: 18px auto; background: #eef4f4; border: 1px solid #d4ddda; border-radius: 4px; box-sizing: border-box; }
.island-game .island-lines, .island-game .island-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.island-game .island-lines { pointer-events: none; }
.island-game .bridge { stroke: #c0cbc8; stroke-width: 6; stroke-linecap: round; }
.island-game .pair-path { stroke-linecap: round; }
.island-game .preview-path { stroke: #4f5e62; stroke-width: 3; stroke-dasharray: 5 5; }
.island-game button.island { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid #68766b; background: #faf7e9; color: #29332c; font-size: 19px; line-height: 1; }
.island-game button.island:hover { background: #fffdf5; }
.island-game button.island.is-paired { border: 2px solid var(--pair-color); }
.island-game button.island.is-selected { background: #d6eeee; border: 3px solid #087b7f; }
.island-game button.island.is-active { background: #fff; box-shadow: 0 0 0 3px var(--pair-color); }
.island-game button.island.is-common { background: #f3d57a; color: #29332c; }
.island-game button.island:focus-visible { outline: 3px dashed #1b464b; outline-offset: 5px; z-index: 2; }
.island-game .island-badge { position: absolute; right: -3px; top: -5px; background: var(--pair-color); color: white; border-radius: 50%; min-width: 16px; height: 16px; font: 11px/16px sans-serif; }
.island-game .island-badge:empty { display: none; }
.island-game .route-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 10px 0; }
.island-game .common-toggle { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.island-game .common-toggle input { width: 18px; height: 18px; accent-color: #087b7f; }
.island-game .route-options button { padding: 4px 10px; font-size: 15px; }
.island-game .island-pairs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.island-game .route-pair { display: inline-flex; border: 1px solid #c4cbc9; border-left: 4px solid var(--pair-color); border-radius: 3px; }
.island-game .route-pair button { border: 0; border-radius: 0; padding: 4px 9px; min-height: 44px; font-size: 16px; }
.island-game .route-pair .remove-pair { border-left: 1px solid #ddd; min-width: 44px; font: 22px/1 sans-serif; }
.island-game .inspect-pair[aria-pressed="true"] { background: #e0eeed; }
.island-game .empty-pairs { margin: 8px 0; font-size: 15px; color: #666; }
.island-game .game-message { margin: 12px 0; }
.island-game .game-actions { margin-top: 10px; }
.island-game .game-actions .merge-button { flex: 1 1 180px; }
.island-game .secondary-actions button { flex: 1 1 auto; }
.island-game [hidden] { display: none !important; }
@media (max-width: 520px) {
    body.island-preview { padding-left: 12px; padding-right: 12px; }
    .island-game.coin-game { padding: 10px; }
    .island-game .game-actions { gap: 8px; }
    .island-game .game-actions button { flex: 1 1 auto; }
    .island-game .game-actions .merge-button { width: auto; }
    .island-game .game-stats dd { font-size: 22px; }
    .island-game .secondary-actions button { padding-inline: 9px; }
}
