/* Appearance-scoped skin. Geometry, card art and player colors remain unchanged. */
html:is([data-appearance="expedition"], [data-appearance="frost"]) {
  --panel: #192b2d;
  --panel-2: #223b3b;
  --line: #50635c;
  --text: #e7e5d7;
  --muted: #b2bfb5;
  --accent: #d7bc83;
  --parch-ink: #302f28;
  --cs-gold: #967546;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) body {
  --theme-fu: #b5b1a6;
  --theme-fu-ink: #302e29;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) body,
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal.lobby, #tutorial) {
  background:
    url("../../assets/ui/expedition-map.webp?v=72db32a4a9") center / cover no-repeat,
    #e4d5b5;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .panel,
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #scorePanel .score-row {
  border-color: #997744;
  background:
    radial-gradient(circle at calc(100% - 7px) 7px, #c9ab70 0 1px, #614525 1.5px 2px, transparent 2.5px),
    linear-gradient(125deg, #483226eb, #291e18f2),
    url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover;
  color: #eddfc3;
  box-shadow: inset 0 0 0 1px #c5a26b40, inset 0 0 0 3px #20150f80, 0 3px 7px #38281955;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .panel.parch {
  border-image: none;
  background: linear-gradient(#eee8dc70, #d5c7b65c), url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover;
  color: #493c2e;
  box-shadow: inset 0 0 0 1px #91785860, inset 0 0 12px #80623e30, 0 3px 6px #38281940;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #market {
  background: transparent;
  box-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #banner,
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #turnInfo {
  background: #39291fee;
  border-color: #997744;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .panel-title {
  color: #dec99e;
  text-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .parch .panel-title { color: #58422b; }
/* Existing compact-layout skins use important backgrounds; override only their colors. */
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app :is(#handArea, #publicMarket, #rewardPanel, #actionPanel) {
  background: linear-gradient(#eee8dc70, #d5c7b65c), url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover !important;
  border-color: #9c8668 !important;
  border-image: none;
  color: #493c2e;
  box-shadow: inset 0 0 0 1px #f6ecd580, inset 0 0 14px #80623e30, 0 3px 6px #38281940;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app :is(#handArea, #publicMarket, #actionPanel) .panel-title,
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app :is(#handArea, #publicMarket) .panel-title small {
  color: #58422b;
  text-shadow: none;
  font-weight: 600;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel details.reasons {
  color: #493524;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .reasons div b {
  color: #674318;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actions .placehint {
  color: #493524;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actions .placewhy {
  color: #7a3024;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .btn:not(.act) {
  background: linear-gradient(115deg, #513829, #2d2119);
  color: #f3e3bf;
  border-color: #a88a53;
  border-radius: 9px 3px 9px 3px;
  box-shadow: inset 0 0 0 1px #c3a36a40, 0 2px 4px #38281955;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .btn.secondary:not(.act) {
  background: linear-gradient(115deg, #eee1c8, #cbb591);
  color: #493524;
  border-color: #917048;
  box-shadow: inset 0 0 0 1px #fff3d280, 0 2px 4px #38281940;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .btn:not(.act):hover:not(:disabled) {
  background: linear-gradient(115deg, #634731, #3c2b1f);
  color: #fff0cf;
  border-color: #c9ab70;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .btn.secondary:not(.act):hover:not(:disabled) {
  background: linear-gradient(115deg, #fff0d3, #decaab);
  color: #493524;
  border-color: #74532c;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .btn:not(.act):active:not(:disabled) {
  background: #3c2b1f;
  color: #fff0cf;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .btn.secondary:not(.act):active:not(:disabled) {
  background: #cbb591;
  color: #493524;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app .btn:not(.act):disabled {
  background: #655c50;
  color: #eee5d7;
  border-color: #91816a;
  opacity: 1;
  box-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .reasons .rsn-list {
  background: #eee1c8;
  border-color: #997744;
  color: #493c2e;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #logPanel {
  background: linear-gradient(125deg, #483226, #291e18) !important;
  border-color: #997744;
  color: #eddfc3;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #logPanel #log {
  background: #30251d;
  border-color: #997744;
  color: #eddfc3;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #logPanel .panel-title { color: #dec99e; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #log div { border-bottom-color: #c5a26b40; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #log .sys { color: #efd39a; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #log .pts { color: #99ddb2; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #log .hl {
  background: #33472c;
  color: #e3f4d8;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #scorePanel .score-row.cur {
  border-color: #dfc38b;
  box-shadow: inset 0 0 0 1px #dfc38b99, inset 0 -3px #b28a4b70, 0 3px 7px #38281955;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #popPanel .pop-row {
  border-radius: 4px;
  background: linear-gradient(90deg, #c4a06a14, transparent);
  box-shadow: inset 2px 0 var(--tc);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #popPanel .theme-E { background-image: repeating-linear-gradient(65deg, #77b89a0c 0 1px, transparent 1px 14px); }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #popPanel .theme-G { background-image: repeating-linear-gradient(135deg, #a4d5e212 0 1px, transparent 1px 16px); }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #popPanel .theme-R { background-image: repeating-linear-gradient(0deg, #bec8cf18 0 1px, transparent 1px 7px); }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #popPanel .theme-T { background-image: repeating-radial-gradient(ellipse at left, transparent 0 12px, #d6bd8112 13px 14px, transparent 15px 25px); }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .btn.act {
  background:
    radial-gradient(circle at calc(100% - 7px) 7px, #c9ab70 0 1px, #614525 1.5px 2px, transparent 2.5px),
    linear-gradient(115deg, #513829e3, #2d2119f2),
    url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover;
  border-color: #a88a53;
  border-radius: 12px 4px 12px 4px;
  color: #f3e3bf;
  filter: none;
  box-shadow: inset 0 0 0 1px #c3a36a80, inset 0 0 0 4px #24181080, 0 2px 4px #38281955;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .btn.act:disabled {
  background: linear-gradient(#aaa08f, #8c8273);
  border-color: #766b5c;
  color: #e4dccf;
  filter: none;
  opacity: .8;
  box-shadow: inset 0 0 0 1px #d4c7b34d;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .btn.act .tt { text-shadow: 0 1px 1px #241810; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .btn.act,
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-actbtn {
  position: relative;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#app #actionPanel .btn.act, #tutorial .tu-actbtn)::before {
  content: "";
  position: absolute;
  left: 3%;
  top: 10%;
  height: 80%;
  width: auto;
  aspect-ratio: 1;
  background: url("../../assets/ui/expedition-actions.svg?v=7656f4fde7") var(--action-icon, 0%) center / 400% 100% no-repeat;
  pointer-events: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#app #actionPanel, #tutorial) .btn-development { --action-icon: 33.333333%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#app #actionPanel, #tutorial) .btn-draw { --action-icon: 66.666667%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#app #actionPanel, #tutorial) .btn-collection { --action-icon: 100%; }
@media (orientation: portrait) {
  html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .btn.act::before {
    top: 17.5%;
    height: 65%;
  }
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .btn.act:disabled::before {
  filter: grayscale(1);
  opacity: .55;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app #actionPanel .btn.act:not(:disabled):hover {
  filter: brightness(1.09);
  border-color: #d1b278;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #app button:focus-visible {
  outline: 2px solid #967546;
  outline-offset: 3px;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-stage {
  background: transparent;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-panel {
  background: none;
  color: #473728;
  border-radius: 3px;
  filter: drop-shadow(2px 5px 3px #38281945);
  box-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-panel::before {
  content: "";
  border-image: none;
  background:
    radial-gradient(ellipse at 0 21%, #4b2b13a0, #9b653b30 1.5%, transparent 5%),
    radial-gradient(ellipse at 83% 100%, #52301c90, #a1703a25 2%, transparent 6%),
    radial-gradient(ellipse at 100% 63%, #5c361b80, transparent 4%),
    linear-gradient(#fff9e451, #fff5dd30),
    url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover;
  box-shadow: inset 0 0 3px 2px #73513280, inset 0 0 24px #916d3745;
  clip-path: polygon(.3% .4%, 16% .2%, 16.4% .7%, 17% .3%, 48% 0, 76% .4%, 97.5% .2%,
    100% 3%, 99.7% 26%, 100% 48%, 99.4% 49%, 99.9% 50%, 99.7% 77%, 100% 98.8%,
    91% 99.6%, 83.5% 99.2%, 83% 98.7%, 82.4% 99.5%, 53% 99.8%, 22% 99.4%,
    .4% 100%, 0 89%, .4% 60%, .1% 23%, .7% 22%, 0 20%, .3% 12%);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-panel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 3%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #80633a 12%, #ddc69b 48%, #fff1d0 65%, #baa072 95%);
  clip-path: polygon(0 0, 100% 100%, 6% 87%);
  filter: drop-shadow(-2px 3px 2px #50391f60);
  pointer-events: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-gem { visibility: hidden; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal.lobby, #tutorial, #learningChoice) {
  --gold: #87612b;
  --gold-d: #967546;
  --ink: #473728;
  --ink-on: #241a12;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-title {
  border-image: none;
  background: url("../../assets/ui/expedition-banner.svg?v=dd0c10c1d3") center / 100% 100% no-repeat;
  min-width: calc(360 * var(--s));
  height: calc(120 * var(--s));
  top: calc(-45 * var(--s));
  padding: 0 calc(64 * var(--s));
  border-radius: 0;
  filter: drop-shadow(0 3px 2px #50391f40);
  box-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-title h2 {
  color: #493524;
  text-shadow: 0 1px #fff3d280;
  font-size: max(15px, calc(27 * var(--s)));
  transform: translateY(calc(8 * var(--s)));
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-title-gem { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .lb-title {
    top: max(-12px, calc(-45 * var(--s)));
  }
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-row { border-bottom-color: #896f4738; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-ic { color: #856638; filter: none; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-hint { color: #746044; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-r i,
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-chk i {
  background: #f5e8cb;
  box-shadow: inset 0 1px 3px #604a3033;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-r input:checked + i::after {
  background: radial-gradient(circle at 35% 35%, #b6975b, #725124);
  box-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-r:hover i { border-color: #523820; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-chk input:checked + i {
  background: linear-gradient(#c6aa72, #96713c);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-r input:focus-visible + i,
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-chk input:focus-visible + i,
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial) .lb-range:focus-visible {
  outline-color: #694924;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-btn {
  border-image: none;
  background:
    radial-gradient(circle at 12px 12px, #d6bd82 0 1px, #806136 1.5px 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #d6bd82 0 1px, #806136 1.5px 2px, transparent 2.5px),
    linear-gradient(115deg, var(--lb-surface-light, #402d20df), var(--lb-surface-dark, #271d17f2)),
    url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover;
  border-radius: 15px 5px 15px 5px / 11px 5px 11px 5px;
  color: #f3e3bf;
  filter: none;
  text-shadow: 0 1px 2px #1c130d;
  box-shadow: inset 0 0 0 1px #a88a53, inset 0 0 0 4px #231911,
    inset 0 0 0 5px #b397604a, 0 4px 7px #38281955;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-btns .lb-btn { position: relative; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal .lb-learning {
  --lb-surface-light: #315a60e8;
  --lb-surface-dark: #162f37f2;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal .lb-learning::before { content: none; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-btn::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed #c0a47266;
  border-radius: 9px 2px 9px 2px;
  pointer-events: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-btn:hover { background-color: #64492f; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#modal, #tutorial, #learningChoice) .lb-btn .lb-ic { color: #d3b77b; }

/* Online forms sit on paper, not the classic dark-green panels. */
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol :is(.ol-h, .ol-row, .ol-roominfo) {
  border-color: #896f4759;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-h h3 {
  color: #493524;
  text-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol :is(.ol-empty, .ol-lineup, .ol-adv, .ol-status, .ol-why) {
  color: #59432d;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-status.bad { color: #842f22; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-link { color: #674318; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-link:hover { color: #352317; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-link:active { color: #493524; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-input {
  color: #473728;
  background: #f5e8cb;
  border-color: #806136;
  box-shadow: inset 0 1px 3px #604a3033;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-input::placeholder {
  color: #675038;
  opacity: 1;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-join .ol-code {
  flex-basis: max(calc(220 * var(--s)), 11em);
  min-width: 10em;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-input:hover:not(:disabled) { border-color: #523820; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-input:read-only { background: #e8d9ba; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-input:disabled {
  background: #e2d3b5;
  color: #59432d;
  opacity: 1;
  cursor: not-allowed;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol :is(.ol-link, .ol-input, .ol-adv summary):focus-visible {
  outline: 2px solid #694924;
  outline-offset: 3px;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-levels.off { opacity: 1; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-levels.off :is(.ol-lbl, .lb-r span) { color: #59432d; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .lb-r:has(input:disabled) { cursor: not-allowed; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .lb-r input:disabled { cursor: not-allowed; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .lb-r input:disabled + i {
  background: #e2d3b5;
  border-color: #806b50;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol :is(.lb-r, .lb-chk) input:not(:disabled):active + i { background: #dcc49b; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .lb-btn:hover:not(:disabled) {
  --lb-surface-light: #634731;
  --lb-surface-dark: #3c2b1f;
  color: #fff0cf;
  filter: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .lb-btn:active:not(:disabled),
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-btns .lb-primary.on {
  --lb-surface-light: #3c2b1f;
  --lb-surface-dark: #302117;
  color: #fff0cf;
  filter: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .lb-btn:disabled {
  background: #655c50;
  color: #eee5d7;
  filter: none;
  opacity: 1;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px #91816a, 0 2px 4px #38281940;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .lb-btn:focus-visible {
  outline: 2px solid #694924;
  outline-offset: 3px;
  filter: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol :is(.ol-room, .ol-seat) {
  background: linear-gradient(115deg, #f2e5ca, #e3d1ae);
  border-color: #967546;
  color: #473728;
  box-shadow: inset 0 1px 0 #fff3d280;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-seat.me {
  border-color: #674318;
  box-shadow: inset 0 0 0 2px #967546, 0 2px 4px #38281940;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol :is(.ol-room-host, .ol-seat-name) { color: #473728; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol :is(.ol-room-code, .ol-room-l2, .ol-seat.empty .ol-seat-name, .ol-seat-name small) { color: #59432d; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-room-l1 { flex-wrap: wrap; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-room-host { max-width: 100%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-room-l2 {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-tag {
  color: #59432d;
  border-color: #967546;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-tag.host {
  color: #473728;
  background: #dbc294;
  border-color: #806136;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-tag.rdy {
  color: #28452b;
  background: #d6dfbd;
  border-color: #526c43;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-tag.off {
  color: #842f22;
  background: #f1d6bd;
  border-color: #9b5941;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-tag.on .ol-dot { background: #3e683e; box-shadow: none; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .ol-tag.off .ol-dot { background: #842f22; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #modal.lobby.ol .lb-toast {
  color: #f3e3bf;
  background: #39291f;
  border-color: #a88a53;
  white-space: normal;
  text-align: center;
  max-width: calc(100vw - 24px);
  width: max-content;
  box-sizing: border-box;
}

/* Change the printed surface only; never filter the tile's pawn children. */
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#track, #dragPv) .tile {
  --route-position: 0%;
  filter: none;
  border-radius: 0;
  margin-right: 0;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#track, #dragPv) :is(.theme-G .tile, .tile.ut-G) { --route-position: 33.333333%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#track, #dragPv) :is(.theme-T .tile, .tile.ut-T) { --route-position: 66.666667%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#track, #dragPv) :is(.theme-R .tile, .tile.ut-R) { --route-position: 100%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#track, #dragPv) .tile {
  background: url("../../assets/ui/expedition-track.svg?v=381f045278") var(--route-position) center / 400% 100% no-repeat,
    url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover !important;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tileBed {
  background: #c6b38e;
  box-shadow: inset 0 1px 3px #68503350;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #track .tile::before,
html:is([data-appearance="expedition"], [data-appearance="frost"]) #track .tile::after { display: none; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#track, #dragPv) .tile .num {
  color: #44392a;
  text-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #track .start .tile,
html:is([data-appearance="expedition"], [data-appearance="frost"]) #track .endcap {
  background: linear-gradient(120deg, #5a4230, #35261c) !important;
  border-radius: 5px 2px 5px 2px;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #track .start .tile::after {
  content: "➜";
  display: grid;
  place-items: center;
  inset: 0;
  background: none;
  box-shadow: none;
  color: #eadfc8;
  font-size: calc(var(--cell-w) * .48);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) :is(#railTop, #railBottom) {
  background: url("../../assets/ui/expedition-rope.svg?v=9760628970") left center / auto 100% repeat-x;
  box-shadow: none;
  filter: drop-shadow(0 2px 2px #33251865);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #railBottom {
  background-position-x: calc(var(--cell-w) * -0.37);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #track .promo.ghost .tile {
  background: #e8dcc766 !important;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial.tu-asking { background: #38291c80; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial :is(.tu-scene, .tu-bubble, .tu-say, .tu-tag, .tu-step) {
  background: linear-gradient(#fff9e451, #e1d4bc40), url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover;
  color: #473728;
  box-shadow: inset 0 0 0 1px #96754680, 0 3px 8px #38281935;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial :is(.tu-ptitle, .tu-count, .tu-asktips, .tu-formula,
  .tu-actcap, .tu-actx, .tu-played small, .tu-dr .tu-dhand, .tu-pop th, .tu-pop td b, .tu-sum td:first-child) {
  color: #58422b;
  text-shadow: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial :is(.tu-sc, .tu-end, .tu-cls, .tu-overflow-choices, .tu-actbtn) {
  background: linear-gradient(115deg, #513829e3, #2d2119f2), url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover;
  color: #f3e3bf;
  box-shadow: inset 0 0 0 1px #a88a53, 0 2px 4px #38281940;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .lb-btn { position: relative; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .lb-btn:focus-visible {
  outline: 2px solid #694924;
  outline-offset: 3px;
  filter: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-tile {
  --route-position: 0%;
  background: url("../../assets/ui/expedition-track.svg?v=381f045278") var(--route-position) center / 400% 100% no-repeat,
    url("../../assets/ui/expedition-paper.webp?v=cdd3820fb6") center / cover;
  filter: none;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-tile.theme-G { --route-position: 33.333333%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-tile.theme-T { --route-position: 66.666667%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-tile.theme-R { --route-position: 100%; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-num { color: #44392a; text-shadow: none; }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-tile.tu-start {
  background: linear-gradient(120deg, #5a4230, #35261c);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-tile.tu-start::after {
  content: "➜";
  display: grid;
  place-items: center;
  height: 100%;
  color: #eadfc8;
  font-size: calc(var(--cw) * .48);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-rail {
  background: url("../../assets/ui/expedition-rope.svg?v=9760628970") left center / auto 100% repeat-x;
  box-shadow: none;
  filter: drop-shadow(0 2px 2px #33251865);
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-rail-bot { background-position-x: calc(var(--cw) * -0.37); }
html:is([data-appearance="expedition"], [data-appearance="frost"]) #tutorial .tu-sc-match .tu-sc-ic {
  background: url("../../assets/ui/expedition-track.svg?v=381f045278") left center / 400% 100% no-repeat;
}
html:is([data-appearance="expedition"], [data-appearance="frost"]) .tu-tip-ok {
  background: linear-gradient(#513829, #2d2119);
  color: #f3e3bf;
}
