/* Frost appearance, layered over the shared expedition foundation. */
html[data-appearance="frost"] body {
  background: radial-gradient(ellipse at 50% 35%, #668998 0%, #2f4b5a 48%, #192e3d 100%) !important;
}
html[data-appearance="frost"] #app {
  background: linear-gradient(#1b354830, #1b354850), url("../../assets/ui/frost/mountains.webp?v=1d7df83be4") center / cover no-repeat !important;
}
@media (orientation: portrait) {
  html[data-appearance="frost"] #app { background-position: center, left center !important; }
}
html[data-appearance="frost"] #app .panel.parch,
html[data-appearance="frost"] #app #handArea,
html[data-appearance="frost"] #app #publicMarket,
html[data-appearance="frost"] #app #actionPanel {
  background: linear-gradient(145deg, #d9e8e8ed, #adc9d1ee) !important;
  border-color: #839da6 !important;
}
html[data-appearance="frost"] #app :is(#railTop, #railBottom) { visibility: hidden !important; }
html[data-appearance="frost"] #app #trackWrap {
  padding-left: calc(var(--cell-w) * .6);
}
html[data-appearance="frost"] #app #tileBed {
  display: block !important;
  background: url("../../assets/ui/frost/river.svg?v=883101d40c") right center / calc(100% - var(--cell-w) * .6) 100% no-repeat !important;
  border-radius: 0;
  clip-path: none;
  mask-image: linear-gradient(to right, #000 0%, #000 96%, transparent 100%);
  box-shadow: none !important;
  transform: scale(1, 1.65);
}
html[data-appearance="frost"] #track .tile {
  --ice-light: #a4d3e2;
  --ice-dark: #4b8599;
  --ice-icon: none;
  --ice-texture-position: 50% 50%;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  filter: drop-shadow(0 3px 3px #18384388);
}
html[data-appearance="frost"] #track :is(.theme-E .tile, .tile.ut-E) { --ice-light: #71bda1; --ice-dark: #145844; --ice-icon: url("../../assets/ui/frost/leaf.svg?v=9910bca6ba"); }
html[data-appearance="frost"] #track :is(.theme-G .tile, .tile.ut-G) { --ice-light: #57b9ed; --ice-dark: #126aaf; --ice-icon: url("../../assets/ui/frost/snow.svg?v=51d87e4f25"); }
html[data-appearance="frost"] #track :is(.theme-R .tile, .tile.ut-R) { --ice-light: #a3a3a3; --ice-dark: #494949; --ice-icon: url("../../assets/ui/frost/gear.svg?v=88e4f66a7f"); }
html[data-appearance="frost"] #track :is(.theme-T .tile, .tile.ut-T) { --ice-light: #f8de81; --ice-dark: #c59128; --ice-icon: url("../../assets/ui/frost/sun.svg?v=50b6f2a278"); }
html[data-appearance="frost"] #track .tile::before {
  display: block !important;
  content: "";
  position: absolute;
  inset: 5% 3% 3%;
  clip-path: polygon(5% 16%, 19% 5%, 68% 0, 89% 8%, 95% 22%, 100% 65%, 94% 85%, 81% 96%, 19% 100%, 4% 89%, 0 71%);
  background: url("../../assets/ui/frost/ice.svg?v=dbb0d57008") center / 100% 100% no-repeat !important;
  box-shadow: none !important;
}
html[data-appearance="frost"] #track .tile::after {
  display: block !important;
  content: "";
  position: absolute;
  inset: 11% 10% 32%;
  clip-path: polygon(5% 16%, 19% 5%, 68% 0, 89% 8%, 95% 22%, 100% 73%, 86% 85%, 19% 88%, 0 80%);
  background:
    var(--ice-icon) center 48% / 44% 55% no-repeat,
    url("../../assets/ui/frost/ice-surface.svg?v=303f8a1362") var(--ice-texture-position) / 130% 130% no-repeat,
    linear-gradient(150deg, var(--ice-light), var(--ice-dark)) !important;
  box-shadow: none !important;
}
html[data-appearance="frost"] #track .tile:nth-child(3n + 2) { --ice-texture-position: 20% 35%; }
html[data-appearance="frost"] #track .tile:nth-child(3n) { --ice-texture-position: 80% 65%; }
html[data-appearance="frost"] #track .tile:nth-child(3n + 2)::before { clip-path: polygon(4% 23%, 12% 8%, 38% 2%, 79% 4%, 94% 13%, 100% 66%, 95% 88%, 78% 97%, 24% 95%, 7% 100%, 0 72%); }
html[data-appearance="frost"] #track .tile:nth-child(3n + 2)::after { clip-path: polygon(4% 23%, 12% 8%, 38% 2%, 79% 4%, 94% 13%, 100% 74%, 84% 85%, 20% 87%, 0 80%); }
html[data-appearance="frost"] #track .tile:nth-child(3n)::before { clip-path: polygon(7% 18%, 19% 3%, 72% 5%, 84% 0, 97% 18%, 100% 66%, 93% 90%, 82% 94%, 37% 100%, 14% 94%, 0 73%); }
html[data-appearance="frost"] #track .tile:nth-child(3n)::after { clip-path: polygon(7% 18%, 19% 3%, 72% 5%, 84% 0, 97% 18%, 100% 74%, 83% 86%, 25% 88%, 0 80%); }
html[data-appearance="frost"] #track .tile .num {
  display: block !important;
  color: #507781 !important;
  text-shadow: 0 -1px 0 #315d6cbb, 0 1px 0 #eaffffdd, 1px 1px 2px #d6ffff99 !important;
  font-weight: 700;
  z-index: 4;
  bottom: 9% !important;
}
@media (orientation: portrait) and (max-width: 650px), (orientation: landscape) and (max-height: 500px) {
  html[data-appearance="frost"] #track .tile .num { bottom: 1% !important; }
}
html[data-appearance="frost"] #app #track .start .tile { background: none !important; }
html[data-appearance="frost"] #app #track .start .tile::before {
  inset: -55% -20% -23% -20%;
  transform: translateX(calc(var(--cell-w) * -.28));
  clip-path: none;
  background: url("../../assets/ui/frost/stone.svg?v=2696f061f3") center / 100% 100% no-repeat !important;
}
html[data-appearance="frost"] #app #track .start .tile::after { display: none !important; }
html[data-appearance="frost"] #app #pawns .pawn {
  transition: left calc(var(--pawn-t, 300ms) * .62) ease-in-out, top calc(var(--pawn-t, 300ms) * .62) ease-in-out,
    width calc(var(--pawn-t, 300ms) * .8) ease-out, height calc(var(--pawn-t, 300ms) * .8) ease-out,
    translate calc(var(--pawn-t, 300ms) * .62) ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  html[data-appearance="frost"] #app #pawns .pawn { transition: none; }
}
html[data-appearance="frost"] #app #pawns .pawn-yellow[data-pos="0"] { translate: calc(var(--cell-w) * -.38) 0; }
html[data-appearance="frost"] #app #pawns .pawn-green[data-pos="0"] { translate: calc(var(--cell-w) * -.32) 0; }
html[data-appearance="frost"] #app #pawns .pawn-blue[data-pos="0"] { translate: calc(var(--cell-w) * -.24) 0; }
html[data-appearance="frost"] #app #pawns .pawn-red[data-pos="0"] { translate: calc(var(--cell-w) * -.23) 0; }

