@font-face {
  font-family: ToolSans;
  src: url("/assets/css/fonts/NanumSquareR.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: ToolSans;
  src: url("/assets/css/fonts/NanumSquareB.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: ToolSans, "Malgun Gothic", sans-serif;
  color: #27312e;
  background: #f4f5f1;
  line-height: 1.55;
  font-synthesis: none;
  --line: #dce0d8;
  --muted: #68746d;
  --accent: #28624e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #cdd5cb;
  background: #fff;
  border-radius: 7px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.4;
}
button:hover,
.button:hover {
  background: #f1f5ef;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
.primary {
  background: #28624e;
  color: white;
  border-color: #28624e;
}
.primary:hover {
  background: #1d503e;
}
.danger {
  color: #a03b31;
}
a {
  color: #28624e;
  text-underline-offset: 4px;
}
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  width: 100%;
  background: #fafbf8;
  border: 1px solid #cdd5cb;
  border-radius: 6px;
  padding: 11px 12px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input[readonly] {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: #53675c;
}
input[type="checkbox"] {
  accent-color: #28624e;
  width: 18px;
  height: 18px;
}
input[type="file"] {
  width: 100%;
  font-size: 13px;
}
label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 14px;
}
label input,
label textarea,
label select {
  display: block;
  margin-top: 7px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
label.check input {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #579b7f;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1480px;
  margin: auto;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.control-main {
  max-width: 1480px;
  margin: auto;
  padding: 24px 32px 64px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.eyebrow {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}
h1 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 0;
}
h2 {
  font-size: 18px;
  margin: 0 0 16px;
  line-height: 1.4;
}
h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 16px;
}
.connection {
  font-size: 12px;
  color: #586b5e;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 30px;
  padding: 5px 10px;
  white-space: nowrap;
}
.status {
  font-size: 14px;
  min-height: 24px;
  color: #28624e;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.status[data-error="true"] {
  color: #a03b31;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 18px;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.controls-column,
.preview-column {
  min-width: 0;
}
.preview-column {
  position: sticky;
  top: 18px;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #e8ece5;
  border: 1px solid #d7dfd2;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.preview-heading h2 {
  font-size: 15px;
  margin: 0;
}
.preview-heading span {
  font-size: 12px;
  color: var(--muted);
}
.preview-checker {
  background-color: #dde2da;
  background-image:
    linear-gradient(45deg, #eef1eb 25%, transparent 25%),
    linear-gradient(-45deg, #eef1eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1eb 75%),
    linear-gradient(-45deg, transparent 75%, #eef1eb 75%);
  background-size: 24px 24px;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  border: 1px solid #d7dfd2;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
#preview {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}
body[data-kind="timer"] #preview {
  aspect-ratio: 10/3;
}
.preview-panel > .hint {
  padding: 8px 2px;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-row > label {
  flex: 1;
  min-width: 0;
}
.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.button-row > * {
  flex: 1;
  min-width: 120px;
}
.links-panel h2 {
  font-size: 17px;
}
.links-panel input {
  word-break: break-all;
}
.links-panel #participant-links {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.session-actions button {
  margin: 0 5px 8px 0;
  font-size: 13px;
}
.session-actions > a {
  font-size: 13px;
}
.start-panel {
  max-width: 650px;
  margin: 28px auto;
  padding: 32px;
}
.start-panel h2 {
  font-size: 22px;
}
.start-panel > p {
  font-size: 15px;
}
.recent-list {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
}
.recent-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eff1eb;
  font-size: 14px;
}
.recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.recent-row a {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.recent-row button {
  flex-shrink: 0;
}
.subsection {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.live-note {
  padding: 12px 14px;
  border-radius: 6px;
  background: #f0f5ed;
  font-size: 14px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.live-note strong {
  font-weight: 700;
}
.small-button {
  padding: 6px 10px;
  min-height: 34px;
  font-size: 12px;
}
.host-bingo {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 12px 0;
}
.host-bingo button {
  font-size: 11px;
  padding: 8px 4px;
  min-height: 64px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.host-bingo button[aria-pressed="true"] {
  background: #28624e;
  color: white;
  border-color: #28624e;
}
.count-label {
  font-size: 13px;
  color: var(--muted);
}
.private-inbox {
  max-height: 300px;
  overflow: auto;
}
.inbox-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.inbox-item p {
  margin: 0 0 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.inbox-item small {
  color: var(--muted);
}
.image-row {
  margin: 12px 0;
  padding: 10px;
  background: #f4f6f1;
  border-radius: 6px;
}
.image-row img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 12px;
}
.live-timer {
  font-size: 46px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin: 16px 0;
}
.empty {
  color: var(--muted);
  font-size: 14px;
}
.participant-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.participant-main h1 {
  font-size: 26px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.participant-main .panel {
  margin-top: 20px;
}
.vote-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.vote-options button {
  font-size: 25px;
  min-height: 70px;
}
.vote-options.story-options {
  grid-template-columns: 1fr 1fr;
}
.vote-options.story-options button {
  font-size: 16px;
  min-height: 76px;
  word-break: keep-all;
}
.vote-options button.chosen {
  color: #fff;
  background: #28624e;
}
.viewer-card {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.viewer-cell {
  min-height: 80px;
  padding: 9px 5px;
  background: #f5f7f1;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.viewer-cell.marked {
  background: #28624e;
  color: white;
}
.viewer-story {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.voting-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.voting-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
}
.participant-main .status {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f5f1;
  padding: 9px 0;
}
.participant-main .status:empty {
  display: none;
}
.privacy-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.compact-list {
  padding-left: 20px;
  font-size: 14px;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 15px;
}
.landing {
  max-width: 1100px;
  margin: auto;
  padding: 44px 24px 70px;
}
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
  margin: 10px 0 44px;
}
.landing-hero h1 {
  font-size: 38px;
  margin-bottom: 20px;
  line-height: 1.25;
}
.landing-hero p {
  color: #53645a;
  font-size: 17px;
}
.landing-hero .primary {
  margin-top: 8px;
}
.landing #demo {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}
.landing[data-kind="timer"] #demo {
  aspect-ratio: 10/3;
}
.landing .guide {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  margin: 20px 0;
}
.landing .guide h2 {
  font-size: 21px;
}
.landing .guide p,
.landing .guide li {
  font-size: 15px;
  line-height: 1.8;
  color: #53645a;
}
.landing .guide li {
  margin-bottom: 10px;
}
.landing details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.landing details:last-child {
  border: 0;
}
.landing details p {
  margin-bottom: 0;
}
.landing .related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.landing .related a {
  background: white;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.ad-wrap {
  margin: 30px 0;
  text-align: center;
  overflow: hidden;
  min-height: 120px;
}
.ad-label {
  font-size: 11px;
  color: #7f8880;
  padding-bottom: 8px;
}
.site-footer {
  max-width: 1100px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  gap: 20px;
  font-size: 13px;
}
@media (max-width: 1000px) {
  .studio-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
  }
  .control-main {
    padding: 20px;
  }
  .site-header {
    padding: 18px 20px;
  }
  .panel {
    padding: 18px;
  }
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .landing #demo {
    max-width: 700px;
  }
  .landing .related {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .studio-layout {
    display: flex;
    flex-direction: column;
  }
  .preview-column {
    position: static;
    order: -1;
    width: 100%;
  }
  .controls-column {
    width: 100%;
  }
  .links-panel {
    padding: 16px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .site-header {
    font-size: 12px;
    padding: 15px;
  }
  .control-main {
    padding: 20px 14px;
  }
  .form-row {
    gap: 8px;
  }
  .preview-panel > .hint {
    font-size: 11px;
  }
  .viewer-cell {
    min-height: 70px;
    font-size: 11px;
  }
  .landing {
    padding: 30px 18px;
  }
  .landing-hero h1 {
    font-size: 32px;
  }
  .landing .guide {
    padding: 20px;
  }
  .site-header .brand {
    gap: 6px;
  }
}
.landing-hero .hint {
  font-size: 12px;
}

/* Mascot and mailbox: preserve the quiet controls, add one recognizable tool prop. */
.tool-mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex-shrink: 0;
}
.page-heading > div {
  flex: 1;
}
.landing-mascot {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 12px;
}
.participant-mascot {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}
.anonymous-note {
  color: var(--accent);
  background: #edf3ed;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}
.broadcast-ad {
  clear: both;
  display: block;
  text-align: center;
  margin: 36px auto 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  line-height: 1;
}
.broadcast-ad .ad-label {
  display: block;
  margin-bottom: 10px;
  font:
    11px/1.3 ToolSans,
    sans-serif;
  color: var(--muted);
}
.broadcast-ad ins {
  vertical-align: top;
}
@media (max-width: 600px) {
  .tool-mascot {
    width: 64px;
    height: 64px;
  }
  .page-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-heading .connection {
    margin-left: auto;
  }
  .landing-mascot {
    width: 92px;
    height: 92px;
  }
  .broadcast-ad {
    margin-top: 28px;
  }
}
