#tutorial-link,#setup-tutorial {text-decoration:none}
.setup-tutorial {
  width:max-content;margin:0 0 12px;padding-inline:10px;
  border-color:#8a7456;background:#32291d;color:#ffe4b4;
}
.setup-tutorial:hover {border-color:#d9b983;background:#443727}
#tutorial-link {color:#f3d9a2}

.field[data-tutorial] :is(.brand,#board-hint,#event-note,#tutorial-link,#view,#zoom,#commander-close) {display:none}
.field[data-tutorial] #commander-info {width:clamp(170px,24vw,242px)}
.field[data-tutorial] #commander-bubble {
  padding:9px 10px;
  border-color:#a38a63;
  background:linear-gradient(135deg,#202936,#101720f8 75%);
}
.field[data-tutorial] #commander-name {
  display:grid;align-items:center;min-height:24px;padding-inline-end:34px;
  margin-bottom:4px;color:#f3dab0;font-size:16px;
}
#tutorial-mute {
  position:absolute;top:0;right:0;display:grid;place-items:center;min-width:44px;width:44px;
  min-height:44px;height:44px;padding:0;color:#f4dfbc;background:none;border:0;box-shadow:none;
}
#tutorial-mute [data-icon] {
  width:25px;height:25px;border:1px solid #c4a57478;border-radius:50%;background:#222939;
}
#tutorial-mute [data-icon] svg {width:15px;height:15px}
#tutorial-mute[aria-pressed="true"] {color:#ffe3a4}
#tutorial-mute[aria-pressed="true"] [data-icon] {border-color:#e1b66f;background:#443425}
#tutorial-mute:hover [data-icon] {background:#4b3e32;border-color:#e3c28d}
#tutorial-mute:focus-visible {outline:none}
#tutorial-mute:focus-visible [data-icon] {outline:2px solid #f3d399;outline-offset:2px}
.field[data-tutorial] #commander-line {font-size:13px;line-height:1.32}
#tutorial-mechanic {color:#f6e6cc;font-size:13px;line-height:1.35;font-weight:620}
#tutorial-mechanic:not([hidden]) + #commander-line {
  margin-top:6px;padding-top:5px;border-top:1px solid #bd9a684f;color:#d3dfec;
}
#tutorial-retry {margin-top:8px;border-color:#846944;color:#ffdfae}
#tutorial-retry svg {width:15px;height:15px}

.field[data-tutorial-overview] {--overview-width:clamp(158px,31vw,252px)}
.field[data-tutorial-overview] #board-viewport {
  left:calc(var(--overview-width) + var(--hud-left) * 2);
}
.field[data-tutorial-overview] #commander {
  top:50%;bottom:auto;width:var(--overview-width);transform:translateY(-50%);
}
.field[data-tutorial][data-tutorial-overview] #commander-info {position:relative;bottom:auto;width:100%}
.field[data-tutorial][data-tutorial-overview] #commander-bubble {
  max-height:calc(100dvh - var(--hud-top) - var(--hud-bottom));overflow-y:auto;
}
.field[data-tutorial-overview] :is(#player,#commander > .avatar-anchor),
.field[data-tutorial-overview] #commander-bubble::after {display:none}
#tutorial-goal {font-weight:750;color:#ffe8c1}
#tutorial-scoring-list {
  display:grid;gap:7px;list-style:none;margin:9px 0 12px;padding:0;color:#e7e2d6;
  font-size:clamp(11px,1.4vw,14px);line-height:1.28;
}
#tutorial-scoring-list li {display:grid;grid-template-columns:32px minmax(0,1fr);gap:7px;align-items:center}
#tutorial-scoring-list strong {
  padding:2px 3px;border:1px solid #b68b54;border-radius:4px;
  background:#47351f;color:#fae0ad;text-align:center;font-variant-numeric:tabular-nums;
}
#tutorial-finish {min-height:44px;justify-content:center}

#tutorial-arrow {
  position:absolute;z-index:2;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;
  fill:none;stroke:#ffe5ab;stroke-width:2.35px;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 1px 1px #050910) drop-shadow(0 0 2px #f9bc61b3);
}
#tutorial-arrow circle {stroke-width:1.55px}

.training-complete {
  width:min(410px,calc(100vw - 28px));text-align:center;
  border-color:#9b7a4e;background:radial-gradient(ellipse at top,#3b3025,#1a202b 48%,#0b121c 94%);
}
.training-complete h2 {font-size:clamp(29px,6vw,43px);margin:13px 0 7px;color:#ffe5b2}
.training-complete p {margin:0 auto;color:#e2d7c6}
.training-crest {
  display:grid;place-items:center;margin:0 auto;width:46px;height:46px;color:#f3cd8d;
  border:1px solid #c8a166;border-radius:50%;background:radial-gradient(circle,#dca95322,transparent 80%);
}
.training-crest svg {width:25px;height:25px}
.training-complete .dialog-actions {justify-content:center;gap:9px;margin-top:20px}
.training-complete .dialog-actions :is(.utility,.end-button) {min-height:44px;min-width:116px}
.training-complete .dialog-actions .utility {border-color:#856741;gap:8px;color:#f5d8a6}
.tutorial-welcome .dialog-actions .end-button {min-width:153px}
.lesson-complete .eyebrow {
  margin-top:14px;font-size:11px;font-weight:750;color:#dbc399;
}
.lesson-complete h2 {margin:5px 0 0}

@media (max-height:530px), (max-width:720px) {
  .field[data-tutorial] #commander-info {width:clamp(140px,28vw,183px)}
  .field[data-tutorial] #commander-bubble {padding:7px 8px}
  .field[data-tutorial] #commander-name {font-size:14px}
  .field[data-tutorial] #commander-line,#tutorial-mechanic {font-size:12px}
  #tutorial-retry {min-height:40px}
}

@media (max-height:300px) {
  .field[data-tutorial] #commander-info {width:clamp(172px,38.5vw,188px)}
  .field[data-tutorial] #commander-bubble {
    max-height:calc(100dvh - var(--avatar-size) - var(--hud-bottom) - 16px);
    padding:6px 8px;
    overflow-y:auto;overscroll-behavior:contain;
  }
  .field[data-tutorial] #commander-name {font-size:13px;min-height:21px}
  .field[data-tutorial] #commander-line,#tutorial-mechanic {font-size:11px;line-height:1.25}
}