/* Frosted glass controls and engraved ice emblems, without changing layout or hit targets. */
html[data-appearance="frost"] #app :is(#handArea, #publicMarket, #actionPanel) .panel-title,
html[data-appearance="frost"] #app :is(#handArea, #publicMarket) .panel-title small,
html[data-appearance="frost"] #app #actionPanel :is(.reasons, .placehint, #preview) {
  color: #294d60 !important;
  text-shadow: none !important;
}
html[data-appearance="frost"] #app #scorePanel .score-row,
html[data-appearance="frost"] #app :is(#popPanel, #logPanel) {
  background: linear-gradient(145deg, #658b9fef, #35596fee 58%, #294b60f2) !important;
  border: 2px solid #a8cbd5 !important;
  border-image: none !important;
  color: #eefaff !important;
  box-shadow: inset 0 1px 0 #f1ffff91, inset 0 0 0 3px #d5f4fb20, 0 3px 8px #173a4d66 !important;
}
html[data-appearance="frost"] #app #scorePanel .score-row.cur {
  border-color: #e2fbff !important;
  box-shadow: inset 0 0 0 1px #e6ffffa8, 0 0 0 2px #aee9f8a6, 0 0 16px #b1efff85 !important;
}
html[data-appearance="frost"] #app #scorePanel .score-row { position: relative; }
html[data-appearance="frost"] #app #scorePanel .score-row.cur::before,
html[data-appearance="frost"] #app #scorePanel .score-row.cur::after {
  content: "";
  position: absolute;
  width: clamp(20px, 22%, 62px);
  height: 55%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32' fill='none' stroke='%23e5ffff' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 25V11Q2 2 11 2h50M5 20 17 4M6 17l-3-3m5 0 5 0m-3-4-3-3m6 0h4M15 3l8 13m-5-8h5m-3 3 5 1m-2 2 4 1M27 3l8 9m-5-6 4-1m-1 4 4-1m-1 3 4-1M41 3l6 6m-4-4 3-1m-1 3 3-1' stroke-width='1' stroke-opacity='.88'/%3E%3Cpath d='M3 24 6 22M4 13l3-1m-3-2 3-1m3-3 2-2m13 7 2 1m7-5 3-1m12 0 3-1' stroke-width='.7' stroke-opacity='.68'/%3E%3C/svg%3E") left top / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 3;
}
html[data-appearance="frost"] #app #scorePanel .score-row.cur::before { top: -1px; left: -1px; }
html[data-appearance="frost"] #app #scorePanel .score-row.cur::after { right: -1px; bottom: -1px; transform: rotate(180deg); }
html[data-appearance="frost"] #app #scorePanel :is(.nm, .hc, .est, .rank, .rank.first, .tot) {
  color: #edfaff !important;
  text-shadow: 0 1px 2px #173c52 !important;
}
html[data-appearance="frost"] #app #scorePanel .tot { color: #d7f8ff !important; }
html[data-appearance="frost"] #app #scorePanel .hc-mobile { background: #294f63eF !important; }
html[data-appearance="frost"] #app :is(#popPanel, #logPanel) .panel-title,
html[data-appearance="frost"] #app #logPanel :is(#log, #log .sys) {
  color: #e8f8ff !important;
}
html[data-appearance="frost"] #app #logPanel #log { background: transparent !important; border-color: #a4d2e155 !important; }
html[data-appearance="frost"] #app #logToggle {
  background: #315a70 !important;
  border-color: #a8d7e5 !important;
  color: #e5faff !important;
}
html[data-appearance="frost"] #app :is(#btnNew, #btnJournal, #actionPanel .btn:not(.act)) {
  background: linear-gradient(145deg, #e4f6f7, #a9ccd8) !important;
  border-color: #6f9bad !important;
  color: #264b5e !important;
  box-shadow: inset 0 1px #fff, inset 0 -2px #729db566, 0 2px 4px #244a5e55 !important;
}
html[data-appearance="frost"] #app :is(#btnNew, #btnJournal, #actionPanel .btn:not(.act)):hover:not(:disabled) {
  background: linear-gradient(145deg, #f3ffff, #c2e9f2) !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act {
  background: linear-gradient(155deg, #b5e0e9 0%, #649db3 12%, #3b728c 52%, #2a5b74 100%) !important;
  border: 1px solid #bce7ef !important;
  border-radius: 8px !important;
  clip-path: none;
  color: #f3fdff !important;
  filter: none !important;
  box-shadow: inset 0 1px #efffffce, inset 0 -3px #1e49637a, 0 2px 4px #29576c66 !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act .tt {
  text-shadow: 0 1px 2px #1b4b64 !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:not(:disabled):hover {
  background: linear-gradient(155deg, #defaff, #89c9da 18%, #589bb4 55%, #3c728c) !important;
  border-color: #efffff !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act.on {
  box-shadow: inset 0 0 0 3px #e9ffff, inset 0 0 12px #9ee8f8 !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:focus-visible {
  box-shadow: inset 0 0 0 3px #f4ffff !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:disabled {
  background: linear-gradient(155deg, #c1d5d9, #9fb8c0) !important;
  border-color: #c4dce0 !important;
  color: #4b6a76 !important;
  opacity: 1 !important;
  box-shadow: inset 0 1px #e7f5f7, inset 0 -2px #7999a344 !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:disabled .tt { text-shadow: 0 1px #e4f5f6 !important; }
html[data-appearance="frost"] #app #actionPanel .btn.act::before {
  content: "";
  position: absolute;
  left: 3%;
  top: 10%;
  width: auto;
  height: 80%;
  aspect-ratio: 1;
  border: 1px solid #dcfaffbc;
  border-radius: 24%;
  background: var(--frost-glyph) center / 58% 58% no-repeat,
    radial-gradient(circle at 35% 22%, #d7fbff8a, #70b4c878 45%, #22556a9e 100%) !important;
  box-shadow: inset 0 1px 3px #f4ffffa8, inset 0 -2px 3px #214c63a0, 0 1px 2px #224b60aa;
  pointer-events: none;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:disabled::before {
  opacity: .7;
  filter: grayscale(.65);
}
html[data-appearance="frost"] :is(#app #actionPanel, #tutorial) .btn-promotion {
  --frost-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23e4fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h6l14-7v20l-14-7H4zM10 13v6m-2 0 2 7h4l-2-6M27 11l2-2m-2 7h3m-3 5 2 2'/%3E%3C/svg%3E");
}
html[data-appearance="frost"] :is(#app #actionPanel, #tutorial) .btn-development {
  --frost-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' stroke='%23efffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h7l1 5 4 2 4 2c2 1 4 2 6 2 2 1 2 3 1 5H5c-1-2-1-4 0-6l1-4z' fill='%23c9f2f8' fill-opacity='.24'/%3E%3Cpath d='M5 24h23v2H5zM13 14l-2 2m5-1-2 2m5-1-2 2M7 9h5M22 18l-1 3h7' fill='none'/%3E%3C/svg%3E");
}
html[data-appearance="frost"] :is(#app #actionPanel, #tutorial) .btn-draw {
  --frost-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23e4fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 6 19 4l4 21-12 2zM14 7l12 3-4 18-12-3M17 13l6 1m-7 4 6 1m-7 4 5 1'/%3E%3C/svg%3E");
}
html[data-appearance="frost"] :is(#app #actionPanel, #tutorial) .btn-collection {
  --frost-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23e4fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 14h22v12H5zM4 14V9c0-3 24-3 24 0v5zM9 10v16m14-16v16M5 19h8m6 0h8M13 16h6v7h-6z'/%3E%3C/svg%3E");
}
@media (orientation: portrait) {
  html[data-appearance="frost"] #app #actionPanel .btn.act::before { top: 17.5%; height: 65%; }
}
@media (pointer: coarse) and (orientation: landscape) and (min-height: 501px), (orientation: portrait), (max-height: 500px) {
  html[data-appearance="frost"] #app #actionPanel details.reasons summary {
    background: linear-gradient(145deg, #a8dce9, #3c7790) !important;
    border-color: #d7f9ff !important;
  }
  html[data-appearance="frost"] #app #actionPanel details.reasons summary::after {
    background: none !important;
    color: #f3ffff !important;
  }
}
html[data-appearance="frost"] #app #actionPanel .reasons .rsn-list {
  background: #d8edf0 !important;
  border-color: #83b3c2 !important;
  color: #294d60 !important;
}
html[data-appearance="frost"] #app #actionPanel .reasons .rsn-list b { color: #23465a !important; }
html[data-appearance="frost"] #app .ico-hand {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%2393c2d0' stroke='%2337586b' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 9 15 5l7 19-11 4z'/%3E%3Cpath d='M12 5 25 8l-4 19-13-3z' fill='%23d7f1f4'/%3E%3Cpath d='m14 11 7 2m-8 3 7 2m-8 3 5 1' fill='none'/%3E%3C/svg%3E") !important;
}
html[data-appearance="frost"] #app #popPanel .pop-row .pic {
  background: var(--frost-symbol) center / 75% 75% no-repeat, linear-gradient(145deg, var(--frost-pop-light), var(--frost-pop-dark)) !important;
  border: 1px solid #d5f6f5ad;
  border-radius: 50%;
  box-shadow: inset 0 1px 3px #edffffa8, 0 2px 3px #1b425b77;
  filter: none !important;
  transform: scale(.8);
}
html[data-appearance="frost"] #app #popPanel .pop-row {
  background: var(--frost-cracks) center / 100% 100% no-repeat !important;
  box-shadow: none !important;
}
html[data-appearance="frost"] #app #popPanel .pop-row.theme-E {
  --frost-cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 50' preserveAspectRatio='none' fill='none' stroke='%23d8f8ff' stroke-opacity='.18' stroke-width='.8'%3E%3Cpath d='M2 5 26 13 34 22 51 24 78 39M26 13 35 5 50 0M34 22 24 35 15 50M51 24 60 15 75 13M24 35 36 42 39 50'/%3E%3C/svg%3E");
}
html[data-appearance="frost"] #app #popPanel .pop-row.theme-G {
  --frost-cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 50' preserveAspectRatio='none' fill='none' stroke='%23d8f8ff' stroke-opacity='.18' stroke-width='.8'%3E%3Cpath d='M3 42 21 29 38 27 48 16 77 5M21 29 16 19 6 14M38 27 44 38 59 50M48 16 40 7 39 0M44 38 59 35 76 41'/%3E%3C/svg%3E");
}
html[data-appearance="frost"] #app #popPanel .pop-row.theme-T {
  --frost-cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 50' preserveAspectRatio='none' fill='none' stroke='%23d8f8ff' stroke-opacity='.18' stroke-width='.8'%3E%3Cpath d='M5 0 17 10 30 12 41 23 72 26 80 34M17 10 17 20 4 32M30 12 38 4 52 0M41 23 32 35 30 50M58 25 65 15 77 12M32 35 46 41 51 50'/%3E%3C/svg%3E");
}
html[data-appearance="frost"] #app #popPanel .pop-row.theme-R {
  --frost-cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 50' preserveAspectRatio='none' fill='none' stroke='%23d8f8ff' stroke-opacity='.18' stroke-width='.8'%3E%3Cpath d='M0 22 16 19 28 27 43 23 54 30 78 26M16 19 23 8 32 0M28 27 20 38 12 50M43 23 46 10 59 0M54 30 60 42 74 50M46 10 34 6'/%3E%3C/svg%3E");
}
html[data-appearance="frost"] #app #popPanel .theme-E { --frost-symbol: url("../../assets/ui/frost/leaf.svg?v=9910bca6ba"); --frost-pop-light: #83c9af; --frost-pop-dark: #226251; }
html[data-appearance="frost"] #app #popPanel .theme-G { --frost-symbol: url("../../assets/ui/frost/snow.svg?v=51d87e4f25"); --frost-pop-light: #89d3ef; --frost-pop-dark: #2775a3; }
html[data-appearance="frost"] #app #popPanel .theme-R { --frost-symbol: url("../../assets/ui/frost/gear.svg?v=88e4f66a7f"); --frost-pop-light: #bbcbd1; --frost-pop-dark: #536a73; }
html[data-appearance="frost"] #app #popPanel .theme-T { --frost-symbol: url("../../assets/ui/frost/sun.svg?v=50b6f2a278"); --frost-pop-light: #e8d38c; --frost-pop-dark: #a68744; }
html[data-appearance="frost"] #app button:focus-visible { outline: 2px solid #e8ffff !important; outline-offset: 3px; }

