/* Red Tide (framework version) */
.rd { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
@media (max-width: 1050px) { .rd { grid-template-columns: 1fr; } }
.rd-main { min-width: 0; } .rd-side { display: flex; flex-direction: column; gap: 12px; } .rd-side .card { padding: 12px; }
.rd-status { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; font-size: .88rem; }
.rd-status > span { background: #0a2633; border-radius: 999px; padding: 4px 12px; border: 2px solid #2a6a86; }
.rd-status .ob.bad { border-color: #d8443a; color: #ffb3a8; }
.rd-status .th { border-color: var(--tc); } .rd-status .th small { color: var(--muted); margin-left: 6px; } .rd-status .th.done { background: #12384b; }
.rd-mapwrap { border-radius: 14px; overflow: hidden; border: 3px solid #2a6a86; }
#rdMap { display: block; width: 100%; height: auto; }
.rd-mapwrap { border-color: #1f5e7a; background: #061826; }
#rdMap .links line { stroke: #e9fbff; stroke-width: 2.2; opacity: .85; }
#rdMap text { font-family: Arial, system-ui, sans-serif; }
.rd-title { font-weight: 900; font-size: 84px; fill: #ff6b5e; stroke: #061826; stroke-width: 6px; paint-order: stroke; letter-spacing: 6px; }
.rd-tag { font-size: 20px; fill: #9fe3ff; letter-spacing: 3px; }
.rd-box { font-weight: 900; font-size: 20px; fill: #e9fbff; text-anchor: middle; } .rd-boxn { font-weight: 700; font-size: 16px; fill: #bff7cb; text-anchor: middle; }
.rd-rate { fill: #123d33; stroke: #7dff9a; stroke-width: 2; } .rd-rate.on { fill: #7dff9a; filter: url(#rdGlow); }
.rd-raten { font-weight: 900; font-size: 18px; fill: #bff7cb; text-anchor: middle; } .rd-ratel { font-weight: 700; font-size: 17px; fill: #7dff9a; letter-spacing: 3px; text-anchor: middle; }
.rd-obl { font-weight: 900; font-size: 22px; fill: #d7a6ff; letter-spacing: 2px; }
.rd-ob rect { fill: #0b2740; stroke: #e9fbff; stroke-width: 2; } .rd-ob line { stroke: #e9fbff; stroke-width: 1.4; stroke-dasharray: 4 4; opacity: .6; }
.rd-ob text { font-weight: 900; font-size: 18px; fill: #fff; text-anchor: middle; }
.rd-ob.hot rect { stroke: #ff6b6b; } .rd-ob.hot line { stroke: #ff6b6b; } .rd-ob.hot text { fill: #ff8a80; }
.rd-ob.on rect { fill: #57c785; stroke: #fff; } .rd-ob.on.hot rect { fill: #d8443a; } .rd-ob.on text { fill: #062b14; }
.rd-curel { font-weight: 700; font-size: 16px; fill: #d7a6ff; letter-spacing: 2px; text-anchor: middle; }
.rd-cure rect { stroke: #e9fbff; stroke-width: 1.6; } .rd-cure text { font-weight: 900; font-size: 18px; fill: #fff; text-anchor: middle; }
.rd-turnbox { fill: #0b2740; stroke: #e9fbff; stroke-width: 1.6; } .rd-turnh { font-weight: 900; font-size: 16px; fill: #9fe3ff; } .rd-turnt { font-size: 15px; fill: #e9fbff; }
.rd-s .hit { fill: transparent; }
.rd-s .node { stroke: #fff; stroke-width: 2; }
.rd-s .nm { font-weight: 700; font-size: 13px; fill: #fff; stroke: #06223a; stroke-width: 3.5px; paint-order: stroke; letter-spacing: .5px; }
.rd-s.can { cursor: pointer; } .rd-s.can:hover .node { stroke: #ffd24a; stroke-width: 4; }
.rd-s.here .node { stroke: #ffd24a; stroke-width: 4; } .rd-s.sel .node { stroke: #7CFC00; stroke-width: 5; }
.rd-s.sel .nm { fill: #fff36a; }
.rd-s.hot .node { animation: rdhot 1s ease-in-out infinite; } @keyframes rdhot { 50% { stroke: #ff4d4d; stroke-width: 6; } }
#rdThings { pointer-events: none; } #rdThings .cube { stroke: #fff; stroke-width: 1.2; } #rdThings .diver circle { stroke: #fff; stroke-width: 2; }
.rd-go { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; padding: 8px; background: #12384b; border-radius: 10px; }
.rd-acts { display: flex; flex-direction: column; gap: 6px; } .rd-share { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; } .rd-share .btn { margin: 2px; }
.rd-pl { padding: 6px; border-radius: 8px; margin-bottom: 4px; } .rd-pl.cur { background: rgba(255,210,74,.12); }
.rd-pl .sw { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; line-height: 0; vertical-align: middle; margin-right: 4px; }
.rd-hand { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rd-c { font-size: .72rem; padding: 2px 7px; border-radius: 6px; background: #f3ead2; color: #1d1a17; border-left: 5px solid var(--tc); }
.rd-c[data-rd] { cursor: pointer; } .rd-c[data-rd]:hover { outline: 2px solid #ffd24a; }
.rd .endbox { margin-top: 12px; }
/* phones: keep the map readable and let it scroll sideways */
@media (max-width: 700px) { .rd-mapwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } #rdMap { width: 1100px; max-width: none; } }
