.davy-objective .mission-details { grid-column: 1 / -1; }
.davy-progress { display: grid; gap: .45rem; margin-block: .9rem; }
.davy-progress p { margin: 0; }
.davy-dialog { box-sizing: border-box; width: min(58rem, calc(100vw - 1.5rem)); max-width: none; max-height: 90dvh; overflow: auto; }
.davy-dialog header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.davy-dialog header h2 { margin: 0; }
.davy-trials, .davy-journal { display: grid; gap: .8rem; }
.davy-trials { grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); }
.davy-journal { grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); margin-block-start: 1rem; }
.davy-trial, .davy-journal section { border: 1px solid #a87b4866; border-radius: .7rem; overflow: hidden; background: #9567411a; }
.davy-trial img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center 32%; }
.davy-trial > div, .davy-journal section { padding: .8rem; }
.davy-trial h3, .davy-journal h3 { margin: 0; }
.davy-match-row { padding-block: .22rem; }
.davy-match-row button { white-space: nowrap; }
.davy-match-row .davy-abandon { color: #ffc0ad; }
.davy-trial .mission-status { margin-block: .65rem; }
.donut-setup {
  --deck-ink: #e9f2ee;
  --deck-muted: #a7c7ca;
  --deck-line: #456773;
  color: var(--deck-ink);
}
.donut-setup :is(button,input,select):focus-visible {
  outline: 2px solid #ffdc97;
  outline-offset: 3px;
}
.donut-setup-heading, .donut-picker-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  margin-bottom: 1.15rem;
}
.donut-setup-heading h3 {
  color: #fff0cb;
  font: 700 clamp(1.7rem, 3.8vw, 2.8rem)/1.08 Georgia, serif;
  margin: 0;
}
.donut-setup-heading p {
  color: #a5e0d0;
  margin: 0 0 .4rem;
  font-size: .88rem;
}
.donut-setup .ghost { color: #d3e8e7; }
.donut-setup-slots {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  align-items: start;
  gap: .75rem;
}
.donut-slot { min-width: 0; align-self: stretch; }
.donut-slot h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .32rem;
  font: 700 .88rem/1.26 system-ui,sans-serif;
  color: #d3ede6;
  margin: 0 0 .45rem;
  min-height: 1.8rem;
}
.donut-slot h4 svg { color: #8ed3c3; width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.donut-slot h4 small { font: 600 .68rem system-ui,sans-serif; color: var(--deck-muted); }
.donut-slot-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  padding: 0 0 .45rem;
  border: 1px solid var(--deck-line);
  border-radius: .65rem;
  background: #10303b;
  color: var(--deck-ink);
  text-align: left;
  cursor: pointer;
}
.donut-slot > .donut-slot-card { min-height: 0; }
.donut-slot-card:hover { border-color: #b1e6d5; }
.donut-slot-card[aria-expanded="true"], .donut-slot-card[aria-pressed="true"] {
  border-color: #ffe09f;
  box-shadow: 0 0 0 1px #ffe09f;
}
.donut-card-face {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-bottom: 2px solid var(--donut-rarity,#4c7380);
  background: radial-gradient(ellipse at 50% 27%, #255560, #153642 60%, #102630);
}
.donut-card-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.donut-card-empty { display: grid; place-items: center; }
.donut-card-empty::before {
  content: "";
  position: absolute;
  inset: .5rem;
  border: 1px dashed #7ab8b994;
  border-radius: .4rem;
}
.donut-card-empty svg { width: 30%; height: 30%; color: #91c8c0; }
.donut-slot-pending .donut-card-empty { background: radial-gradient(ellipse at 50% 27%, #374757, #172b37 70%); }
.donut-slot-pending .donut-card-empty svg { color: #9eacba; }
.donut-card-booster {
  position: absolute;
  inset: auto auto .38rem .38rem;
  max-width: calc(100% - .76rem);
  border: 1px solid #b2d8d0;
  border-radius: .26rem;
  background: #0c202aee;
  color: #eef9eb;
  padding: .18rem .3rem;
  font: 650 .71rem system-ui,sans-serif;
}
.donut-card-name { padding: .42rem .5rem 0; font: 700 .88rem/1.2 system-ui,sans-serif; }
.donut-card-rarity { padding: .18rem .5rem 0; color: #b8d7d2; font-size: .73rem; }
.donut-vessel-stats {
  margin-top: .55rem;
  border: 1px solid var(--deck-line);
  border-radius: .5rem;
  background: #102731;
  padding: .48rem .55rem;
}
.donut-vessel-stats h4 { font: 700 .84rem/1.2 system-ui,sans-serif; color: #e7f2eb; margin: 0 0 .35rem; min-height: 0; }
.donut-vessel-stats dl { margin: 0; }
.donut-vessel-stats dl > div { display: flex; justify-content: space-between; align-items: center; gap: .25rem; font-size: .75rem; }
.donut-vessel-stats dd { display: flex; align-items: center; gap: .2rem; margin: 0; white-space: nowrap; }
.donut-vessel-stats meter { width: clamp(20px,3vw,48px); height: .58rem; }
.donut-vessel-stats meter::-webkit-meter-optimum-value { background: #86d6bc; }
.donut-vessel-stats p, .donut-vessel-stats small { color: var(--deck-muted); font: .75rem/1.3 system-ui,sans-serif; margin: .2rem 0 0; }
.donut-picker {
  margin-top: 1rem;
  padding: .85rem;
  border: 1px solid #63939b;
  border-radius: .8rem;
  background: #102c37;
  scroll-margin: .7rem;
}
.donut-picker[hidden], .donut-picker-details[hidden] { display: none; }
.donut-picker-heading { align-items: center; margin-bottom: .45rem; }
.donut-picker-heading h4 { margin: 0; color: #ffe6af; }
.donut-picker-filters {
  display: grid;
  grid-template-columns: minmax(0,2fr) repeat(2,minmax(0,1fr));
  gap: .55rem;
  margin-bottom: .75rem;
}
.donut-picker-filters label { display: grid; gap: .25rem; min-width: 0; font-size: .83rem; color: #c3dedf; }
.donut-picker-filters :is(input,select) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: .45rem .55rem;
  border: 1px solid #537985;
  border-radius: .35rem;
  background: #10232d;
  color: #e6f4f2;
  font-size: .95rem;
}
.donut-picker-filters input::placeholder { color: #abc5c7; }
.donut-picker-body { display: flex; gap: .75rem; align-items: start; }
.donut-picker-cards { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,8.6rem),1fr)); gap: .55rem; }
.donut-picker-empty { grid-column: 1/-1; margin: .2rem 0; color: #c2d7d8; }
.donut-picker-details { width: min(33%, 16rem); padding: .55rem; border: 1px solid var(--deck-line); border-radius: .55rem; }
.donut-picker-details h5 { margin: .15rem 0 .45rem; color: #ffe7b0; font-size: 1rem; }
.donut-picker-details p { color: #c5dbd9; margin: .35rem 0; font-size: .85rem; }
.donut-picker-details button { margin-top: .38rem; min-height: 44px; }
.donut-equipped-tag {
  position: absolute;
  top: .38rem;
  right: .38rem;
  color: #102b31;
  background: #b3e9d1;
  border-radius: .24rem;
  padding: .15rem .3rem;
  font: 700 .69rem system-ui,sans-serif;
}
.donut-setup-info { color: var(--deck-muted); font-size: .84rem; margin: .8rem 0 .5rem; }
.donut-setup-info summary { width: fit-content; padding: .3rem 0; cursor: pointer; color: #c7e6df; }
.donut-setup-info p { margin: .3rem 0; max-width: 68ch; }
.donut-setup-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  border-top: 1px solid #52717d;
  padding-block: .6rem;
  background: #102630;
}
.donut-setup-launch p, .donut-setup-error { font-size: .83rem; margin: 0; color: #d2e5e3; }
.donut-setup-error { color: #ffd393; margin-bottom: .8rem; }
.donut-setup-launch .primary { flex-shrink: 0; min-height: 44px; }
.donut-setup-launch .primary:disabled { opacity: .58; }
@media (max-width: 900px) {
  .donut-setup-slots { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .donut-setup-slots { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .donut-setup-heading { margin-bottom: .75rem; }
  .donut-setup-heading .ghost { padding: .36rem .5rem; }
  .donut-card-name { font-size: .9rem; }
  .donut-picker { padding: .55rem; }
  .donut-picker-body { display: grid; grid-template-columns: minmax(0,1fr); }
  .donut-picker-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .donut-picker-details { width: 100%; }
  .donut-picker-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .donut-picker-filters label:first-child { grid-column: 1/-1; }
  .donut-setup-launch { position: sticky; bottom: 0; z-index: 4; }
}

.davy-dialog { background:#10232b; color:#f5ead4; border:1px solid #ac8652; border-radius:.9rem; }

body.donut-page-open { overflow: hidden; }
body.donut-page-open > :not(.donut-page) { display:none !important; }
.donut-page {
  position:fixed; inset:0; z-index:20; width:100%; max-width:none; height:100dvh; margin:0;
  box-sizing:border-box; overflow:auto; overscroll-behavior:contain;
  padding:clamp(.85rem,3vw,2rem); color:#f5ead4;
  background:radial-gradient(ellipse at 63% 6%,#174353,#0b1c28 53%,#091720);
}
.donut-page .davy-surface { width:min(100%,76rem); margin:auto; }
.donut-page header, .donut-heading, .donut-heading-actions {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.3rem .6rem;
}
.donut-page header { padding:0 0 .75rem; margin-bottom:.9rem; }
.donut-page header h2 { margin:0; }
.donut-page .ghost { color:#bfd5d8; }
.donut-heading { margin-bottom:.75rem; }
.donut-heading h3 { margin:.12rem 0; color:#fff0cb; font:700 clamp(1.7rem,3.8vw,2.8rem)/1 Georgia,serif; }
.donut-heading p { margin:.42rem 0 0; color:#afd0d2; font-size:.82rem; }
.donut-boats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; margin:.55rem 0; }
.donut-own { --team:#8de7cd; }
.donut-rival { --team:#ffc784; }
.donut-hud { min-width:0; padding:.46rem .65rem; border:1px solid #4d8490; border-radius:.65rem; background:#102a36; }
.donut-hud.donut-rival { border-color:#9c785a; }
.donut-hud-top, .donut-gauges label { display:flex; align-items:center; gap:.3rem; justify-content:space-between; }
.donut-hud-top strong { font-size:.75rem; color:#ffe3a3; white-space:nowrap; }
.donut-camera { appearance:none; padding:.25rem .1rem; min-height:32px; border:0; background:transparent; color:#f7f3e5; cursor:pointer; }
.donut-camera:hover b { color:var(--team); text-decoration:underline; }
.donut-team-flag { border-radius:.25rem; padding:.25rem .32rem; background:var(--team); color:#102532; font:800 .66rem/1 system-ui,sans-serif; text-transform:uppercase; }
.donut-rival .donut-team-flag { border-radius:.15rem .65rem .65rem .15rem; }
.donut-hud progress { display:block; appearance:none; width:100%; height:.32rem; margin:.25rem 0 .45rem; color:var(--team); }
.donut-hud progress::-webkit-progress-bar { background:#28444d; border-radius:1rem; }
.donut-hud progress::-webkit-progress-value { background:var(--team); border-radius:1rem; }
.donut-hud progress::-moz-progress-bar { background:var(--team); }
.donut-gauges { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.2rem .75rem; }
.donut-gauges label { font-size:.72rem; color:#c9dedc; }
.donut-gauges meter { min-width:0; flex:1; height:.65rem; }
.donut-gauges meter::-webkit-meter-bar { background:#28444d; border:0; }
.donut-gauges meter::-webkit-meter-optimum-value { background:#81d1a4; }
.donut-gauges label:last-child meter::-webkit-meter-optimum-value { background:#7ebed8; }
.donut-hud p { margin:.26rem 0 0; color:#f4dbab; font-size:.7rem; }
.donut-sea { position:relative; container-type:inline-size; }
.donut-board-scroll {
  overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; border:1px solid #4a8391;
  border-radius:.85rem; scrollbar-color:#5da8ab #102632; background:#123952;
}
.donut-board {
  --cell:clamp(62px,11.05cqw,150px);
  --lane-height:clamp(76px,8.6cqw,112px);
  --ripple:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 395 184'%3E%3Cg fill='none' stroke='%23a5eadf' stroke-linecap='round'%3E%3Cpath opacity='.34' stroke-width='2' d='M4 23q30 10 54 3t53-4m71 11q33 12 74 1m53-15q34 4 63-4M23 95q27-11 60-2m50 21q36 8 68-4m41-40q23 5 54-3m18 48q28 12 60 2M0 158q43 12 83 2m46 4q21-2 40-9m61 16q38 8 76-5m26-16q32 5 58-3'/%3E%3Cpath opacity='.17' stroke-width='4' d='M8 45q49-10 91 0m47 38q42 9 74-1m30 30q24 6 50-1M78 144q27 3 55-4m130-99q39-15 86-4'/%3E%3C/g%3E%3C/svg%3E");
  display:grid; position:relative; isolation:isolate; width:max-content;
  grid-template-columns:repeat(var(--segments),var(--cell));
  background:linear-gradient(180deg,#091f3d9c,transparent 28%,#7ef4e82b 52%,transparent 77%,#072138b3),
    radial-gradient(ellipse at 50% 66%,#4aa6a47d 5%,transparent 66%) 0 0/730px 100%,
    linear-gradient(90deg,#164869,#197477 45%,#164869) 0 0/875px 100%;
}
.donut-board::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:var(--ripple) 0 0/395px 184px; animation:donut-water 11s ease-in-out infinite alternate;
}
@keyframes donut-water { to { background-position:26px 8px; opacity:.72; } }
.donut-column { display:grid; grid-template-rows:repeat(3,var(--lane-height)); min-width:0; }
.donut-cell { display:grid; place-items:center; position:relative; min-width:0; box-sizing:border-box; }
.donut-cell:nth-child(2) { border-block:1px dashed #bbffed36; }
.donut-cell::after { content:""; position:absolute; right:0; width:2px; height:.6rem; border-radius:50%; background:#b6e4dc6d; transform:rotate(12deg); }
.donut-obstacle { display:grid; place-items:center; width:100%; }
.donut-feature { width:min(85%,5rem); max-height:85%; }
.donut-vortex { transform-origin:50% 50%; animation:donut-vortex 8s linear infinite; }
@keyframes donut-vortex { to { transform:rotate(360deg); } }
.donut-fog, .donut-revealed::before {
  position:absolute; background:radial-gradient(ellipse at 65% 30%,#253e5f 10%,#142a48ad 50%,transparent 72%) 0 0/500px 100%,
    radial-gradient(ellipse at 30% 71%,#4a6179c2,#172c49d9 48%,transparent 81%) 0 0/335px 115%,
    linear-gradient(165deg,#172e4cef,#263b57f5 50%,#13263ff5);
  pointer-events:none;
}
.donut-fog {
  z-index:3; inset-block:0; left:calc(var(--start)*var(--cell)); width:calc(var(--span)*var(--cell));
  mask-image:linear-gradient(90deg,transparent,#000 26px,#000 calc(100% - 20px),transparent);
  animation:donut-fog-drift 12s ease-in-out infinite alternate;
}
.donut-cell.donut-revealed::before { content:""; inset:0; opacity:0; z-index:3; animation:donut-dissipate .55s ease-out; }
@keyframes donut-fog-drift { to { background-position:24px 0,-24px 0,0 0; } }
@keyframes donut-dissipate { from { opacity:1; } }
.donut-freezing .donut-feature { animation:donut-freeze .42s ease-out; }
.donut-thaw { position:absolute; inset:0; opacity:0; display:grid; place-items:center; animation:donut-thaw .4s ease-out; }
@keyframes donut-freeze { from { opacity:0; transform:scale(.55); } }
@keyframes donut-thaw { from { opacity:1; } }
.donut-arrival {
  position:absolute; z-index:4; inset-block:0; left:calc((var(--finish) + .5)*var(--cell));
  display:flex; align-items:center; flex-direction:column; justify-content:space-evenly;
  border-left:2px dashed #ffe1a96b; color:#ffe5ad; pointer-events:none;
}
.donut-arrival b { position:absolute; top:.4rem; left:0; transform:translateX(-50%); background:#533d38; border:1px solid #ffc680; border-radius:.25rem; padding:.21rem .3rem; font:700 .65rem system-ui,sans-serif; }
.donut-arrival i { margin-left:-2px; width:.7rem; height:1rem; border-radius:50% 50% 35% 35%; background:linear-gradient(#ffe1a9 30%,#bb6748 32% 57%,#fbdea2 60% 75%,#9d573c 75%); }
.donut-boat-position {
  pointer-events:none; position:absolute; z-index:6; display:grid; place-items:center;
  left:calc(var(--segment)*var(--cell)); top:calc(var(--lane)*var(--lane-height));
  width:var(--cell); height:var(--lane-height);
}
.donut-overlap.donut-own { transform:translateY(12px); }
.donut-overlap.donut-rival { transform:translateY(-12px); }
.donut-boat { position:relative; display:grid; place-items:center; width:min(94%,7.4rem); aspect-ratio:1.4; }
.donut-boat::before { content:""; position:absolute; inset:39% 4% 5%; border:1px solid var(--team); border-radius:50%; background:#102e459c; }
.donut-rival .donut-boat::before { border-style:dashed; }
.donut-vessel { width:100%; position:relative; filter:drop-shadow(0 3px 1.5px #061625a0); animation:donut-bob 3s ease-in-out infinite alternate; }
.donut-disabled .donut-vessel { filter:grayscale(.85); transform:rotate(-9deg); animation:none; }
.donut-boat .donut-team-flag { position:absolute; left:50%; bottom:-.1rem; transform:translateX(-50%); }
.donut-wake { position:absolute; right:60%; bottom:11%; width:58%; height:22%; border-block:2px solid #befff2a1; border-radius:65%; transform-origin:right; opacity:.42; }
.donut-fast .donut-wake { animation:donut-wake .48s ease-out; }
.donut-hit .donut-vessel { animation:donut-impact .35s ease-out; }
.donut-hp-change {
  position:absolute; left:50%; top:1%; transform:translateX(-50%); white-space:nowrap;
  font:750 .72rem system-ui,sans-serif; color:#ffe3b5; background:#462e34; border-radius:.24rem; padding:.18rem .3rem;
  animation:donut-points 1.1s ease-out both;
}
.donut-repair .donut-hp-change { color:#d3ffd9; background:#1d443b; }
.donut-hit::after, .donut-repair::after { content:""; position:absolute; inset:17% 0; border:2px dotted #e8fff3; border-radius:50%; background:radial-gradient(ellipse,#d1ffeca3,transparent 70%); animation:donut-splash .48s ease-out both; }
.donut-repair::after { border:2px solid #9af4c2; }
@keyframes donut-bob { to { transform:translateY(-2px) rotate(1deg); } }
@keyframes donut-wake { from { opacity:1; transform:scaleX(2.6); } }
@keyframes donut-impact { 35% { transform:translateX(-5px) rotate(-8deg); } 75% { transform:translateX(2px) rotate(4deg); } }
@keyframes donut-points { 70% { opacity:1; } to { opacity:0; transform:translate(-50%,-.8rem); } }
@keyframes donut-splash { from { opacity:1; transform:scale(.65); } to { opacity:0; transform:scale(1.35); } }
.donut-help { position:absolute; z-index:9; top:.45rem; right:.5rem; }
.donut-help summary {
  display:grid; place-items:center; width:2.6rem; height:2.6rem; margin-left:auto; border:1px solid #b2d8d1;
  border-radius:50%; background:#122e3c; color:#f2f1d8; font-weight:750; cursor:pointer; list-style:none;
}
.donut-help summary::-webkit-details-marker { display:none; }
.donut-help-panel { width:min(20rem,calc(100cqw - 1rem)); max-height:min(20rem,50dvh); overflow:auto; margin-top:.3rem; border:1px solid #6f9fa2; border-radius:.7rem; padding:.65rem .8rem; background:#102835; }
.donut-help-panel h4,.donut-help-panel dl { margin:0; }
.donut-help-panel dl > div { display:grid; grid-template-columns:2.6rem 1fr; gap:.55rem; align-items:center; margin-top:.42rem; }
.donut-help-panel dt { font-weight:750; font-size:.8rem; }
.donut-help-panel dd,.donut-help-panel p { margin:0; color:#bad1d3; font-size:.74rem; }
.donut-help-panel p { margin-top:.4rem; }
.donut-course-line { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:5; }
.donut-course-line polyline { stroke:#ffe9ab; stroke-width:3; stroke-linejoin:round; stroke-linecap:round; }
.donut-touch-cell { position:absolute; z-index:7; inset:0; padding:0; background:transparent; border:0; cursor:pointer; }
.donut-touch-cell[hidden] { display:none; }
.donut-tracing .donut-touch-cell { touch-action:none; cursor:crosshair; }
.donut-cell:is(.donut-reachable,.donut-origin,.donut-planned,.donut-destination) { z-index:4; }
.donut-cell:is(.donut-reachable,.donut-origin,.donut-planned,.donut-destination)::before {
  content:""; position:absolute; inset:14% 6%; border:1px dashed #b6fbe3;
  border-radius:45%; background:#8efdd42c; pointer-events:none;
}
.donut-cell.donut-origin::before { border:2px dotted #e7edd4; }
.donut-cell.donut-planned::before { border:2px solid #fbe0a4; background:#ffe4a430; }
.donut-cell.donut-destination::before { border:3px double #ffe5a0; }
.donut-race :is(button,summary,[tabindex]):focus-visible { outline:2px solid #ffe4a2; outline-offset:2px; }
.donut-touch-cell:focus-visible { outline-offset:-4px !important; border-radius:.5rem; }

.donut-controls { margin-top:.65rem; }
.donut-control-nav { display:none; }
.donut-command-groups { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1.15fr) minmax(0,.8fr); gap:.65rem; }
.donut-command-group { min-width:0; padding:.52rem; border:1px solid #41616a; border-radius:.72rem; background:#102731; }
.donut-command-group h4 { margin:0 0 .4rem; color:#b7dbdd; font:700 .88rem system-ui,sans-serif; }
.donut-command-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; }
.donut-command-grid p { grid-column:1/-1; margin:.3rem; color:#b0c9cd; font-size:.83rem; }
[data-donut-group="ability"] .donut-command-grid { grid-template-columns:minmax(0,1fr); }
.donut-command,.donut-end {
  display:flex; align-items:center; gap:.45rem; min-height:3.05rem; padding:.35rem .45rem;
  border:1px solid #4d7782; border-radius:.48rem; background:#173b46; color:#f4f3e5; text-align:left; cursor:pointer;
}
.donut-command svg,.donut-end svg { width:1.15rem; height:1.15rem; flex:0 0 auto; color:#8bdac8; }
.donut-command span { display:grid; min-width:0; gap:.12rem; }
.donut-command strong { font:700 .8rem/1.2 system-ui,sans-serif; }
.donut-command small { font:500 .72rem/1.18 system-ui,sans-serif; color:#c5dcd9; }
.donut-command[aria-disabled="true"] { border-style:dashed; background:#192d36; color:#c0cbd0; }
.donut-command[aria-disabled="true"] svg { color:#a4b2bc; }
.donut-command:hover,.donut-end:hover { border-color:#9cddc9; }
.donut-command[aria-pressed="true"],.donut-end[aria-pressed="true"] { border-color:#ffe2a2; background:#345456; color:#fff3d4; box-shadow:inset 0 0 0 1px #ffe2a2; }
.donut-end { min-height:2.75rem; padding-inline:.75rem; background:#423b35; border-color:#b08a5b; white-space:nowrap; }
.donut-end svg { color:#ffcb89; }
.donut-forfeit { margin-top:.4rem; }
.donut-preview:not([hidden]),.donut-error {
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.55rem;
  padding:.52rem .65rem; margin-top:.55rem; background:#142f3b; border:1px solid #63828b; border-radius:.62rem;
}
.donut-preview strong { color:#faecc7; font-size:.92rem; }
.donut-preview small { color:#c7e4dc; margin-inline-start:.2rem; }
.donut-preview p,.donut-error p { margin:.18rem 0 0; font-size:.82rem; }
.donut-risk,.donut-error p { color:#ffd393; }
.donut-preview-buttons { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem; }
.donut-preview-buttons button { min-height:2.75rem; padding:.4rem .6rem; }
.donut-preview-buttons .primary:disabled { opacity:.48; }
@media(max-width:820px) {
  .donut-command-groups { display:block; }
  .donut-command-group h4 { display:none; }
  .donut-controls:not([data-category="move"]) [data-donut-group="move"],
  .donut-controls:not([data-category="tactic"]) [data-donut-group="tactic"],
  .donut-controls:not([data-category="ability"]) [data-donut-group="ability"] { display:none; }
  .donut-control-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.35rem; margin-bottom:.35rem; }
  .donut-control-nav button { min-height:2.75rem; padding:.3rem .12rem; border:1px solid #4a6f7a; border-radius:.4rem; background:#162f3a; color:#d6e8e7; font:650 .76rem system-ui,sans-serif; }
  .donut-control-nav button[aria-pressed="true"] { border-color:#a3e6cf; background:#245052; color:#e4fcf2; }
  [data-donut-group="ability"] .donut-command-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:590px) {
  .donut-gauges { grid-template-columns:minmax(0,1fr); }
  .donut-hud { padding:.35rem .45rem; }
}
@media(prefers-reduced-motion:reduce) {
  .donut-board::before,.donut-sea * { animation:none !important; scroll-behavior:auto !important; }
}
.davy-history-dialog{max-height:85dvh;overflow:auto;width:min(42rem,calc(100% - 2rem))}
[data-davy-invite]{display:flex;flex-wrap:wrap;gap:.45rem;align-items:end;margin-top:.85rem}
[data-davy-invite-note]{flex-basis:100%}