/* The settings and lesson screens share the same carved-ice frame. */
html[data-appearance="frost"] :is(#modal.lobby, #tutorial:not(.tu-asking)) {
  background: linear-gradient(#1b354853, #1b35487a), url("../../assets/ui/frost/mountains.webp?v=1d7df83be4") center / cover no-repeat !important;
}
html[data-appearance="frost"] #tutorial.tu-asking { background: #193b4a99 !important; }
html[data-appearance="frost"] :is(#modal.lobby, #tutorial, #learningChoice) {
  --gold: #6b9cad;
  --gold-d: #719eae;
  --ink: #274c5c;
  --ink-on: #123b50;
}
html[data-appearance="frost"] #learningChoice::backdrop { background: #173c4f99; }
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel {
  background: none !important;
  border: 0 !important;
  color: #274c5c !important;
  filter: drop-shadow(0 8px 12px #163c5470) !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-image: none !important;
  border-radius: 12px;
  background: linear-gradient(145deg, #f1fcfcf5, #cce5eaf2 52%, #accdd9f5) !important;
  box-shadow: inset 0 0 0 3px #eaffff, inset 0 0 0 6px #93becd, inset 0 0 24px #649aab66 !important;
  clip-path: none !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 4;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  box-sizing: border-box;
  border: 34px solid transparent;
  background: none !important;
  clip-path: none !important;
  filter: none !important;
  pointer-events: none;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-title {
  z-index: 5;
  border: 1px solid #e6ffff !important;
  border-image: none !important;
  border-radius: 8px !important;
  background: linear-gradient(145deg, #d6f5f8, #8cbccb 46%, #6199ae 47%, #c1e6ec) !important;
  box-shadow: inset 0 1px #fff, inset 0 0 0 3px #d9f9ff88, 0 3px 7px #315e7190 !important;
  filter: none !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-title h2 {
  color: #204e62 !important;
  text-shadow: 0 1px #f1ffff !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial) .lb-row { border-bottom-color: #83b1c255 !important; }
html[data-appearance="frost"] :is(#modal, #tutorial) :is(.lb-label, .lb-r, .lb-extension, .lb-hint, .lb-range-value) { color: #294d60 !important; }
html[data-appearance="frost"] :is(#modal, #tutorial) .lb-ic { color: #4a8298 !important; filter: none !important; }
html[data-appearance="frost"] :is(#modal, #tutorial) :is(.lb-r i, .lb-chk i) {
  border-color: #6899a9 !important;
  background: #e8fafa !important;
  box-shadow: inset 0 1px 3px #769fad55 !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial) .lb-r input:checked + i::after {
  background: radial-gradient(circle at 35% 35%, #b8f2f7, #357b98) !important;
  box-shadow: none !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial) .lb-chk input:checked + i {
  background: linear-gradient(#c6eef4, #74afc1) !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial) .lb-chk input:checked + i::after { border-color: #1b526b !important; }
html[data-appearance="frost"] #modal .lb-range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #9ad9e8, #438aa5 var(--v), #8aa8b2 var(--v)) !important;
}
html[data-appearance="frost"] #modal .lb-range::-webkit-slider-thumb { background: radial-gradient(circle at 35% 35%, #f5ffff, #7cbbcd 70%, #447d96) !important; }
html[data-appearance="frost"] #modal .lb-range::-moz-range-track { background: linear-gradient(90deg, #9ad9e8, #438aa5 var(--v), #8aa8b2 var(--v)) !important; }
html[data-appearance="frost"] #modal .lb-range::-moz-range-thumb { background: radial-gradient(circle at 35% 35%, #f5ffff, #7cbbcd 70%, #447d96) !important; }
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-btn,
html[data-appearance="frost"] #modal.lobby #lobbyFeedback {
  border: 1px solid #c5eff6 !important;
  border-image: none !important;
  border-radius: 8px !important;
  background: linear-gradient(155deg, #9ed1dd, #4c87a0 18%, #2d627b) !important;
  color: #f3fdff !important;
  text-shadow: 0 1px 2px #204a60 !important;
  filter: none !important;
  box-shadow: inset 0 1px #f2ffffcc, inset 0 -2px #1e496377, 0 2px 5px #28566b66 !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-btn::before,
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-btn::after { content: none !important; }
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-btn .lb-ic { color: #dcf9ff !important; }
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-btn:hover:not(:disabled) {
  background: linear-gradient(155deg, #caedf2, #76b8cc 18%, #3b7892) !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-btn:disabled {
  background: #a7c3ca !important;
  color: #52727e !important;
  text-shadow: none !important;
  opacity: .8;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) :is(button, input):focus-visible {
  outline: 2px solid #397d97 !important;
  outline-offset: 3px;
}
html[data-appearance="frost"] #modal .lb-reward-help {
  background: linear-gradient(#a7dce8, #3c7991) !important;
  border-color: #e4ffff !important;
  color: #f6ffff !important;
}
html[data-appearance="frost"] .dialog.new-game-confirm {
  background: linear-gradient(145deg, #effbfb, #b9dbe4) !important;
  border: 2px solid #d5faff !important;
  color: #264b5d !important;
  box-shadow: inset 0 0 0 3px #8fbecb88, 0 8px 24px #173a4d77 !important;
}
html[data-appearance="frost"] .dialog.new-game-confirm :is(h2, p) { color: #264b5d !important; }
html[data-appearance="frost"] .dialog.new-game-confirm .btn {
  background: linear-gradient(155deg, #8ec7d6, #346d86) !important;
  border-color: #d3f8ff !important;
  color: #f1fdff !important;
}

/* Lesson illustrations use the same frosted ice, while keeping their existing geometry. */
html[data-appearance="frost"] #tutorial :is(.tu-scene, .tu-bubble, .tu-say, .tu-tag, .tu-step) {
  background: linear-gradient(145deg, #eaf8f9, #bedde5) !important;
  color: #264b5d !important;
  box-shadow: inset 0 0 0 1px #82afbf, 0 3px 8px #2b5b7044 !important;
}
html[data-appearance="frost"] #tutorial .tu-scene {
  background: linear-gradient(145deg, #d7ecf0, #9dbfcbdc) !important;
}
html[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, .tu-say b, .tu-tag b, .tu-step .tu-sn) {
  color: #28566a !important;
  text-shadow: none !important;
}
html[data-appearance="frost"] #tutorial :is(.tu-sc, .tu-end, .tu-cls, .tu-overflow-choices, .tu-actbtn) {
  background: linear-gradient(145deg, #6ea6b9, #315f76) !important;
  color: #f1fdff !important;
  box-shadow: inset 0 0 0 1px #bde8ef, 0 2px 4px #27546b55 !important;
}
html[data-appearance="frost"] #tutorial :is(.tu-sc b, .tu-sc span, .tu-end b, .tu-endc, .tu-cls b, .tu-overflow-choices p) { color: #f1fdff !important; }
html[data-appearance="frost"] #tutorial :is(.tu-plus, .tu-endop) { color: #346d84 !important; }
html[data-appearance="frost"] #tutorial .tu-say::before { border-right-color: #82afbf !important; }
html[data-appearance="frost"] #tutorial .tu-say::after { border-right-color: #eaf8f9 !important; }
html[data-appearance="frost"] #tutorial .tu-leads line { stroke: #327992; }
html[data-appearance="frost"] #tutorial .tu-leads circle { fill: #d7faff; stroke: #327992; }
html[data-appearance="frost"] #tutorial .tu-pnum { background: linear-gradient(#c5f1f6, #76b3c5); color: #20546a; box-shadow: inset 0 0 0 1px #f6ffff; }
html[data-appearance="frost"] #tutorial .tu-dot { border-color: #5a91a4; background: #d9eff1; }
html[data-appearance="frost"] #tutorial .tu-dot.on { background: #4389a4; border-color: #eaffff; }
html[data-appearance="frost"] #tutorial .tu-actbtn::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 3%;
  width: auto;
  height: 80%;
  aspect-ratio: 1;
  border: 1px solid #dcfaffbc;
  border-radius: 24%;
  background: var(--frost-glyph) center / 58% 58% no-repeat, radial-gradient(circle at 35% 22%, #d7fbff8a, #70b4c878 45%, #22556a9e 100%) !important;
  box-shadow: inset 0 1px 3px #f4ffffa8, inset 0 -2px 3px #214c63a0;
}
html[data-appearance="frost"] #tutorial .tu-tile {
  --ice-light: #71bda1;
  --ice-dark: #145844;
  --ice-icon: url("../../assets/ui/frost/leaf.svg?v=9910bca6ba");
  background: none !important;
  filter: none !important;
}
html[data-appearance="frost"] #tutorial .tu-tile.theme-G { --ice-light: #57b9ed; --ice-dark: #126aaf; --ice-icon: url("../../assets/ui/frost/snow.svg?v=51d87e4f25"); }
html[data-appearance="frost"] #tutorial .tu-tile.theme-R { --ice-light: #a3a3a3; --ice-dark: #494949; --ice-icon: url("../../assets/ui/frost/gear.svg?v=88e4f66a7f"); }
html[data-appearance="frost"] #tutorial .tu-tile.theme-T { --ice-light: #f8de81; --ice-dark: #c59128; --ice-icon: url("../../assets/ui/frost/sun.svg?v=50b6f2a278"); }
html[data-appearance="frost"] #tutorial .tu-tile::before {
  content: "";
  position: absolute;
  inset: 5% 3% 3%;
  background: url("../../assets/ui/frost/ice.svg?v=dbb0d57008") center / 100% 100% no-repeat;
}
html[data-appearance="frost"] #tutorial .tu-tile::after {
  content: "";
  position: absolute;
  inset: 11% 10% 32%;
  clip-path: polygon(5% 16%, 19% 5%, 68% 0, 89% 8%, 95% 22%, 100% 73%, 86% 85%, 19% 88%, 0 80%);
  background: var(--ice-icon) center 48% / 44% 55% no-repeat, url("../../assets/ui/frost/ice-surface.svg?v=303f8a1362") center / 130% 130% no-repeat, linear-gradient(150deg, var(--ice-light), var(--ice-dark));
}
html[data-appearance="frost"] #tutorial .tu-tile.tu-start::before { inset: -25% -10% -15%; background-image: url("../../assets/ui/frost/stone.svg?v=2696f061f3"); }
html[data-appearance="frost"] #tutorial .tu-tile.tu-start::after { display: none; }
html[data-appearance="frost"] #tutorial .tu-num { z-index: 2; color: #507781 !important; text-shadow: 0 1px #eaffff !important; }
html[data-appearance="frost"] #tutorial .tu-rail {
  background: linear-gradient(90deg, transparent, #7aafc088 12%, #a9d8e099 85%, transparent) !important;
  border-radius: 50%;
  box-shadow: none !important;
  filter: none !important;
}
html[data-appearance="frost"] #tutorial .tu-ticon {
  background: var(--frost-symbol) center / 75% 75% no-repeat, linear-gradient(145deg, var(--frost-pop-light), var(--frost-pop-dark)) !important;
  box-shadow: inset 0 0 0 1px #dbffff99;
}
html[data-appearance="frost"] #tutorial .tu-ticon.theme-E { --frost-symbol: url("../../assets/ui/frost/leaf.svg?v=9910bca6ba"); --frost-pop-light: #83c9af; --frost-pop-dark: #226251; }
html[data-appearance="frost"] #tutorial .tu-ticon.theme-G { --frost-symbol: url("../../assets/ui/frost/snow.svg?v=51d87e4f25"); --frost-pop-light: #89d3ef; --frost-pop-dark: #2775a3; }
html[data-appearance="frost"] #tutorial .tu-ticon.theme-T { --frost-symbol: url("../../assets/ui/frost/sun.svg?v=50b6f2a278"); --frost-pop-light: #e8d38c; --frost-pop-dark: #a68744; }
html[data-appearance="frost"] #tutorial .tu-ticon.theme-R { --frost-symbol: url("../../assets/ui/frost/gear.svg?v=88e4f66a7f"); --frost-pop-light: #bbcbd1; --frost-pop-dark: #536a73; }
html[data-appearance="frost"] #tutorial :is(.tu-sc-match.tu-sc-ic, .tu-sc-match .tu-sc-ic) {
  background: url("../../assets/ui/frost/leaf.svg?v=9910bca6ba") center / 65% 65% no-repeat, linear-gradient(145deg, #85ccb0, #32735e) !important;
  box-shadow: inset 0 0 0 1px #d5f6f5ad;
}
html[data-appearance="frost"] .tu-tip {
  background: linear-gradient(#ecfafa, #c2e1e7) !important;
  color: #264b5d !important;
  box-shadow: 0 6px 18px #204a5d77, inset 0 0 0 2px #93c5d3 !important;
}
html[data-appearance="frost"] .tu-tip-ok {
  background: linear-gradient(#79b5c8, #346d86) !important;
  color: #f1fdff !important;
  box-shadow: inset 0 0 0 1px #d3f8ff !important;
}
html[data-appearance="frost"] .tu-tip-arrow { background: #e4f6f7 !important; box-shadow: 2px 2px 0 #93c5d3 !important; }
html[data-appearance="frost"] .tu-tip[data-side="below"] .tu-tip-arrow { box-shadow: -2px -2px 0 #93c5d3 !important; }
html[data-appearance="frost"] .tu-tip[data-side="right"] .tu-tip-arrow { box-shadow: -2px 2px 0 #93c5d3 !important; }
html[data-appearance="frost"] .tu-tip[data-side="left"] .tu-tip-arrow { box-shadow: 2px -2px 0 #93c5d3 !important; }

/* Snow rests on the panel; the cut-glass frame and corner medallions stay inside its bounds. */
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel::before {
  background: url("../../assets/ui/frost/snowcap.svg?v=354259ae23") center top / 100% 28px no-repeat,
    linear-gradient(145deg, #f1fcfcf5, #cce5eaf2 52%, #accdd9f5) !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel::after {
  inset: 0;
  border-width: 42px;
  border-image: url("../../assets/ui/frost/ice-frame.svg?v=6a39647bf6") 72 / 42px stretch !important;
  background: url("../../assets/ui/frost/snowcap.svg?v=354259ae23") center top / 100% 36px no-repeat !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-title {
  width: auto !important;
  min-width: clamp(150px, calc(360 * var(--s)), 210px) !important;
  height: clamp(40px, calc(100 * var(--s)), 56px) !important;
  top: -22px !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("../../assets/ui/frost/snow-slab.svg?v=0a5a32d5c0") center / 100% 100% no-repeat !important;
  box-shadow: none !important;
  filter: drop-shadow(0 3px 4px #25495d66) !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-title h2 {
  color: #eefcff !important;
  text-shadow: 0 1px 2px #294b5d !important;
  transform: translateY(4px);
}
html[data-appearance="frost"] #learningChoice {
  width: min(584px, calc(100vw - 16px));
  box-sizing: border-box;
  padding: 36px 12px 12px;
}
html[data-appearance="frost"] #learningChoice .lb-panel {
  width: 100%;
  box-sizing: border-box;
  padding: 48px 28px 28px;
}
html[data-appearance="frost"] #learningChoice .lb-title {
  min-width: 160px !important;
  height: 46px !important;
  top: -22px !important;
}
@media (max-width: 360px) {
  html[data-appearance="frost"][lang="en"] #learningChoice .lb-btns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Snow banks sit above the frame; larger crystal corners project past its edge. */
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel {
  background: linear-gradient(145deg, #f1fcfcf5, #cce5eaf2 52%, #accdd9f5) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 24px #649aab66 !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel::before {
  inset: -8px 12px auto;
  height: 55px;
  z-index: 5;
  border: 0;
  border-radius: 0;
  background: url("../../assets/ui/frost/snowcap.svg?v=354259ae23") center top / 100% 100% no-repeat !important;
  box-shadow: none !important;
  pointer-events: none;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel::after {
  inset: -18px;
  border-width: 60px;
  border-image: url("../../assets/ui/frost/ice-frame.svg?v=6a39647bf6") 72 / 60px stretch !important;
  background: none !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-title { z-index: 6; }
html[data-appearance="frost"] #learningChoice {
  padding: 46px 24px 24px;
}

/* Sample the stone from the center of the title slab, preserving button geometry. */
html[data-appearance="frost"] :is(#app, #modal, #tutorial, #learningChoice, .new-game-confirm) :is(.btn, .lb-btn, #lobbyFeedback, .tu-tip-ok) {
  background: url("../../assets/ui/frost/snow-slab.svg?v=0a5a32d5c0") center 68% / 160% 220% no-repeat !important;
  border: 1px solid #c9e8ed !important;
  border-radius: 8px !important;
  color: #f3fdff !important;
  text-shadow: 0 1px 2px #294b5d !important;
  box-shadow: inset 0 1px #efffffc9, inset 0 -2px #25495d77, 0 2px 5px #28566b66 !important;
}
html[data-appearance="frost"] :is(#app, #modal, #tutorial, #learningChoice, .new-game-confirm) :is(.btn, .lb-btn, #lobbyFeedback, .tu-tip-ok):hover:not(:disabled) {
  filter: brightness(1.13) !important;
}
html[data-appearance="frost"] :is(#app, #modal, #tutorial, #learningChoice, .new-game-confirm) :is(.btn, .lb-btn, #lobbyFeedback, .tu-tip-ok):disabled {
  filter: grayscale(.55) brightness(1.15) !important;
  opacity: .7 !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act.on {
  box-shadow: inset 0 0 0 3px #e9ffff, inset 0 0 12px #9ee8f8 !important;
}
html[data-appearance="frost"] #modal.lobby #lobbyFeedback {
  background: url("../../assets/ui/frost/snow-slab.svg?v=0a5a32d5c0") center 68% / 160% 220% no-repeat !important;
}
html[data-appearance="frost"] #app :is(#btnNew, #btnJournal, #logToggle, #actionPanel .btn),
html[data-appearance="frost"] #app :is(#btnNew, #btnJournal, #actionPanel .btn:not(.act)),
html[data-appearance="frost"] #app #actionPanel .btn.act,
html[data-appearance="frost"] .tu-tip-ok {
  background: url("../../assets/ui/frost/snow-slab.svg?v=0a5a32d5c0") center 68% / 160% 220% no-repeat !important;
  color: #f3fdff !important;
  border-color: #c9e8ed !important;
  text-shadow: 0 1px 2px #294b5d !important;
}
html[data-appearance="frost"] #app :is(#btnNew, #btnJournal, #logToggle, #actionPanel .btn):hover:not(:disabled),
html[data-appearance="frost"] #app :is(#btnNew, #btnJournal, #actionPanel .btn:not(.act)):hover:not(:disabled),
html[data-appearance="frost"] #app #actionPanel .btn.act:hover:not(:disabled) {
  background: url("../../assets/ui/frost/snow-slab.svg?v=0a5a32d5c0") center 68% / 160% 220% no-repeat !important;
  filter: brightness(1.13) !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:not(:disabled),
html[data-appearance="frost"] #app #actionPanel .btn.act:hover:not(:disabled) {
  background: linear-gradient(#163d5470, #163d5470),
    url("../../assets/ui/frost/snow-slab.svg?v=0a5a32d5c0") center 68% / 160% 220% no-repeat !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:disabled {
  background: linear-gradient(155deg, #dce7e9, #b5c8cd) !important;
  border-color: #9eb4bb !important;
  color: #344f5b !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: inset 0 1px #eff7f8, inset 0 -1px #8aa2aa80 !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:disabled .tt {
  text-shadow: 0 1px #edf5f6 !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.act:disabled::before {
  background: var(--frost-glyph) center / 58% 58% no-repeat,
    linear-gradient(#96abb1, #718b94) !important;
  border-color: #aabec3;
  box-shadow: inset 0 1px #dce8eacc;
  filter: grayscale(.8);
  opacity: 1;
}
@media (max-width: 600px) {
  html[data-appearance="frost"] :is(#modal, #tutorial) .lb-panel::after {
    inset: -8px;
    border-width: 50px;
    border-image: url("../../assets/ui/frost/ice-frame.svg?v=6a39647bf6") 72 / 50px stretch !important;
  }
}

/* Keep dark text crisp and legible against a lighter stone surface. */
html[data-appearance="frost"] #app :is(#btnNew, #btnJournal, #actionPanel .btn:not(.act)),
html[data-appearance="frost"] #app :is(#btnNew, #btnJournal, #actionPanel .btn:not(.act)):hover:not(:disabled) {
  background: linear-gradient(#e4f6f7c9, #cce5e9c9),
    url("../../assets/ui/frost/snow-slab.svg?v=0a5a32d5c0") center 68% / 160% 220% no-repeat !important;
  color: #173c4e !important;
  text-shadow: none !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.secondary:not(.act):not(:disabled),
html[data-appearance="frost"] #app #actionPanel .btn.secondary:not(.act):hover:not(:disabled) {
  background: linear-gradient(145deg, #a3d8e6, #7bbacc) !important;
  border-color: #5b97aa !important;
  color: #153f52 !important;
  box-shadow: inset 0 1px #efffff, inset 0 -2px #4e8ca180, 0 2px 4px #28566b66 !important;
}
html[data-appearance="frost"] #app #actionPanel .btn.primary:not(.act):not(:disabled),
html[data-appearance="frost"] #app #actionPanel .btn.primary:not(.act):hover:not(:disabled) {
  background: linear-gradient(145deg, #39768a, #1d5068) !important;
  border-color: #b7e5ed !important;
  color: #f3fdff !important;
  text-shadow: 0 1px 2px #16394d !important;
}
html[data-appearance="frost"] #app #actionPanel #btnUndo:not(:disabled),
html[data-appearance="frost"] #app #actionPanel #btnUndo:hover:not(:disabled) {
  background: linear-gradient(145deg, #98575b, #693b43) !important;
  border-color: #e0b7b7 !important;
  color: #fff7f6 !important;
  text-shadow: 0 1px 2px #46242a !important;
}
html[data-appearance="frost"] #app #actionPanel .btn:not(.act):disabled {
  background: linear-gradient(155deg, #dce7e9, #b5c8cd) !important;
  border-color: #9eb4bb !important;
  border-style: dashed !important;
  color: #344f5b !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
html[data-appearance="frost"] #app #actionPanel #actions.reward-controls .reward-footer .btn {
  min-width: 40px;
  min-height: 40px;
  padding: 2px;
  overflow-wrap: anywhere;
}
html[data-appearance="frost"] #app #actionPanel #actions.reward-controls {
  min-height: 0;
  overflow-y: auto;
}
html[data-appearance="frost"] #app #actionPanel #actions.reward-controls > .btn-row .btn {
  overflow-wrap: anywhere;
}
@media (orientation: landscape) and (min-height: 501px) and (max-height: 700px) and (max-width: 1200px) {
  html[data-appearance="frost"] #app #actionPanel #actions.reward-controls > .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
  }
  html[data-appearance="frost"] #app #actionPanel #actions.reward-controls > .btn-row .btn {
    width: 100%;
    min-width: 40px;
    min-height: 40px;
    padding: 2px;
    font-size: 11px;
  }
}

/* Frost reward artwork replaces the existing art without changing the controls. */

html[data-appearance="frost"] #app #rewardPanel {
  background: url("../../assets/ui/frost/snowcap.svg?v=354259ae23") center top / 100% 18px no-repeat,
    linear-gradient(145deg, #e1f3f5ef, #abcdd8ef) !important;
  border: 2px solid #91bdca !important;
  border-radius: 9px !important;
  box-shadow: inset 0 0 0 2px #eaffffb8, inset 0 0 12px #80b4c177, 0 3px 8px #173a4d55 !important;
  color: #173e52 !important;
}
html[data-appearance="frost"] #rewardPanel .reward-info {
  border: 1px solid #d5faff !important;
  background: radial-gradient(circle at 35% 25%, #beeaf3, #508da4 52%, #2d617a) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 2px #fff9, 0 2px 4px #315b6d66;
}
html[data-appearance="frost"] #rewardPanel .reward-token {
  --reward-glow: #8ddcf0aa;
  --reward-ink: #173c4e;
  background: linear-gradient(145deg, #f1fbfbea, #a4cbd7ed) !important;
  border: 1px solid #6c9eb0 !important;
  color: var(--reward-ink) !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px #fff, inset 0 -2px #83afbe66, 0 2px 4px #28566b44 !important;
}
html[data-appearance="frost"] #rewardPanel .reward-token.ready {
  background: linear-gradient(145deg, #efffff, #b5e3ee) !important;
  border-color: #3c8fab !important;
  box-shadow: inset 0 0 0 1px #fff, 0 0 8px var(--reward-glow) !important;
  animation: none;
}
html[data-appearance="frost"] #rewardPanel .reward-token.ready::after {
  background: #e8ffff;
  box-shadow: 0 0 0 1px #5ca9bc, 0 0 6px #8ddcf0;
}
html[data-appearance="frost"] #rewardPanel .reward-token.ready:not(.selected)::after {
  animation: frost-reward-beacon 2.4s ease-in-out infinite;
}
html[data-appearance="frost"] #rewardPanel .reward-rack.is-static .reward-token.ready::after { animation: none; }
html[data-appearance="frost"] #rewardPanel .reward-token.selected {
  outline-color: #357f9a !important;
  background: linear-gradient(145deg, #f8ffff, #9bd6e5) !important;
}
html[data-appearance="frost"] #rewardPanel .reward-token:not(:disabled):hover { border-color: #367f99 !important; }
html[data-appearance="frost"] #rewardPanel :is(.reward-token, .reward-info):focus-visible {
  outline-color: #286d89 !important;
}
@keyframes frost-reward-beacon {
  50% { box-shadow: 0 0 0 2px #a5eaff, 0 0 10px 3px #86d8ed; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-appearance="frost"] #rewardPanel .reward-token.ready::after { animation: none; }
}
html[data-appearance="frost"] .reward-setup-option {
  color: #234b60;
  border-color: #87b7c5;
  background: linear-gradient(145deg, #f1fbfb, #c0dfe6);
}
html[data-appearance="frost"] .reward-setup-option[aria-pressed="true"] {
  background: linear-gradient(145deg, #f4ffff, #a4d8e6);
  border-color: #438ca5;
  box-shadow: inset 0 0 0 2px #6cb5ca;
}
html[data-appearance="frost"] .reward-setup-option:focus-visible { outline-color: #286d89; }
html[data-appearance="frost"] #modal .reward-setup-option:focus-visible,
html[data-appearance="frost"] .ol-reward-settings .reward-setup-option:focus-visible {
  outline: 2px solid #286d89 !important;
  outline-offset: -5px !important;
}

html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel::after {
  border-image: url("../../assets/ui/frost/ice-frame-crystal.webp?v=17e39e8a5d") 144 / 60px stretch !important;
  background: none !important;
}
html[data-appearance="frost"] :is(#modal, #tutorial, #learningChoice) .lb-panel::before {
  inset: -18px -18px auto;
  height: 75px;
  background:
    url("../../assets/ui/frost/crystal-tl.webp?v=58cb48e02d") left top / 60px 60px no-repeat,
    url("../../assets/ui/frost/crystal-tr.webp?v=57990070bd") right top / 60px 60px no-repeat,
    url("../../assets/ui/frost/snowcap.svg?v=354259ae23") center 10px / calc(100% - 60px) 55px no-repeat !important;
}
@media (max-width: 600px) {
  html[data-appearance="frost"] :is(#modal, #tutorial) .lb-panel::after {
    border-image: url("../../assets/ui/frost/ice-frame-crystal.webp?v=17e39e8a5d") 144 / 50px stretch !important;
  }
  html[data-appearance="frost"] :is(#modal, #tutorial) .lb-panel::before {
    inset: -8px -8px auto;
    height: 55px;
    background:
      url("../../assets/ui/frost/crystal-tl.webp?v=58cb48e02d") left top / 50px 50px no-repeat,
      url("../../assets/ui/frost/crystal-tr.webp?v=57990070bd") right top / 50px 50px no-repeat,
      url("../../assets/ui/frost/snowcap.svg?v=354259ae23") center top / calc(100% - 40px) 55px no-repeat !important;
  }
}

@media (orientation: portrait) and (max-width: 650px) {
  html[data-appearance="frost"] #modal.lobby:not(.ol) .lb-panel {
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 36px;
  }
  html[data-appearance="frost"] #modal.lobby:not(.ol) .lb-panel::after {
    inset: -6px;
    border-width: 32px;
    border-image: url("../../assets/ui/frost/ice-frame-crystal.webp?v=17e39e8a5d") 144 / 32px stretch !important;
  }
  html[data-appearance="frost"] #modal.lobby:not(.ol) .lb-panel::before {
    inset: -6px -6px auto;
    height: 48px;
    background:
      url("../../assets/ui/frost/crystal-tl.webp?v=58cb48e02d") left top / 32px 32px no-repeat,
      url("../../assets/ui/frost/crystal-tr.webp?v=57990070bd") right top / 32px 32px no-repeat,
      url("../../assets/ui/frost/snowcap.svg?v=354259ae23") center top / calc(100% - 32px) 48px no-repeat !important;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  html[data-appearance="frost"] #modal.lobby:not(.ol) .lb-panel {
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 28px;
  }
  html[data-appearance="frost"] #modal.lobby:not(.ol) .lb-panel::after {
    inset: -6px;
    border-width: 32px;
    border-image: url("../../assets/ui/frost/ice-frame-crystal.webp?v=17e39e8a5d") 144 / 32px stretch !important;
  }
  html[data-appearance="frost"] #modal.lobby:not(.ol) .lb-panel::before {
    inset: -6px -6px auto;
    height: 48px;
    background:
      url("../../assets/ui/frost/crystal-tl.webp?v=58cb48e02d") left top / 32px 32px no-repeat,
      url("../../assets/ui/frost/crystal-tr.webp?v=57990070bd") right top / 32px 32px no-repeat,
      url("../../assets/ui/frost/snowcap.svg?v=354259ae23") center top / calc(100% - 32px) 48px no-repeat !important;
  }
}
