html.source-page { color-scheme: dark; }
.source-page #fw-stage {
  --ink: #25263e;
  --gold: #ffd43b;
  --paper: #fff4d8;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  transform: translate(-50%, -50%) scale(var(--fw-scale, 1));
  display: flex;
  flex-direction: column;
  padding: 45px 54px 27px;
  gap: 20px;
  overflow: hidden;
  color: white;
  font: 900 27px/1.14 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
#fw-stage, #fw-stage * { box-sizing: border-box; }
#fw-stage :is(h1,h2,p,ol) { margin: 0; }
#fw-stage [hidden] { display: none !important; }
#fw-stage .fw-brand, #fw-stage .fw-rule { display: flex; align-items: center; gap: 17px; text-transform: uppercase; letter-spacing: 3px; font-size: 23px; }
.fw-brand i { font-size: 39px; color: var(--gold); font-style: normal; line-height: .86; }
.fw-brand span, .fw-rule i { height: 4px; flex: 1; background: #ffd43b; border: 1px solid var(--ink); }
.fw-title-row { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
#fw-stage h1 { color: white; font-size: 110px; letter-spacing: -7px; line-height: 1.05; -webkit-text-stroke: 7px var(--ink); }
#fw-stage h1 em { color: var(--gold); font-style: italic; }
.fw-queue { display: grid; place-items: center; min-width: 120px; border-left: 2px solid #c7a971; padding: 2px 0 2px 22px; }
.fw-queue b { font-size: 49px; color: var(--gold); line-height: 1; }
.fw-queue span { font-size: 19px; text-transform: uppercase; letter-spacing: 2px; }
#fw-connection:has(.tt-core-notice[hidden]), #fw-connection:has(.preview-status), #fw-connection:empty { display: none; }
#fw-connection .tt-core-overlay-status { position: static; transform: none; width: 100%; margin: 0; text-align: left; z-index: auto; }
#fw-connection .tt-core-notice {
  border: 2px solid #c79c43; border-radius: 15px; padding: 12px 22px; margin: 0;
  background: transparent; box-shadow: none; color: white;
  font: 900 20px/1.24 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-stroke: 2.6px var(--ink); paint-order: stroke fill;
}
#fw-connection .tt-core-notice strong { display: block; font-size: 24px; }
#fw-connection .tt-game-page-link { display: block; margin-top: 5px; }
#fw-connection .tt-core-pill { display: none !important; }
#fw-playfield { flex: 1 1 0; min-height: 0; position: relative; display: grid; place-items: center; }
#fw-wheel { width: 100%; height: 100%; object-fit: contain; }
#fw-floater {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%) rotate(-2deg); width: max-content; max-width: 91%;
  display: grid; justify-items: center; padding: 10px 35px 13px; border: 4px solid var(--ink); border-radius: 15px;
  box-shadow: 4px 6px 0 var(--ink); background: var(--accent, var(--gold)); color: var(--ink); -webkit-text-stroke: 0;
}
#fw-effect { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: 2px; font-size: 26px; }
#fw-sender { max-width: 100%; font-size: 49px; line-height: 1.12; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fw-ticket {
  position: relative; display: flex; align-items: stretch; min-height: 156px; flex: none;
  color: #25263e; -webkit-text-stroke: 0; background: var(--paper);
  border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 7px 0 #c99b45, 0 10px 0 var(--ink);
}
.fw-ticket-mark { display: grid; place-items: center; width: 95px; flex: none; font-size: 50px; background: #ffd43b; border-radius: 20px 0 0 20px; border-right: 3px dashed #967d53; }
.fw-ticket-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 25px 18px; }
#fw-result-label { font-size: 20px; text-transform: uppercase; letter-spacing: 2.6px; font-weight: 850; }
#fw-result-title { overflow-wrap: anywhere; font-size: 53px; line-height: 1.06; letter-spacing: -2px; margin: 4px 0 !important; }
#fw-result-title.fw-long { font-size: 36px; letter-spacing: -.6px; }
#fw-result-detail { font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
#fw-recent { min-height: 230px; padding-top: 6px; }
.fw-rule h2 { font: inherit; color: var(--gold); }
.fw-rule span { font-size: 18px; }
#fw-history { padding: 7px 0 0; list-style: none; }
#fw-history li { display: grid; grid-template-columns: 28px minmax(0,1.24fr) minmax(0,1fr); gap: 13px; align-items: center; min-height: 38px; }
#fw-history .fw-index { font-size: 18px; color: var(--gold); font-variant-numeric: tabular-nums; }
#fw-history li b, #fw-history li span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fw-history li span:last-child { text-align: right; font-size: 23px; }
#fw-empty { padding: 12px 0 3px; font-size: 26px; }
#fw-gifts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 12px; }
.fw-gift { min-width: 0; border-top: 4px solid var(--accent); padding: 8px 5px 0; }
.fw-gift > div { display: flex; align-items: center; gap: 7px; }
.fw-gift img { width: 48px; height: 48px; object-fit: contain; }
.fw-gift b { font-size: 26px; letter-spacing: -.9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-gift p { font-size: 23px; line-height: 1.2; white-space: nowrap; padding-top: 3px; }
#fw-stage footer { font-size: 19px; letter-spacing: .6px; text-align: center; }
html[data-tt-gift-icons=off] .fw-gift img { display: none; }
