.source-page #wd-stage {
  --ink: #25263e;
  --gold: #ffd43b;
  --paper: #fff8e9;
  --blossom: #f5c5be;
  --leaf: #aac8a9;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  padding: 35px 40px 22px;
  transform: translate(-50%,-50%) scale(var(--wd-scale, 1));
  display: flex;
  flex-direction: column;
  gap: 17px;
  overflow: hidden;
  color: #fff;
  font: 900 26px/1.15 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}
[data-theme="sage"] #wd-stage, #wd-stage[data-theme="sage"] { --blossom: #bed8c3; --leaf: #92c7bc; }
[data-theme="lilac"] #wd-stage, #wd-stage[data-theme="lilac"] { --blossom: #d9c5e6; --leaf: #acbdde; }
#wd-stage, #wd-stage *, #wd-stage *::before, #wd-stage *::after { box-sizing: border-box; }
#wd-stage > :not(#wd-playfield) { flex: none; }
#wd-stage :is(h1,h2,p,ol) { margin: 0; }
#wd-stage [hidden] { display: none !important; }
#wd-stage :is(.wd-programme,.wd-invitation,.wd-party,.wd-gift,.wd-clock) {
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.wd-imprint, .wd-legend-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: 4.5px;
}
.wd-imprint i, .wd-legend-head i {
  position: relative;
  height: 5px;
  flex: 1;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--gold);
}
.wd-imprint i::after, .wd-legend-head i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--gold);
  border: 2px solid var(--ink);
}
.wd-imprint i:last-child::after, .wd-legend-head i:last-child::after { left: 5px; right: auto; }
.wd-title-row { display: flex; align-items: center; gap: 16px; padding-block: 14px 17px; }
.wd-seal { width: 96px; height: 96px; flex: none; transform: rotate(-6deg); }
#wd-stage h1 {
  flex: 1;
  white-space: nowrap;
  color: #fff;
  font-weight: 900;
  font-size: 99px;
  letter-spacing: -6px;
  line-height: 1.03;
  -webkit-text-stroke: 7px var(--ink);
  text-shadow: 0 5px 0 var(--ink);
}
#wd-stage h1 em { color: var(--gold); font-weight: 900; }
.wd-clock {
  min-width: 164px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  padding: 10px 15px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: inset 0 0 0 4px var(--blossom), 0 4px 0 var(--ink);
}
#wd-clock { font-size: 42px; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; }
#wd-phase { font-size: 19px; letter-spacing: .8px; text-transform: uppercase; }
.wd-programme {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  padding: 4px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: var(--paper);
}
.wd-programme li { position: relative; text-align: center; padding: 9px 8px; font-size: 23px; border-radius: 24px; }
.wd-programme li:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; border-left: 2px dotted #b99f8b; }
.wd-programme li:is(.is-current,[aria-current="step"]) {
  background: var(--blossom);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.wd-programme li:is(.is-current,[aria-current="step"])::before,
.wd-programme li:is(.is-current,[aria-current="step"]) + li::before { display: none; }
#wd-playfield {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 31px;
  box-shadow: 0 5px 0 var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(124deg,transparent 0 13px,#e8d0af55 13px 15px);
}
#wd-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wd-invitation {
  min-height: 127px;
  display: flex;
  align-items: stretch;
  border-radius: 20px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
}
.wd-invitation-flower {
  flex: 0 0 90px;
  display: grid;
  place-items: center;
  background: var(--blossom);
  border-radius: 16px 0 0 16px;
  border-right: 3px dotted #9c806e;
}
.wd-invitation-flower svg { width: 66px; transform: rotate(-12deg); }
.wd-invitation-flower img { width: 70px; height: 70px; object-fit: contain; }
.wd-invitation-flower:has(img) svg { display: none; }
.wd-message, #wd-floater {
  flex: 1;
  min-width: 0;
  align-self: center;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-wrap: anywhere;
}
#wd-cue, #wd-sender { font-size: 40px; line-height: 1.12; letter-spacing: -1.55px; }
#wd-detail { font-size: 25px; line-height: 1.23; font-weight: 700; }
.wd-invitation:has(#wd-floater:not([hidden])) { background: #fff1bf; }
.wd-invitation:has(#wd-floater:not([hidden])) .wd-invitation-flower { background: var(--gold); }
.wd-invitation:has(#wd-floater:not([hidden])) .wd-message { display: none; }
#wd-effect { font-size: 23px; text-transform: uppercase; letter-spacing: 1.3px; }
#wd-sender { font-weight: 900; }
.wd-party {
  padding: 15px 24px 17px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
}
.wd-meter-top, .wd-meter-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wd-meter-top h2 { font-size: 30px; letter-spacing: -1px; }
#wd-count { font-size: 23px; font-weight: 750; }
.wd-meter-bottom { margin-top: 3px; }
.wd-track { flex: 1; height: 23px; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px; background: #e9dbc5; }
#wd-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(-50deg,var(--gold) 0 18px,#ffe786 18px 28px);
  transition: width .28s ease-out;
}
.wd-meter-bottom strong { min-width: 108px; text-align: right; font-size: 22px; white-space: nowrap; }
#wd-points { font-size: 31px; font-variant-numeric: tabular-nums; }
.wd-legend-head { margin: 2px 0 10px; font-size: 22px; letter-spacing: 3px; }
.wd-legend-head h2 { font: inherit; color: var(--gold); }
#wd-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 14px; }
.wd-gift {
  min-height: 84px;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 12px;
  padding: 10px 15px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 17px;
}
.wd-gift img { grid-column: 1; grid-row: 1 / 3; width: 52px; height: 52px; object-fit: contain; }
.wd-gift b, .wd-gift span { grid-column: 2; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-gift b { grid-row: 1; font-size: 26px; line-height: 1.17; letter-spacing: -.6px; }
.wd-gift span { grid-row: 2; font-size: 21px; font-weight: 675; line-height: 1.25; }
.wd-gift small {
  grid-column: 3; grid-row: 1 / 3; justify-self: end;
  padding: 6px 8px;
  border: 2px solid var(--ink);
  border-radius: 11px;
  background: var(--blossom);
  font-size: 20px;
  letter-spacing: -.45px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wd-gift:nth-child(2) small { background: #c9e3db; }
.wd-gift:nth-child(3) small { background: #fbd8ae; }
.wd-gift:nth-child(4) small { background: var(--gold); }
[data-tt-gift-icons="off"] .wd-gift img { display: none; }
.wd-gift:not(:has(img)), [data-tt-gift-icons="off"] .wd-gift { grid-template-columns: 0 minmax(0,1fr) auto; }
#wd-connection:empty, #wd-connection:has(.tt-core-notice[hidden]), #wd-connection:has(.preview-status) { display: none; }
#wd-connection .tt-core-overlay-status {
  position: static;
  width: 100%;
  transform: none;
  z-index: auto;
  margin: 0;
  text-align: left;
}
#wd-connection .tt-core-pill { display: none !important; }
#wd-connection .tt-core-notice {
  margin: 0;
  padding: 11px 21px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: inset 7px 0 0 var(--gold);
  color: var(--ink);
  -webkit-text-stroke: 0;
  font: 675 21px/1.24 Inter, "Segoe UI", Arial, sans-serif;
}
#wd-connection .tt-core-notice strong { color: var(--ink); font-size: 23px; font-weight: 900; }
#wd-connection .tt-core-notice a { color: var(--ink); font-weight: 800; text-decoration: underline; }
#wd-connection .tt-game-page-link { display: block; width: max-content; margin-top: 4px; }
#wd-stage footer { text-align: center; font-size: 19px; letter-spacing: .4px; }
[data-reduced-motion="1"] #wd-meter-fill { transition: none; }
@media (prefers-reduced-motion: reduce) {
  #wd-meter-fill { transition: none; }
}
