@font-face {
  font-family: BroadcastSans;
  src: url("/assets/css/fonts/NanumSquareR.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: BroadcastSans;
  src: url("/assets/css/fonts/NanumSquareB.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
html,
body {
  margin: 0;
}
.output-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.broadcast-stage {
  --panel: rgba(24, 29, 36, 0.95);
  --ink: #f5f5f1;
  --muted: #bac2cc;
  --line: #3a424c;
  --accent: #b9dcd1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  font-family: BroadcastSans, "Malgun Gothic", sans-serif;
  color: var(--ink);
  box-sizing: border-box;
  padding: 44px 48px;
  background: transparent;
  overflow: hidden;
}
.broadcast-stage * {
  box-sizing: border-box;
}
.broadcast-stage[data-theme="light"] {
  --panel: rgba(250, 250, 246, 0.97);
  --ink: #252b31;
  --muted: #58636b;
  --line: #d7dcd9;
  --accent: #2c6c5b;
}
.output-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: var(--panel);
  border-radius: 14px;
  margin-bottom: 22px;
  min-height: 100px;
}
.output-heading :is(h1, h2) {
  font-size: 44px;
  margin: 0;
  max-width: 1300px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.output-heading > span {
  font-size: 26px;
  color: var(--muted);
}
.now-item {
  height: 112px;
  background: var(--panel);
  border-radius: 12px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 30px;
  margin-bottom: 20px;
}
.now-item > span:last-child {
  color: var(--muted);
  font-size: 26px;
}
.tier-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tier-boards section {
  background: var(--panel);
  border-radius: 14px;
  padding: 20px;
}
.tier-boards h2 {
  margin: 0 0 16px;
  font-size: 30px;
}
.rank-row {
  display: flex;
  border-top: 1px solid var(--line);
  min-height: 100px;
}
.grade {
  width: 70px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: #222d31;
  margin: 8px 0;
  border-radius: 8px;
}
.grade-0 {
  background: #e8b7ae;
}
.grade-1 {
  background: #e3c99b;
}
.grade-2 {
  background: #ddd99d;
}
.grade-3 {
  background: #acd0bb;
}
.grade-4 {
  background: #a9c8df;
}
.rank-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
}
.rank-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  max-width: 250px;
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.rank-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}
.now-item .rank-item {
  font-size: 34px;
  max-width: 900px;
  border: 0;
}
.now-item img {
  width: 72px;
  height: 72px;
}
.output-footer {
  position: absolute;
  bottom: 28px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  height: 150px;
  pointer-events: none;
}
.output-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  background: var(--panel);
  border-radius: 8px;
  padding: 10px 14px;
}
.output-brand img {
  width: 32px;
  height: 32px;
}
.join-qr {
  margin-left: auto;
  width: 142px;
  text-align: center;
  background: white;
  color: #252b31;
  border-radius: 8px;
  padding: 8px;
  font-size: 18px;
}
.join-qr svg {
  display: block;
  width: 124px;
  height: 124px;
}
.join-qr span {
  display: block;
  margin-bottom: 6px;
}
.bingo-scene {
  display: grid;
  grid-template-columns: 1100px 1fr;
  gap: 28px;
}
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.bingo-cell {
  height: 142px;
  background: var(--panel);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  font-size: 30px;
  padding: 16px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.bingo-cell.marked {
  background: var(--accent);
  color: #152d24;
  border-color: var(--accent);
}
.bingo-results {
  background: var(--panel);
  border-radius: 14px;
  padding: 28px;
  align-self: start;
}
.bingo-results h2 {
  font-size: 34px;
  margin: 0 0 20px;
}
.bingo-results p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 22px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.bingo-results small {
  font-size: 21px;
  color: var(--muted);
}
.story-paper {
  background: var(--panel);
  padding: 34px 40px;
  border-radius: 14px;
  min-height: 400px;
  max-height: 590px;
  overflow: hidden;
}
.story-author {
  color: var(--muted);
  font-size: 24px;
}
.story-paper h2 {
  font-size: 38px;
  margin: 16px 0 20px;
  overflow-wrap: anywhere;
}
.story-paper p {
  font-size: 30px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.story-results {
  background: var(--panel);
  border-radius: 12px;
  margin-top: 20px;
  padding: 22px 30px;
  margin-right: 180px;
}
.choice-labels {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  font-size: 28px;
}
.choice-labels > span {
  font-size: 20px;
  color: var(--muted);
}
.result-line {
  display: grid;
  grid-template-columns: 360px 1fr 90px;
  align-items: center;
  gap: 24px;
  font-size: 28px;
  margin: 12px 0;
}
.result-line > div {
  height: 24px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.result-line i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.broadcast-stage[data-kind="timer"] {
  padding: 15px;
}
.timer-panel {
  height: 100%;
  border-radius: 18px;
  padding: 20px 36px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.timer-panel > div {
  font-size: 30px;
  line-height: 1.4;
}
.clock-value {
  font-size: 150px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 3px;
}
.timer-paused {
  font-size: 18px;
  color: var(--muted);
}
.time-done .clock-value {
  color: var(--accent);
}
.output-message {
  position: absolute;
  inset: 20%;
  display: grid;
  place-items: center;
  background: var(--panel);
  border-radius: 20px;
  font-size: 46px;
}
.tier-boards section {
  height: 570px;
  display: flex;
  flex-direction: column;
}
.tier-boards h2 {
  flex-shrink: 0;
}
.rank-row {
  min-height: 0;
  flex-basis: 0;
}
.rank-row > div {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: center;
  gap: 6px;
  padding: 5px 10px;
}
.rank-row .rank-item {
  font-size: 19px;
  line-height: 1.25;
  padding: 5px;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  border: 0;
}
.rank-row .rank-item img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.rank-row .grade {
  font-size: 32px;
  width: 60px;
  margin: 5px 0;
}
.story-paper p {
  font-size: 29px;
  line-height: 1.6;
}
.output-heading :is(h1, h2) {
  max-width: 1380px;
  font-size: 40px;
}
.output-heading > span {
  flex-shrink: 0;
  margin-left: 20px;
}
.bingo-results p > span {
  max-width: 500px;
  min-width: 0;
  flex: 1;
}
.timer-panel > div {
  max-height: 84px;
  overflow-wrap: anywhere;
  font-size: 28px;
}
.output-heading {
  height: 100px;
  padding: 14px 30px;
}
.output-heading :is(h1, h2) {
  font-size: var(--title-size, 40px);
  line-height: 1.2;
  min-width: 0;
  flex: 1;
}
.rank-row .rank-item > span {
  min-width: 0;
}
.timer-panel {
  position: relative;
}
.timer-logo {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
}
.broadcast-stage[data-theme="light"] .bingo-cell.marked {
  color: #fff;
}

.anonymous-paper {
  position: relative;
  min-height: 610px;
  max-height: 720px;
  padding: 48px 240px 48px 48px;
}
.mailbox-mascot {
  position: absolute;
  right: 40px;
  top: 40px;
  width: 170px;
  height: 170px;
  object-fit: contain;
}
.anonymous-paper h2 {
  font-size: 36px;
  margin-top: 22px;
}
.anonymous-paper p {
  font-size: 29px;
  line-height: 1.6;
}
