.source-page #ff-stage {
  --ink: #25263e;
  --gold: #ffd43b;
  --paper: #fff7e6;
  --rule: #b4a997;
  position: absolute;
  top: 50%; left: 50%;
  width: 1080px; height: 1920px;
  transform: translate(-50%, -50%) scale(var(--ff-scale, 1));
  padding: 27px 32px 15px;
  display: flex; flex-direction: column; gap: 13px;
  color: var(--ink);
  font: 900 27px/1.12 Inter, "Segoe UI", Arial, sans-serif;
}
#ff-stage, #ff-stage * { box-sizing: border-box; }
#ff-stage :is(h1,h2,p,ol) { margin: 0; }
#ff-stage [hidden] { display: none !important; }
.ff-sheet {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--paper); border: 5px solid var(--ink); border-radius: 27px;
  box-shadow: 6px 7px 0 var(--ink);
}
#ff-header { padding: 22px 34px 16px; border-bottom: 3px solid var(--ink); }
.ff-mast, .ff-section-head, .ff-instruments {
  display: flex; align-items: center; gap: 14px; text-transform: uppercase;
  font-size: 23px; line-height: 1; letter-spacing: 2px;
}
.ff-mast i, .ff-section-head i { flex: 1; height: 2px; background: var(--ink); }
.ff-mark {
  display: grid; place-items: center; width: 34px; height: 26px;
  font-size: 21px; background: var(--gold); border: 2px solid var(--ink);
  border-radius: 60% 20% 60% 20%; transform: skew(-8deg);
}
.ff-mast > span:last-child { font-variant-numeric: tabular-nums; }
.ff-headline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
#ff-header h1 {
  position: relative; z-index: 0; font-size: 116px; font-weight: 900; line-height: 1.05;
  letter-spacing: -8.9px; white-space: nowrap;
}
#ff-header h1 em { position: relative; font-style: italic; padding-right: 9px; }
#ff-header h1 em::after { content: ""; position: absolute; inset: 62% 1% 5% -1%; z-index: -1; background: var(--gold); transform: skew(-20deg,-2deg); }
.ff-clock { min-width: 148px; padding-left: 22px; border-left: 2px solid var(--ink); text-align: right; }
.ff-clock span { font-size: 20px; text-transform: uppercase; letter-spacing: 1.6px; }
.ff-clock b { display: block; font-size: 57px; line-height: .97; letter-spacing: -3px; font-variant-numeric: tabular-nums; }
#ff-connection { flex: none; }
#ff-connection:empty, #ff-connection:has(.preview-status), #ff-connection:has(.tt-core-notice[hidden]) { display: none; }
#ff-connection .tt-core-overlay-status { position: static; transform: none; width: 100%; margin: 0; text-align: left; z-index: auto; }
#ff-connection .tt-core-pill { display: none !important; }
#ff-connection .tt-core-notice {
  margin: 9px 16px; padding: 11px 18px; border: 3px solid #25263e; border-radius: 10px;
  color: #25263e; background: #fff7e6; box-shadow: none;
  font: 650 20px/1.24 Inter, "Segoe UI", Arial, sans-serif;
}
#ff-connection .tt-core-notice :is(strong,a) { font-size: inherit; color: #25263e; font-weight: 900; }
#ff-connection .tt-game-page-link { display: block; width: fit-content; margin-top: 3px; }
#ff-playfield { position: relative; overflow: hidden; flex: 1; min-height: 0; border-bottom: 3px solid var(--ink); background: #a8dfd5; }
#ff-course { display: block; width: 100%; height: 100%; }
.ff-instruments { position: absolute; top: 18px; left: 22px; right: 22px; justify-content: space-between; pointer-events: none; }
.ff-instruments b {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-radius: 6px; border: 2px solid var(--ink); background: #fffbeb; font-size: 21px;
  letter-spacing: 1.1px; box-shadow: 2px 2px 0 var(--ink);
}
#ff-count::before { content: ""; width: 12px; height: 12px; background: #76cbaa; border: 2px solid var(--ink); border-radius: 50%; }
#ff-floater {
  position: absolute; bottom: 23px; left: 50%; transform: translateX(-50%) rotate(-1.2deg);
  min-width: 390px; max-width: 89%; display: grid; justify-items: center; gap: 2px;
  padding: 9px 24px 12px; border: 3px solid var(--ink); border-radius: 10px;
  background: var(--accent, var(--gold)); box-shadow: 4px 5px 0 var(--ink); color: #25263e;
}
#ff-floater > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ff-floater [data-sender] { font-size: 43px; line-height: 1.05; letter-spacing: -1.6px; }
#ff-floater [data-effect] { text-align: center; font-size: 23px; line-height: 1.25; }
.ff-dispatch { display: flex; align-items: center; gap: 22px; padding: 15px 31px; background: #ffe8a8; border-bottom: 3px solid var(--ink); }
.ff-dispatch > div { min-width: 0; }
.ff-seal { width: 74px; height: 74px; flex: none; }
#ff-call { font-size: 46px; line-height: 1.06; font-weight: 900; letter-spacing: -2px; overflow-wrap: anywhere; }
#ff-cue { margin-top: 6px !important; font-size: 25px; font-weight: 675; overflow-wrap: anywhere; }
.ff-board { flex: none; padding: 26px 31px 18px; }
.ff-section-head { gap: 16px; }
.ff-section-head h2 { font: 900 31px/1 Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -1.2px; text-transform: none; }
.ff-section-head > span { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 19px; letter-spacing: 1px; }
#ff-ranks {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(3, 54px);
  grid-auto-flow: column; column-gap: 40px; margin: 14px 0 0 !important; padding: 0; list-style: none;
}
#ff-ranks li { display: grid; grid-template-columns: 40px 15px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1.5px solid var(--rule); }
#ff-ranks li i { width: 14px; height: 14px; border-radius: 50%; border: 1.8px solid var(--ink); }
#ff-ranks li span { font-size: 22px; font-variant-numeric: tabular-nums; }
#ff-ranks li b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 27px; letter-spacing: -.8px; }
#ff-ranks li strong { font-size: 24px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.ff-gift-menu { padding: 18px 31px 25px; border-top: 2px solid var(--ink); }
#ff-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.ff-gift { min-width: 0; padding: 10px 0 0; border-top: 5px solid var(--accent); }
.ff-gift > div { display: flex; align-items: center; gap: 7px; min-height: 42px; }
.ff-gift :is(img,.ff-gift-mark) { width: 38px; height: 38px; flex: none; object-fit: contain; }
.ff-gift-mark { display: grid; place-items: center; font-size: 27px; }
.ff-gift b, .ff-gift p { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.ff-gift b { font-size: 24px; letter-spacing: -.9px; }
.ff-gift p { font-size: 21px; font-weight: 750; line-height: 1.3; margin-top: 4px !important; letter-spacing: -.4px; }
html[data-tt-gift-icons=off] .ff-gift :is(img,.ff-gift-mark) { display: none; }
#ff-stage footer { flex: none; text-align: center; color: #fff; font-size: 21px; letter-spacing: .4px;
  -webkit-text-stroke: 3.3px #25263e; paint-order: stroke fill; }
