html.source-page { color-scheme: light; }
#bt-stage {
  --ink: #25263e;
  --gold: #ffd43b;
  --paper: #fff6de;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--bt-scale, 1));
  width: 1080px;
  height: 1920px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 43px 50px 28px;
  color: #fffaf0;
  font: 900 27px/1.15 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#bt-stage, #bt-stage * { box-sizing: border-box; }
#bt-stage :is(p,h1,h2) { margin: 0; }
#bt-stage [hidden] { display: none !important; }
#bt-header { flex: none; }
.bt-mast, .bt-legend-title { display: flex; align-items: center; gap: 17px; }
.bt-mast { font-size: 26px; letter-spacing: 4px; text-transform: uppercase; }
.bt-mast i { color: var(--gold); font-size: 38px; font-style: normal; line-height: 1; }
.bt-mast b, .bt-legend-title i { flex: 1; height: 4px; background: var(--gold); border: 1px solid var(--ink); }
#bt-round { color: #ffe594; }
#bt-stage h1 {
  font-size: 126px;
  line-height: 1;
  letter-spacing: -7.7px;
  -webkit-text-stroke: 8px var(--ink);
  padding-block: 5px;
  white-space: nowrap;
}
#bt-stage h1 em { color: var(--gold); }
#bt-stage h1 svg { width: 75px; height: 65px; margin-left: 11px; vertical-align: .12em; }
#bt-connection { flex: none; }
#bt-connection:empty, #bt-connection:has(.preview-status), #bt-connection:has(.tt-core-notice[hidden]) { display: none; }
#bt-connection .tt-core-overlay-status { position: static; transform: none; width: 100%; margin: 0; text-align: left; }
#bt-connection .tt-core-pill { display: none !important; }
#bt-connection .tt-core-notice {
  color: #fffbef;
  background: transparent;
  border: 3px solid #d5ac63;
  border-radius: 15px;
  box-shadow: none;
  padding: 12px 23px 15px;
  margin: 0;
  font: 900 21px/1.24 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#bt-connection .tt-core-notice strong { font-size: 25px; }
#bt-connection .tt-core-notice a { color: #ffe397; }
#bt-connection .tt-game-page-link { display: block; margin-top: 5px; }
#bt-playfield { position: relative; flex: 1 1 0; min-height: 0; }
#bt-scene {
  display: block;
  overflow: visible;
  width: 100%;
  height: 100%;
  --pine-high: #61bf96;
  --pine-body: #298a72;
  --pine-mid: #196956;
  --pine-deep: #104c49;
  --pine-edge: #1d4946;
  --pine-lip: #9ad4b0;
}
#bt-scene[data-theme="snowy"] {
  --pine-high: #ffffff; --pine-body: #d8f0e8; --pine-mid: #a5d4ce;
  --pine-deep: #72a3a4; --pine-edge: #587d81; --pine-lip: #fffef1;
}
#bt-scene[data-theme="gold"] {
  --pine-high: #fff1a6; --pine-body: #f0c569; --pine-mid: #cb953f;
  --pine-deep: #a5753b; --pine-edge: #805c3d; --pine-lip: #ffecb2;
}
.bt-sway { transform-origin: 480px 858px; animation: bt-sway 6.2s ease-in-out infinite alternate; }
#bt-stage[data-motion="reduced"] :is(.bt-sway,.bt-flurry,.bt-tree-light) { animation: none; }
#bt-stage[data-motion="reduced"] #bt-scene[data-lit="true"] .bt-tree-light { opacity: .9; }
@keyframes bt-sway { from { transform: rotate(-.45deg); } to { transform: rotate(.45deg); } }
.bt-flurry { animation: bt-drift var(--fall) ease-in-out infinite; animation-delay: var(--delay); }
@keyframes bt-drift {
  0% { opacity: 0; transform: translate(0,-26px); }
  24% { opacity: .9; }
  75% { opacity: .85; }
  100% { opacity: 0; transform: translate(21px,39px); }
}
.bt-star-halo { opacity: .23; }
#bt-scene[data-lit="true"] .bt-star-halo { opacity: 1; }
#bt-scene[data-lit="true"] #bt-star-faces { filter: drop-shadow(0 0 12px #ffd36a); }
.bt-tree-light { opacity: 0; }
#bt-scene[data-lit="true"] .bt-tree-light { animation: bt-twinkle 1.4s ease-in-out infinite alternate; animation-delay: var(--delay); }
@keyframes bt-twinkle { from { opacity: .19; } to { opacity: 1; } }
.bt-ornament-name, .bt-initials {
  font: 900 23px/1 Inter, "Segoe UI", Arial, sans-serif;
  text-anchor: middle;
  fill: #25263e;
  -webkit-text-stroke: 0;
}
.bt-initials { fill: #fff9e8; stroke: #6c3a54; stroke-width: 3px; paint-order: stroke fill; font-size: 33px; }
#bt-floater text { fill: #25263e; -webkit-text-stroke: 0; }
.bt-tag-name { font: 900 39px/1 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -.9px; }
.bt-tag-detail { font: 800 22px/1 Inter, "Segoe UI", Arial, sans-serif; }
.bt-status {
  position: relative;
  flex: none;
  padding: 20px 29px 22px;
  color: #25263e;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 23px;
  box-shadow: 0 6px 0 #d99b63, 0 9px 0 var(--ink);
  -webkit-text-stroke: 0;
}
.bt-status::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid #e4c699;
  border-radius: 14px;
  pointer-events: none;
}
.bt-status-top, .bt-meter-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
#bt-prompt { font-size: 45px; letter-spacing: -1.9px; line-height: 1.15; overflow-wrap: anywhere; }
#bt-count { font-size: 21px; flex: none; }
#bt-instruction { font-size: 24px; font-weight: 650; margin-top: 4px !important; }
.bt-meter-label { margin-top: 17px; margin-bottom: 7px; }
.bt-meter-label strong { text-transform: uppercase; font-size: 19px; letter-spacing: 2.3px; }
#bt-total { font-size: 24px; font-variant-numeric: tabular-nums; }
.bt-track { border: 2px solid #53534c; border-radius: 20px; background: #eadac0; height: 20px; overflow: hidden; }
#bt-fill { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: repeating-linear-gradient(125deg, #ffcc50 0 17px, #ffe68b 17px 23px); transition: transform .3s ease-out; }
.bt-status[data-lit="true"] { background: #ffeab0; }
.bt-legend-title { text-transform: uppercase; font-size: 25px; letter-spacing: 3.1px; }
.bt-legend-title b { color: var(--gold); font-size: 29px; line-height: .9; }
#bt-legend { padding-top: 7px; }
#bt-gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 17px; margin-top: 13px; }
.bt-gift {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px 11px 12px 0;
  border-top: 3px solid var(--accent);
}
.bt-gift img, .bt-gift svg { width: 56px; height: 56px; object-fit: contain; }
.bt-gift-copy { min-width: 0; }
.bt-gift-copy > div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.bt-gift strong { font-size: 30px; letter-spacing: -.6px; min-width: 0; }
.bt-gift b { color: #ffe27b; font-size: 22px; flex: none; }
.bt-gift p { margin-top: 3px !important; font-size: 20px; }
.bt-gift strong, .bt-gift p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#bt-stage footer { flex: none; text-align: center; font-size: 19px; letter-spacing: .6px; }
@media (prefers-reduced-motion: reduce) {
  .bt-sway, .bt-flurry, #bt-scene[data-lit="true"] .bt-tree-light { animation: none; }
  #bt-scene[data-lit="true"] .bt-tree-light { opacity: .9; }
}
