/* Riptide (framework version) */
.rt { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
@media (max-width: 1050px) { .rt { grid-template-columns: 1fr; } }
.rt-main { min-width: 0; } .rt-side { display: flex; flex-direction: column; gap: 12px; } .rt-side .card { padding: 12px; }
.rt-mapwrap { border-radius: 14px; overflow: hidden; border: 3px solid #2a6a86; }
#rtMap { display: block; width: 100%; height: auto; }
#rtMap .sea line { stroke: #e9fbff; stroke-width: 2; stroke-dasharray: 7 6; opacity: .75; }
.rt-land { stroke: #3b2414; stroke-width: 1.1; stroke-linejoin: round; transition: filter .2s; }
.rt-land.can { cursor: pointer; stroke: #ffd24a; stroke-width: 2.6; animation: rtland 1.3s ease-in-out infinite; }
@keyframes rtland { 50% { filter: brightness(1.18); } }
.rt-land.sel { stroke: #fff; stroke-width: 3.5; filter: brightness(1.2); animation: none; }
.rt-land.to { stroke: #7CFC00; stroke-width: 3.5; animation: none; }
.rt-land.fought { filter: saturate(1.4) brightness(1.05); }
.rt-pills rect { fill: #fffaf0; fill-opacity: .88; stroke: #3b2414; stroke-width: .8; pointer-events: none; }
.rt-pills text { font: 700 11.5px Arial, system-ui, sans-serif; fill: #2a1605; text-anchor: middle; pointer-events: none; }
.rt-compass circle { fill: none; stroke: #e9fbff; stroke-width: 1.5; } .rt-compass text { font: 700 18px Georgia, serif; fill: #fff; }
.rt-title { font: 900 36px Georgia, serif; fill: #f2c45a; letter-spacing: 4px; } .rt-sub { font: 13px Arial, sans-serif; fill: #9fbac6; letter-spacing: 2px; }
.rt-cn { font: 700 14px Arial, sans-serif; fill: #2a1605; } .rt-cb { font: 900 17px Arial, sans-serif; fill: #2a1605; }
.rt-t circle { stroke: #fff; stroke-width: 2.4; }
.rt-t .tr { font: 900 15px Arial, system-ui, sans-serif; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: 3px; pointer-events: none; }
.rt-t.can { cursor: pointer; } .rt-t.can circle { stroke: #ffd24a; stroke-width: 4; animation: rtglow 1.3s ease-in-out infinite; }
@keyframes rtglow { 50% { stroke-opacity: .35; } }
.rt-t.sel circle { stroke: #fff; stroke-width: 5; animation: none; } .rt-t.to circle { stroke: #7CFC00; stroke-width: 5; animation: none; }
.rt-t.fought .tr { fill: #ffd24a; }
.rt-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 2px; font-size: .85rem; color: var(--muted); }
.rt-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rt-seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
#rtPanel input[type=range] { width: 70%; vertical-align: middle; }
.rt-dice { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rt-dice i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; font: 900 16px system-ui; font-style: normal; margin-right: 3px; }
.rt-dice .a i { background: #e63946; color: #fff; } .rt-dice .d i { background: #f3ead2; color: #1d1a17; }
.rt-dice small { flex-basis: 100%; color: var(--muted); }
.rt-pl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 4px 6px; border-radius: 8px; }
.rt-pl .sw { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; line-height: 0; }
.rt-pl.cur { background: rgba(255,210,74,.15); } .rt-pl.out { opacity: .45; }
.rt-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-card { width: 70px; height: 92px; border-radius: 10px; border: 3px solid #8a6d3b; background: #f3ead2; color: #1d1a17; font-size: 1.8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 2px; }
.rt-card small { font-size: .6rem; line-height: 1.1; } .rt-card.sel { border-color: #ffd24a; transform: translateY(-4px); box-shadow: 0 0 10px #ffd24a; }
.rt .endbox { margin-top: 12px; }
/* phones: keep the map readable and let it scroll sideways */
@media (max-width: 700px) { .rt-mapwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } #rtMap { width: 1100px; max-width: none; } }
