:root {
  --faction: #ffca77;
  --house-ink: #732b32;
  --council-gold: #edc183;
  --council-line: #715336;
  --council-muted: #c6b6a8;
  --council-paper: #f8ecd4;
}
body:has(#council) {
  background: radial-gradient(ellipse at 83% -7%, #48252c 0, transparent 46rem),
    #100e12;
}
#council-mast {
  background: #181115ee;
  border-bottom: 1px solid #6d4937;
}
#council-mast .mast-in {
  gap: 1.4rem;
}
#council-mast .mainnav [aria-current] {
  color: #ffcf8a;
}
#council-audio:empty,
#field-audio:empty {
  display: none;
}
.council {
  padding-block: clamp(1rem, 3vw, 2.5rem) 3.5rem;
  color: var(--council-paper);
}
.council h1,
.council h2,
.council h3,
#council-dialog h2,
#council-dialog h3,
.field-objectives h2 {
  font-family: Cinzel, Georgia, serif;
  font-weight: 620;
  line-height: 1.14;
  margin: 0;
}
.council h1 {
  font-size: clamp(2rem, 4.1vw, 3.55rem);
  letter-spacing: -0.045em;
}
.council h2,
#council-dialog h2 {
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}
.council h3,
#council-dialog h3 {
  font-size: clamp(1.04rem, 1.7vw, 1.45rem);
}
.council p,
#council-dialog p {
  margin: 0;
}
.council .kicker,
#council-dialog .kicker,
.field-objectives .kicker {
  margin: 0;
  color: var(--faction);
  font-size: 0.65rem;
  font-weight: 740;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.realm-title,
.field-chapter {
  display: flex;
  align-items: center;
  gap: 0.88rem;
}
.realm-title {
  margin-bottom: clamp(1rem, 2vw, 1.65rem);
}
.realm-title .kicker {
  padding-left: 0.14rem;
  margin-bottom: 0.24rem;
}
.council-sigil,
.house-medal,
.speaker-medal,
.small-sigil {
  display: grid;
  place-items: center;
  color: var(--faction);
  font-family: Georgia, serif;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--house-ink) 80%, #341e18),
    #171017
  );
  border: 1px solid color-mix(in srgb, var(--faction) 68%, #53332d);
  box-shadow: inset 0 0 0 3px #140e1480;
}
.council-sigil {
  width: 3.3rem;
  height: 3.8rem;
  font-size: 2.4rem;
  border-radius: 50% 50% 45% 45% / 12% 12% 30% 30%;
}
.council-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.32fr) minmax(15.5rem, 0.83fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
}
.campaign-story,
.council-main-grid aside,
.message-body {
  min-width: 0;
}
.mission-hero,
.oath,
.oath-detail {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--house-ink);
}
.mission-hero {
  border: 1px solid color-mix(in srgb, var(--faction) 50%, #4c3436);
  border-radius: 6px;
}
.house-art,
.hero-veil,
.oath-tint,
.oath-detail > img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mission-hero > .house-art {
  width: 72%;
  left: auto;
  object-position: var(--art-position, 55% 34%);
}
.hero-veil {
  background: linear-gradient(
      90deg,
      #1c1019 0%,
      color-mix(in srgb, #181017 86%, var(--house-ink)) 31%,
      #171014d6 48%,
      #170d1180 68%,
      #110d1120 100%
    ),
    linear-gradient(0deg, #150f17c7, transparent 51%);
}
.mission-content {
  box-sizing: border-box;
  padding: clamp(1.1rem, 3.1vw, 2.45rem);
  min-height: clamp(17.5rem, 25vw, 23rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
}
.mission-content h2 {
  font-size: clamp(2.05rem, 4.45vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 15ch;
  text-shadow: 0 3px 18px #100c12b5;
}
.mission-content > p:not(.kicker) {
  max-width: 38ch;
  font-size: clamp(0.87rem, 1.25vw, 1rem);
  line-height: 1.5;
  color: #f3e4d6;
  text-shadow: 0 1px 3px #170e16;
}
.chapter-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #faf2dd;
}
.chapter-numeral {
  font:
    500 2.1rem/1 Georgia,
    serif;
  color: var(--faction);
}
.chapter-name > div {
  display: grid;
  border-left: 1px solid #ab8e67a0;
  padding-left: 0.65rem;
  line-height: 1.3;
}
.chapter-name small,
.mission-action > span,
.report-actions > span {
  color: #e4c9a6;
  font-size: 0.72rem;
}
.chapter-name strong {
  font-size: 0.83rem;
}
.mission-action,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.mission-action > .button,
.report-actions > .button,
#council-dialog [data-enlist],
#council-dialog [data-finish]:enabled,
.chapter-preview > [data-mode] {
  border: 1px solid #fff0b5;
  background: linear-gradient(125deg, #ffe3a3, #eab568 67%, #d19a50);
  color: #301d15;
  font-weight: 720;
}
.mission-action a:not(.button) {
  color: #f2d4a1;
  font-size: 0.83rem;
}
.council-card,
.mission-dossier,
.campaign-foot,
.correspondence,
.assignment-callout,
.report-rewards,
.completed-packs:not(:empty) {
  background: linear-gradient(125deg, #2a2026, #1f1920 66%);
  border: 1px solid #5c453d;
  border-radius: 5px;
}
.council-card,
.mission-dossier,
.campaign-foot,
.report-rewards,
.completed-packs:not(:empty) {
  padding: clamp(0.85rem, 1.8vw, 1.4rem);
}
.council-card h2 {
  margin: 0.3rem 0 0.85rem;
}
.council label,
.quest-tools > label,
.formation-selects label,
.invite-box label {
  display: block;
  font-size: 0.77rem;
  line-height: 1.4;
  color: #e9d1af;
  margin: 0.25rem 0;
}
.council select,
.council input,
.quest-tools select,
.quest-tools input:not([type="radio"]),
.invite-box input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0.4rem 0.55rem;
  background: #171318;
  color: #fff3df;
  border: 1px solid #76594e;
  border-radius: 3px;
}
.mode-row {
  display: grid;
  gap: 0.35rem;
  margin: 0.7rem 0;
}
.mode-row button,
.pack-link {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid #644a43;
  background: linear-gradient(95deg, #35272b, #281f26);
  color: #fff0dc;
  text-align: left;
  padding: 0.45rem 0.58rem;
  cursor: pointer;
  border-radius: 3px;
}
.mode-row i,
.pack-link i {
  display: grid;
  place-items: center;
  font:
    normal 1.2rem Georgia,
    serif;
  color: #edbd76;
  width: 1.7rem;
}
.mode-row button > span,
.pack-link > span {
  display: grid;
  min-width: 0;
}
.mode-row b,
.pack-link b {
  font-size: 0.86rem;
}
.mode-row small,
.pack-link small,
.mode-card [data-refresh] {
  font-size: 0.69rem;
  color: #c8b7ac;
}
.mode-row em,
.pack-link em {
  font-style: normal;
  color: var(--faction);
  margin-left: auto;
}
.mode-row button:hover,
.mode-row button:focus-visible,
.pack-link:hover {
  border-color: var(--faction);
}
.mode-card [data-refresh] {
  margin: 0.1rem 0 0;
  background: transparent;
  border: 0;
  padding: 0.25rem 0;
  min-height: 32px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.queue-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.8rem;
}
.correspondence,
.assignment-callout {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  margin: 0.6rem 0;
}
.speaker-medal {
  flex: 0 0 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  font-size: 1.5rem;
}
.message-body {
  flex: 1;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.section-label span,
.section-label > b,
.hand-label {
  color: #d9be94;
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.07em;
}
.correspondence .section-label b {
  font-weight: 700;
  color: var(--faction);
  letter-spacing: 0.015em;
}
.message-body p {
  font-family: Georgia, serif;
  line-height: 1.34;
  font-size: 1.05rem;
  color: #f0e6d5;
  margin-top: 0.18rem;
}
.message-next,
.dialog-close,
.field-tools button {
  width: 36px;
  height: 36px;
  border: 1px solid #775741;
  border-radius: 3px;
  background: #34262b;
  color: var(--faction);
  cursor: pointer;
}
.mission-dossier {
  display: grid;
  gap: 0.85rem;
}
.lesson-copy h3,
.assignment-callout h3 {
  margin: 0.2rem 0;
}
.lesson-copy p:not(.kicker),
.assignment-callout p,
.oath-intro p:not(.kicker),
#council-dialog p {
  color: #dfd2c6;
  font-size: 0.89rem;
}
.assignment-callout i {
  font: 1.25rem Georgia;
  color: var(--faction);
}
.assignment-callout small,
.pack-note,
.milestone {
  color: var(--faction);
  font-size: 0.72rem;
}
.reward-preview {
  padding-top: 0.6rem;
  border-top: 1px solid #5f473e;
}
.reward-row {
  display: flex;
  overflow-x: auto;
  gap: 0.4rem;
  padding: 0.4rem 0.15rem 0.35rem;
  scrollbar-width: thin;
}
.reward-seal,
.compare-choices button {
  flex: 1 0 min(7.8rem, 90%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 13rem;
  padding: 0.25rem 0.4rem 0.25rem 0.25rem;
  border: 1px solid #6d5143;
  background: #211b21;
  text-align: left;
  color: #fff1d8;
  border-radius: 3px;
  cursor: pointer;
}
.reward-seal > .seal-face,
.compare-choices .seal-face {
  width: 30px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
}
.reward-seal > span:not(.seal-face),
.compare-choices button > span:not(.seal-face) {
  display: grid;
}
.reward-seal b,
.compare-choices b {
  font-size: 0.74rem;
  line-height: 1.22;
}
.reward-seal small,
.compare-choices small {
  font-size: 0.6rem;
  color: #dfba87;
}
.campaign-foot,
.report-rewards,
.completed-packs:not(:empty) {
  margin-top: 0.8rem;
}
.campaign-foot h2 {
  font-size: 1.12rem;
}
.timeline {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  padding: 0.5rem 0.12rem;
  overflow: auto;
  margin: 0.3rem 0 0;
  scrollbar-width: thin;
}
.timeline li {
  display: grid;
  flex: 1;
  min-width: 5.6rem;
  align-content: start;
  justify-items: center;
  text-align: center;
  color: #bdafa9;
  font-size: 0.67rem;
  position: relative;
}
.timeline li + li:before {
  content: "";
  width: calc(100% - 2.55rem);
  height: 1px;
  background: linear-gradient(90deg, #725746, #b18a58);
  position: absolute;
  left: calc(-50% + 1.1rem);
  top: 1.15rem;
}
.timeline button {
  display: grid;
  justify-items: center;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  gap: 0.3rem;
  padding: 0.08rem 0.12rem;
}
.timeline i {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid #8e6953;
  color: #dfc2a1;
  background: #291e23;
  font:
    600 0.85rem Cinzel,
    Georgia;
}
.timeline [aria-current] i {
  box-shadow: 0 0 0 3px #efb86728;
  border-color: var(--faction);
  background: var(--house-ink);
  color: #fff6e1;
}
.timeline .done i {
  border-color: #8fc8a3;
  color: #d0f0d2;
  background: #2a493e;
}
.oath-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.oath-intro h2 {
  margin: 0.2rem 0;
}
.faction-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
.oath {
  min-height: clamp(10.5rem, 13.6vw, 15rem);
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--faction) 42%, #382833);
  border-radius: 5px;
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  color: #fff6e7;
  cursor: pointer;
}
.oath .house-art,
.oath-detail img {
  object-position: var(--art-position);
}
.oath-tint {
  background: linear-gradient(0deg, #120d14 1%, #171018d0 24%, transparent 70%);
}
.oath-title {
  display: grid;
  line-height: 1.1;
  gap: 0.27rem;
  align-content: end;
}
.oath-title small {
  color: var(--faction);
  font-size: 0.66rem;
  font-weight: 650;
}
.oath-title b {
  font:
    600 clamp(1.05rem, 1.8vw, 1.7rem) / 1.05 Cinzel,
    Georgia;
}
.oath-title em {
  font:
    0.76rem/1.2 Georgia,
    serif;
  color: #ece2d2;
}
.house-medal {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.8rem;
  height: 2rem;
  border-radius: 2px 2px 35% 35%;
  font-size: 1.15rem;
}
.oath:hover,
.oath:focus-visible,
.reward-seal:hover,
.compare-choices [aria-pressed="true"] {
  border-color: var(--faction);
}
.oath-open {
  max-width: 36rem;
  margin-top: 1rem;
}
#council-dialog {
  width: min(630px, 94vw);
  max-height: 88dvh;
  border: 1px solid #a57c58;
  color: #f6ead8;
  background: linear-gradient(145deg, #35242c, #211b22 62%);
  border-radius: 7px;
  box-shadow: 0 20px 80px #060407ca;
  padding: clamp(0.85rem, 2vw, 1.5rem);
  overflow: auto;
  scrollbar-width: thin;
}
#council-dialog::backdrop {
  background: #0a060bc9;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.dialog-close {
  flex: 0 0 36px;
  font-size: 1.45rem;
  line-height: 1;
}
.oath-detail {
  height: clamp(9rem, 24vh, 15rem);
  display: flex;
  align-items: end;
  border: 1px solid #75574d;
  border-radius: 4px;
  margin-bottom: 0.7rem;
  padding: 0.9rem;
}
.oath-detail:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #171018eb, transparent 70%);
}
.oath-detail > img {
  z-index: -2;
}
.oath-detail > div span {
  font-size: 0.75rem;
  color: var(--faction);
}
.mentor-line,
.oath-terms,
.workshop-instruction,
.skill-description,
.printed-rules,
.chapter-preview h3 {
  margin: 0.65rem 0;
}
.mentor-line {
  display: grid;
}
.mentor-line small,
.oath-terms {
  color: #ddc6ab;
  font-size: 0.77rem;
}
.workshop-intro,
.appraisal {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem 1rem;
}
.workshop-portrait,
.appraisal-art {
  border: 1px solid #ab8057;
  width: 5rem;
  height: 6.3rem;
  object-fit: cover;
  border-radius: 3px;
}
.workshop-intro h3,
.appraisal h3 {
  margin: 0.2rem 0 !important;
}
.workshop-instruction {
  padding: 0.7rem 0.8rem;
  background: #392c30;
  border-left: 2px solid var(--faction);
}
.workshop-instruction h3 {
  margin: 0.18rem 0 !important;
}
.compare-choices,
.formation-selects,
.skill-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.compare-choices {
  margin: 0.4rem 0;
}
.compare-choices button {
  max-width: none;
  min-height: 48px;
}
.appraisal {
  border-top: 1px solid #705447;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}
.appraisal-art {
  width: 5.25rem;
  height: 7rem;
}
.appraise-stats,
.career-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.appraise-stats > span,
.career-row > div {
  display: grid;
  padding: 0.2rem 0.44rem;
  min-width: 3rem;
  border: 1px solid #614a41;
  border-radius: 3px;
  background: #211b21;
}
.appraise-stats small,
.career-row small {
  font-size: 0.58rem;
  color: #d8be9a;
}
.appraise-stats b,
.career-row b {
  font-size: 0.78rem;
}
.appraise-copy {
  grid-column: 1/-1;
  display: grid;
  gap: 0.35rem;
}
#council-dialog .appraise-copy p,
.skill-description {
  font-size: 0.79rem;
}
.appraise-copy p b,
.skill-description b {
  color: #efcf99;
  display: block;
}
.printed-rules {
  padding: 0.46rem 0.65rem;
  border: 1px solid #624b44;
  border-radius: 4px;
}
.printed-rules summary,
.field-lesson summary,
.unit-orders summary {
  cursor: pointer;
}
.printed-rules summary {
  font-size: 0.79rem;
  font-weight: 650;
  color: #e8ceac;
  min-height: 24px;
}
.career-row {
  margin-top: 0.5rem;
}
.workshop-footer {
  margin-top: 0.65rem;
}
.quiz {
  border: 1px solid #6e5347;
  margin: 0.65rem 0;
  padding: 0.55rem 0.65rem;
}
.quiz legend {
  padding: 0 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #efd198;
}
.quiz label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  min-height: 33px;
  cursor: pointer;
}
.quiz input {
  accent-color: #e5b068;
}
.workshop-error {
  padding: 0.4rem 0.6rem;
  background: #50262c;
  color: #ffe4d4 !important;
  border-left: 2px solid #ef9580;
}
.pack-link + .pack-link {
  margin-top: 0.4rem;
}
.pay-row {
  display: flex;
  gap: 0.5rem;
}
.pay-row > span {
  display: grid;
  min-width: 6rem;
  padding: 0.3rem 0.6rem;
  color: #eed4aa;
  border: 1px solid #92764d;
  background: #231b22da;
  font-size: 0.7rem;
  border-radius: 3px;
}
.pay-row b {
  color: #ffe2a0;
  font-size: 0.88rem;
}
#council-dialog .house-standard,
.house-standard {
  display: grid;
  place-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 38%,
    var(--house-ink),
    #211920 78%
  );
  border: 1px solid color-mix(in srgb, var(--faction) 55%, #332025);
  text-align: center;
}
.house-standard b {
  font:
    1.6rem/1 Georgia,
    serif;
  color: var(--faction);
  text-shadow: 0 2px 2px #171015;
}
.house-standard small {
  display: block;
  font:
    600 0.48rem/1.15 Georgia,
    serif;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: #f4e6c9;
}
.reward-seal .house-standard small,
.compare-choices .house-standard small,
.selected-unit .house-standard small {
  display: none;
}
#council-toast:not(:empty) {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  z-index: 15;
  padding: 0.5rem 0.9rem;
  border: 1px solid #a57a55;
  border-radius: 5px;
  background: #32232df6;
  color: #fff2d9;
  box-shadow: 0 4px 20px #08060895;
  font-size: 0.85rem;
}
.battle-page #council-toast:not(:empty) {
  top: 25%;
  bottom: auto;
}
.battle-page {
  overflow: hidden;
}
.battle-page #council-mast,
.battle-page #council {
  display: none;
}
#field-battle {
  position: relative;
  height: 100dvh;
  min-height: 310px;
  overflow: hidden;
  background: #170f13;
}
#field-battle[hidden] {
  display: none;
}
#fv-board {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}
#fv-board:focus-visible {
  outline: 1px solid #c4a67880;
  outline-offset: -2px;
}
.field-objectives,
.field-head,
.field-tools,
.field-tray {
  position: absolute;
  border: 1px solid #9a7657;
  border-radius: 5px;
  background: linear-gradient(125deg, #30232ced, #19151de8);
  color: #f6ead9;
  box-shadow: 0 3px 15px #0d08105e;
}
.field-objectives {
  top: max(0.7rem, env(safe-area-inset-top));
  left: max(0.7rem, env(safe-area-inset-left));
  padding: 0.66rem 0.78rem;
  width: min(265px, 27vw);
}
.field-chapter {
  gap: 0.42rem;
}
.field-objectives .kicker {
  font-size: 0.59rem;
  line-height: 1;
}
.small-sigil {
  width: 1.3rem;
  height: 1.35rem;
  border-radius: 2px;
  font-size: 0.87rem;
}
.field-objectives h2 {
  font-size: clamp(0.92rem, 1.4vw, 1.2rem);
  margin: 0.34rem 0;
}
.objective-line {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  font-size: 0.8rem;
  line-height: 1.43;
}
.objective-line i {
  color: var(--faction);
}
.field-numbers,
.carrier-label,
.field-lesson {
  font-size: 0.7rem;
  color: #e5cdab;
  margin: 0.3rem 0 0;
  line-height: 1.35;
}
.field-lesson p {
  margin: 0.35rem 0 0;
}
.field-head {
  right: max(0.7rem, env(safe-area-inset-right));
  top: max(0.7rem, env(safe-area-inset-top));
  padding: 0.44rem 0.68rem;
  text-align: right;
  display: grid;
  line-height: 1.38;
}
.field-head strong {
  font:
    0.8rem Cinzel,
    Georgia,
    serif;
}
.field-head span {
  font-size: 0.76rem;
}
.field-head small {
  color: #d8c5b3;
  font-size: 0.67rem;
}
.field-head small b {
  color: #c3e6ff;
}
.turn-sign i {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  margin-right: 0.28rem;
  background: #d99b78;
}
.turn-sign[data-active="true"] i {
  background: #9bd8a7;
}
.field-tools {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  top: 5.05rem;
  right: max(0.7rem, env(safe-area-inset-right));
  padding: 0.16rem;
}
.field-tools button {
  min-height: 32px;
  width: 32px;
  height: 32px;
  border-color: #745545;
}
.field-tray {
  bottom: max(0.48rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 1.3rem));
  padding: 0.42rem 0.62rem;
}
.field-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
}
.field-actions button,
.field-actions summary {
  color: #f5e9d3;
  border: 1px solid #80654f;
  border-radius: 3px;
  background: #36282d;
  cursor: pointer;
  font:
    600 0.73rem/1.1 Inter,
    sans-serif;
  min-height: 32px;
  padding: 0.32rem 0.55rem;
}
.field-actions [data-hint],
.turn-actions:not(:has([data-hint])) [data-end] {
  background: linear-gradient(125deg, #ffe3a3, #d5a05b);
  color: #321f19;
  border-color: #e6c089;
}
.field-actions [data-retreat] {
  font-weight: 400;
  color: #dac4b7;
}
.field-actions button:disabled {
  opacity: 0.48;
  cursor: default;
}
.turn-actions {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}
.field-selection {
  min-width: 0;
}
.field-prompt,
.selected-target {
  color: #d9c5b1;
  font-size: 0.76rem;
}
.field-actions .selected-unit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.12rem 0.4rem 0.12rem 0.12rem;
  text-align: left;
}
.selected-unit .seal-face {
  width: 26px;
  height: 29px;
  object-fit: cover;
}
.selected-unit > span:not(.seal-face),
.selected-target {
  display: grid;
}
.selected-unit small,
.selected-target small {
  font-size: 0.66rem;
  font-weight: 400;
  color: #e2c79e;
}
.unit-orders {
  position: relative;
}
.unit-orders summary {
  display: flex;
  align-items: center;
}
.order-list {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 0.25rem);
  left: 0;
  width: min(430px, 62vw);
  max-height: 33vh;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: #251b22fa;
  padding: 0.4rem;
  border: 1px solid #987452;
  border-radius: 4px;
}
.hand-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.23rem 0 0.2rem;
  font-size: 0.61rem;
  line-height: 1;
  text-transform: uppercase;
}
.hand-label small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.65rem;
  color: #cdbdb1;
}
.battle-hand {
  display: flex;
  align-items: stretch;
  gap: 0.38rem;
  overflow-x: auto;
  padding: 1px 1px 3px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.hand-nav:not([hidden]) {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}
.hand-nav button {
  min-width: 32px;
  height: 26px;
  border: 1px solid #826a54;
  border-radius: 3px;
  color: #f7e4bc;
  background: #38272a;
  font: 700 1.2rem/1 Georgia, serif;
  cursor: pointer;
}
.hand-nav button:disabled {
  opacity: 0.42;
  cursor: default;
}
.hand-window {
  position: relative;
}
.hand-window::before,
.hand-window::after {
  position: absolute;
  z-index: 1;
  inset-block: 0 3px;
  width: 16px;
  pointer-events: none;
}
.hand-window[data-more-left]::before {
  content: "";
  left: 0;
  background: linear-gradient(to right,#211920,transparent);
}
.hand-window[data-more-right]::after {
  content: "";
  right: 0;
  background: linear-gradient(to left,#211920,transparent);
}
.sr-council {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.invite-box {
  width: min(100%, 29rem);
}
.invite-box > div {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.invite-box .button {
  font-size: 0.75rem;
}
.resolved-tray {
  text-align: center;
  font:
    1.05rem Cinzel,
    Georgia,
    serif;
  padding: 0.8rem;
}
@media (max-width: 840px) {
  .council-main-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(13rem, 1fr);
    gap: 0.6rem;
  }
  .faction-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mission-content {
    padding: 1.1rem;
  }
}
@media (max-width: 650px) {
  #council-mast .mast-in {
    gap: 0.4rem;
  }
  #council-mast .brand {
    font-size: 0.85rem;
  }
  #council-mast .mainnav {
    flex: 1;
  }
  .council-main-grid {
    display: contents;
  }
  .council:has(.council-main-grid) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .campaign-story {
    grid-row: 2;
  }
  .council-main-grid aside {
    grid-row: 4;
    margin-top: 0.7rem;
  }
  .campaign-foot {
    grid-row: 3;
    margin-top: 0.6rem;
  }
  .mission-content {
    min-height: 17rem;
  }
  .mission-hero > .house-art {
    width: 82%;
  }
  .hero-veil {
    background: linear-gradient(
        90deg,
        #1c1019fa 0%,
        #1b1018eb 33%,
        #170e15a0 62%,
        #170d1115
      ),
      linear-gradient(0deg, #170e17dd, transparent 80%);
  }
  .mission-content > p:not(.kicker) {
    max-width: 74%;
  }
  .mission-content h2 {
    max-width: 13ch;
  }
  .oath {
    min-height: 9.8rem;
  }
  .oath-title b {
    font-size: 1.04rem;
  }
  .correspondence,
  .assignment-callout {
    gap: 0.55rem;
    padding: 0.6rem;
  }
  .speaker-medal {
    flex-basis: 2rem;
    height: 2.2rem;
  }
  .message-body p {
    font-size: 0.93rem;
  }
  .timeline {
    scroll-snap-type: x proximity;
  }
  .timeline li {
    min-width: 4.4rem;
    scroll-snap-align: center;
  }
  .field-objectives {
    left: 0.33rem;
    top: max(0.35rem, env(safe-area-inset-top));
    padding: 0.35rem 0.43rem;
    width: min(48vw, 13rem);
  }
  .field-head {
    right: 0.33rem;
    top: max(0.35rem, env(safe-area-inset-top));
    max-width: 46vw;
    padding: 0.3rem 0.38rem;
  }
  .field-head strong,
  .field-head span,
  .objective-line {
    font-size: 0.68rem;
  }
  .field-head small,
  .field-lesson,
  .carrier-label {
    font-size: 0.61rem;
  }
  .field-tools {
    right: 0.32rem;
    top: 4.3rem;
  }
  .field-objectives h2 {
    font-size: 0.84rem;
    margin: 0.23rem 0;
  }
  .field-tray {
    width: calc(100% - 0.55rem);
    padding: 0.29rem 0.35rem;
    bottom: max(0.28rem, env(safe-area-inset-bottom));
  }
  .field-actions {
    flex-wrap: wrap;
    gap: 0.2rem;
  }
  .field-actions .turn-actions {
    gap: 0.17rem;
  }
  .field-actions button,
  .field-actions summary {
    min-height: 32px;
    font-size: 0.63rem;
    padding: 0.2rem 0.32rem;
  }
  .field-prompt {
    font-size: 0.63rem;
  }
  .hand-label {
    margin-top: 0.16rem;
  }
  .battle-hand {
    gap: 0.26rem;
  }
  .order-list {
    position: fixed;
    bottom: 100%;
    left: 0;
    width: 100%;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .field-tray {
    left: auto;
    right: 0.35rem;
    transform: none;
    width: min(72%, 740px);
  }
  .field-objectives {
    width: 23%;
  }
  .hand-label {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .oath .house-art {
    transition: transform 0.36s ease;
  }
  .oath:hover .house-art {
    transform: scale(1.035);
  }
  .reward-seal,
  .mode-row button {
    transition:
      border-color 0.15s,
      background-color 0.15s;
  }
}
.field-tools .follow-action {
  width: auto;
  padding: 0 0.4rem;
  font-size: 0.66rem;
}
.field-tools .follow-action[aria-pressed="true"] {
  border-color: #d9b270;
  background: #53402e;
}
.hand-play[aria-disabled="true"] > .seal-face {
  filter: saturate(0.7) brightness(0.72);
}
.inspection-note,
.report-check {
  color: #bde5bf !important;
}
.pay-row {
  flex-wrap: wrap;
}
.report-actions > .button + .button {
  color: #f1d7b5;
  background: #2a2028e8;
  border-color: #7b614e;
}
.target-orders .order-list {
  align-items: center;
}
.target-orders label {
  color: #edcda0;
  font-size: 0.75rem;
}
.target-orders select {
  max-width: 14rem;
  color: #f7efdc;
  background: #231b23;
  padding: 0.3rem;
  border: 1px solid #775d47;
}
@media (max-width: 650px) {
  .field-tools {
    display: grid;
    grid-template-columns: repeat(4, 34px);
    gap: 0.12rem;
    width: max-content;
    max-width: 45vw;
  }
  .field-tools #field-audio,
  .field-tools .follow-action {
    grid-column: span 2;
  }
  .field-tools #field-audio {
    display: flex;
    justify-content: end;
  }
  .field-tools button {
    min-height: 34px;
    min-width: 32px;
  }
  .field-actions button,
  .field-actions summary {
    min-height: 38px;
  }
  .field-head {
    min-height: 55px;
  }
  .pay-row > span {
    min-width: 4.8rem;
  }
}
.report-result:focus {
  outline: none;
}
.enemy-response {
  padding: 0.35rem 0.4rem;
  margin: 0.35rem 0;
  background: #40272d;
  border-left: 2px solid #d78979;
}
.enemy-response small {
  display: block;
  color: #f1bca2;
  font-size: 0.61rem;
  font-weight: 700;
}
.enemy-response p {
  margin: 0.15rem 0 0;
  color: #fae6d8;
  font:
    0.78rem/1.3 Georgia,
    serif;
}
.support-objective {
  display: flex;
  align-items: baseline;
  gap: 0.32rem;
  margin: 0.3rem 0;
  color: #ead0ff;
  font-size: 0.69rem;
  line-height: 1.35;
}
.support-objective i {
  font-style: normal;
}
.support-objective[data-support-state="held"] {
  color: #b7dfbb;
}

.field-company { border-left: 2px solid #cb6652; margin-block: .55rem; padding-left: .55rem; }
.field-company > div { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.field-company b { color: #f2cba7; }
.field-company strong { color: #ffd899; font-variant-numeric: tabular-nums; }
.field-company p { margin: .15rem 0; font-size: .8rem; color: #e1c6b0; }
.field-company ul { margin: .25rem 0; padding-left: 1.1rem; }

#field-load-status:not([hidden]) { position: fixed; inset: 0; z-index: 20; margin: 0; display: grid; place-items: center; background: #211714; color: #f5e2bb; }
