/* Война за воды (update/81_WAR.md, webapp/js/screens/war.js): вид «Фронт», живой бой, итоги недели. */
.wr, .wr-stage { --w-fish: #86DCC2; --w-smug: #E8705A; --wl: var(--w-fish); --wr: var(--w-smug); }
.wr.me-smug, .wr-stage.me-smug { --wl: var(--w-smug); --wr: var(--w-fish); }

/* линия фронта: граница сторон и буй на ней */
.wr-front { position: relative; height: 10px; margin: 10px 2px 0; border-radius: 6px; background: var(--wr); }
.wr-front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .24)); }
.wr-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--x); border-radius: 6px 0 0 6px; background: var(--wl); transition: width .7s cubic-bezier(.3, .7, .2, 1); }
.wr-buoy { position: absolute; z-index: 1; left: var(--x); top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: #0E1B1E; border: 1.5px solid var(--accent); box-shadow: 0 3px 10px rgba(0, 0, 0, .55); transition: left .7s cubic-bezier(.3, .7, .2, 1); }
.wr-buoy span { display: grid; animation: wrBob 3.2s ease-in-out infinite; }
.wr-buoy svg { width: 13px; height: 13px; }
.wr-front.big { height: 14px; border-radius: 8px; }
.wr-front.big .wr-fill { border-radius: 8px 0 0 8px; }
.wr-front.big .wr-buoy { width: 36px; height: 36px; margin: -18px 0 0 -18px; border-width: 2px; }
.wr-front.big .wr-buoy svg { width: 21px; height: 21px; }
.wr-front.sm { height: 6px; margin-top: 11px; }
.wr-front.sm .wr-buoy { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.wr-front.sm .wr-buoy svg { width: 10px; height: 10px; }
@keyframes wrBob { 0%, 100% { transform: translateY(-1px) rotate(-7deg); } 50% { transform: translateY(1.5px) rotate(7deg); } }
html.lite .wr-buoy span { animation-iteration-count: 1; }

.wr-legend { display: flex; justify-content: space-between; align-items: baseline; margin-top: 9px; font-size: 14px; font-weight: 700; color: rgba(246, 243, 236, .78); }
.wr-legend b { font-size: 23px; font-weight: 900; }
.wr-legend .l b { color: var(--wl); }
.wr-legend .r b { color: var(--wr); }


.wr-st { top: -84px; }
.wr-st b { font-size: 34px; }
.wr-st span { line-height: 1.05; text-align: center; }

.wr-hero-bar { margin-top: 16px; padding: 12px 14px 10px; border-radius: 18px; background: rgba(8, 18, 20, .72); border: 1px solid rgba(255, 255, 255, .13); }
.wr-why { margin: 12px 2px 12px; font-size: 15px; line-height: 1.36; font-weight: 600; color: rgba(246, 243, 236, .88); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.wr-here { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 16px; font-size: 15.5px; font-weight: 800; color: var(--accent); background: rgba(243, 210, 139, .1); border: 1.5px solid rgba(243, 210, 139, .46); }
.wr-here svg { width: 18px; height: 18px; flex: none; }

/* строки «другие воды» */
.wr-rows { display: flex; flex-direction: column; gap: 8px; }
.wr-row { display: flex; align-items: stretch; gap: 12px; width: 100%; padding: 8px 10px 8px 8px; border-radius: 18px; font: inherit; color: inherit; text-align: left; cursor: pointer; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .13); }
.wr-row-ph { flex: none; width: 76px; border-radius: 12px; background-size: cover; background-position: center; }
.wr-row-tx { flex: 1; min-width: 0; padding: 3px 0 7px; }
.wr-row-tx b { display: block; font-size: 21px; line-height: 1.05; font-weight: 900; }
.wr-row-tx small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.2; font-weight: 600; color: rgba(246, 243, 236, .72); }
.wr-row .tp-chev { align-self: center; }


/* вклад, бой */
.wr-my-top { display: flex; justify-content: space-between; align-items: flex-end; }
.wr-my-top b { display: block; font-size: 38px; line-height: 1; font-weight: 900; color: var(--accent); }
.wr-my-top .r { text-align: right; }
.wr-my-top .r b { font-size: 26px; color: #F6F3EC; }
.wr-my-top small { font-size: 13px; font-weight: 600; color: rgba(246, 243, 236, .68); }
.wr-my .tp-bar { display: block; margin-top: 10px; }
.wr-my-s { display: block; margin-top: 9px; font-size: 13.5px; line-height: 1.3; font-weight: 600; color: rgba(246, 243, 236, .74); }
.wr-battle { position: relative; margin-top: 10px; overflow: hidden; border-radius: 20px; background: #0E1B1E; border: 1.5px solid rgba(243, 210, 139, .4); }
.wr-battle-ph { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
.wr-battle-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 14, .28), rgba(5, 12, 14, .9) 66%); }
.wr-battle-in { position: relative; display: block; padding: 66px 16px 14px; }
.wr-battle-t { display: block; font-size: 38px; line-height: 1; font-weight: 900; }
.wr-battle-in small { display: block; margin-top: 7px; font-size: 14px; line-height: 1.32; font-weight: 600; color: rgba(246, 243, 236, .84); }

/* листы */
.wr-sheet-ph { flex: none; height: 150px; border-radius: 16px; background-size: cover; background-position: center 45%; }
.wr-box { margin-top: 10px; padding: 11px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.32; font-weight: 600; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.wr-box > b { display: block; margin-bottom: 3px; font-weight: 800; color: var(--accent); }
.wr-sr { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.wr-sr b { font-weight: 800; color: var(--accent); white-space: nowrap; }
.sheet-body .wr-hero-bar { background: rgba(255, 255, 255, .05); }
.tp-sheet.wr > * { align-self: stretch; width: auto; box-sizing: border-box; }

/* флаг на карточке места */
.mt.wr-pl { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.mt.wr-pl svg { width: 13px; height: 13px; flex: none; }
.mt.wr-pl.fish { color: #86DCC2; }
.mt.wr-pl.smug { color: #E8705A; }

/* живой бой, кадр 390×844 */
.wr-pic { height: 430px; object-fit: cover; }
.wr-shade { background: linear-gradient(180deg, rgba(3, 7, 7, .82) 0, rgba(3, 7, 7, .35) 22%, rgba(3, 7, 7, .35) 34%, rgba(3, 7, 7, .92) 50%, #030707 56%, #030707 100%); }
.wr-wave { top: 19px; opacity: 0; }
.wr-wave b { font-weight: 900; }
.wr-tbox { position: absolute; left: 16px; right: 16px; top: 74px; z-index: 21; }
.wr-tl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13.5px; font-weight: 700; color: rgba(246, 243, 236, .78); }
.wr-tl b { font-size: 23px; font-weight: 900; }
.wr-tl .l b { color: var(--wl); }
.wr-tl .r b { color: var(--wr); }
.wr-tl i { font-style: normal; font-weight: 900; color: #F6F3EC; }
.wr-score { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; font-weight: 700; color: rgba(246, 243, 236, .78); }
.wr-score b { font-weight: 900; font-size: 17px; color: #F6F3EC; }
.wr-clock { position: absolute; left: 0; right: 0; top: 226px; z-index: 21; display: flex; flex-direction: column; align-items: center; }
.wr-clock b { font-size: 104px; line-height: .9; font-weight: 900; color: #F6F3EC; text-shadow: 0 8px 30px rgba(0, 0, 0, .7); font-variant-numeric: tabular-nums; }
.wr-clock small { margin-top: 2px; font-size: 15px; font-weight: 700; color: rgba(246, 243, 236, .76); }
.wr-prev { position: absolute; left: 18px; right: 18px; top: 378px; z-index: 21; text-align: center; text-wrap: balance; font-size: 15.5px; line-height: 1.3; font-weight: 600; color: rgba(246, 243, 236, .86); }
.wr-prev b { color: var(--accent); font-weight: 800; }
.wr-cmds { position: absolute; left: 12px; right: 12px; top: 462px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; z-index: 30; }
.wr-cmds .dl-c { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; justify-items: start; height: 104px; padding: 10px 14px; }
.wr-cmds .dl-c svg { grid-row: 1 / 3; width: 26px; height: 26px; }
.wr-cmds .dl-c b { font-size: 25px; text-align: left; }
.wr-cmds .dl-c small { grid-column: 2; font-size: 14px; text-align: left; line-height: 1.2; }
.wr-cmds .dl-c em { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-size: 14px; font-weight: 800; white-space: nowrap; color: rgba(246, 243, 236, .84); }
.wr-cmds .dl-c.pick em { color: #1F1A0E; }
.wr-rev { position: absolute; left: 18px; right: 18px; top: 438px; z-index: 22; display: none; }
.wr-rev.on { display: block; }
.wr-rev .cn-ttl { position: static; font-size: 62px; }
.wr-rev-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 20px; }
.wr-rev-cols .c { min-height: 122px; padding: 11px 12px; border-radius: 16px; background: rgba(8, 16, 18, .86); border: 1.5px solid rgba(255, 255, 255, .13); }
.wr-rev-cols .c.mine { border-color: var(--wl); }
.wr-rev-cols .c.them { border-color: var(--wr); }
.wr-rev-cols small { display: block; font-size: 13px; font-weight: 700; color: rgba(246, 243, 236, .68); }
.wr-rev-cols b { display: block; margin-top: 5px; min-height: 44px; font-size: 19px; line-height: 1.1; font-weight: 900; color: #F6F3EC; }
.wr-rev-cols i { display: block; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 700; color: rgba(246, 243, 236, .74); }
.wr-rev-cols .v { font-size: 13px; font-weight: 700; color: rgba(246, 243, 236, .6); }
.wr-rev-why { margin-top: 14px; font-size: 16px; line-height: 1.32; font-weight: 600; color: rgba(246, 243, 236, .9); }
.wr-rev-p { margin-top: 12px; font-size: 15.5px; font-weight: 800; color: var(--accent); }
.wr-end { position: absolute; left: 22px; right: 22px; top: 438px; bottom: 0; z-index: 22; display: none; }
.wr-end.on { display: block; }
.wr-end .cn-ttl { position: static; font-size: 62px; opacity: 0; }
.wr-end .cn-say { margin-top: 10px; font-size: 17px; line-height: 1.34; opacity: 0; }
.wr-end .cn-chips { margin-top: 12px; }
.wr-end .cn-acts { left: 0; right: 0; top: auto; bottom: 36px; }

/* итоги недели */
.wr-res { position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 0%, #13353A 0%, #071214 62%, #030707 100%); }
.wr-res-t { top: 58px; font-size: 84px; }
.wr-res-s { position: absolute; left: 20px; right: 20px; top: 138px; font-size: 18px; font-weight: 700; color: rgba(246, 243, 236, .84); opacity: 0; }
.wr-res-l { position: absolute; left: 14px; right: 14px; top: 182px; display: flex; flex-direction: column; gap: 8px; }
.wr-res-r { display: flex; align-items: center; gap: 12px; height: 88px; padding: 6px 12px 6px 6px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .13); opacity: 0; }
.wr-res-r .ph { flex: none; width: 104px; height: 74px; border-radius: 13px; background-size: cover; background-position: center; }
.wr-res-r b { display: block; font-size: 23px; line-height: 1.05; font-weight: 900; }
.wr-res-r small { display: block; margin-top: 3px; font-size: 15px; font-weight: 800; color: rgba(246, 243, 236, .72); }
.wr-res-r.got { border-color: var(--wl); } .wr-res-r.got small { color: var(--wl); }
.wr-res-r.keep small { color: var(--wl); }
.wr-res-r.lost { border-color: var(--wr); } .wr-res-r.lost small { color: var(--wr); }
.wr-res-g { position: absolute; left: 20px; right: 20px; top: 582px; opacity: 0; }
.wr-res-g > b { display: block; font-size: 30px; line-height: 1; font-weight: 900; color: var(--accent); }
.wr-res-g .cn-chips { margin-top: 12px; flex-wrap: wrap; }
.wr-res .cn-acts { top: 744px; }

.wr-bar-k { margin-bottom: 4px; font-size: 13.5px; font-weight: 800; color: rgba(246, 243, 236, .74); }
.wr-prev small { display: block; margin-bottom: 4px; font-size: 14px; line-height: 1.26; font-weight: 700; color: rgba(246, 243, 236, .72); }

/* настоящая страница: подсказка под кнопкой, последние дела, мало людей в бою, бой идёт */
.wr-hint { margin: 8px 4px 0; font-size: 13.5px; line-height: 1.3; font-weight: 600; color: rgba(246, 243, 236, .7); text-align: center; }
.wr-recent { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.wr-recent .wr-sr span { font-weight: 700; }
.wr-recent .wr-sr small { font-weight: 600; color: rgba(246, 243, 236, .6); }
.wr-few { margin-top: 10px; font-size: 13px; line-height: 1.25; font-weight: 700; color: rgba(246, 243, 236, .72); text-align: center; }
.wr-battle.live { box-shadow: 0 0 0 1.5px var(--accent), 0 10px 30px rgba(243, 210, 139, .18); }
.wr-res-r.them small { color: var(--wr); }
.wr-res-r.none small { color: rgba(246, 243, 236, .6); }
