/* Page Frame — mock browser window */
.page-frame {
  max-width: 1280px;
  margin: 24px auto;
  background: #F5F5F5;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  height: 60px;
  flex-shrink: 0;
}

.header-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #000;
}

.volume-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #666;
  padding: 4px;
  transition: color 0.2s;
}

.volume-icon:hover {
  color: #000;
}

.volume-icon.muted svg path:last-child,
.volume-icon.muted svg path:nth-child(2) {
  display: none;
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 24px 44px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  max-width: 650px;
  margin: 0 auto 14px;
  color: #111;
}

.hero .subtitle {
  font-size: 16px;
  color: #888;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-cta input {
  padding: 12px 18px;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  width: 220px;
}

.hero-cta input::placeholder {
  color: #bbb;
}

.hero-cta input:focus {
  border-color: #999;
}

.hero-cta button {
  padding: 12px 22px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}

.hero-cta button:hover {
  background: #222;
}

/* Board Section */
.board-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 24px 32px;
}

/* Fullscreen: hide header+hero, board fills viewport */
.fullscreen-active .header,
.fullscreen-active .hero {
  display: none;
}

.fullscreen-active .board-section {
  padding: 0;
  height: 100vh;
  align-items: center;
}

/* Message controller */
.controller-frame {
  min-height: calc(100vh - 48px);
}

.controller-page {
  min-height: 100%;
}

.controller-main {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 28px;
  padding: 34px 36px 38px;
  flex: 1;
  align-items: stretch;
}

.message-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.desktop-controller .message-panel {
  position: sticky;
  top: 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.message-panel h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 14px;
}

.message-panel .subtitle {
  font-size: 16px;
  color: #777;
  line-height: 1.5;
  margin-bottom: 28px;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-form label {
  font-size: 13px;
  font-weight: 800;
  color: #333;
}

.message-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 116px;
  max-height: 220px;
  padding: 14px 16px;
  border: 1.5px solid #DADADA;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.message-form textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.message-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid #DADADA;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.message-form input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-footer span,
.status-text {
  color: #777;
  font-size: 13px;
}

.form-footer button {
  min-height: 44px;
  padding: 0 18px;
  background: #111;
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.form-footer button:hover {
  background: #2A2A2A;
}

.form-footer button:active {
  transform: translateY(1px);
}

.status-text {
  min-height: 20px;
  margin-top: 16px;
}

.preview-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #666;
  font-size: 13px;
  font-weight: 800;
}

.preview-header a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preview-board {
  padding: 0;
}

.mobile-controller .controller-frame {
  margin: 0;
  min-height: 100vh;
  border-radius: 0;
}

.mobile-controller .controller-main {
  min-height: calc(100vh - 56px);
}

.mobile-controller .message-panel {
  justify-content: flex-start;
}

.mobile-controller .message-panel .subtitle {
  margin-bottom: 22px;
}

.mobile-controller .message-form {
  gap: 12px;
}

.mobile-controller .message-form textarea {
  min-height: 156px;
  font-size: 18px;
}

.mobile-controller .message-form input {
  min-height: 48px;
  font-size: 16px;
}

.mobile-controller .form-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 6px -20px 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(245, 245, 245, 0.96);
  border-top: 1px solid #E0E0E0;
  backdrop-filter: blur(12px);
}

.mobile-controller .form-footer button {
  min-height: 52px;
  font-size: 16px;
}

.mobile-controller .preview-section {
  justify-content: flex-start;
  padding-bottom: 18px;
}

.mobile-controller .preview-header {
  margin-bottom: 10px;
}

.mobile-controller .preview-board .board {
  border-radius: 10px;
}

.display-page {
  background: #111;
  overflow: hidden;
}

.display-shell {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.display-board {
  width: 100%;
  height: 100%;
  padding: 0;
  align-items: center;
}

.display-board .board {
  border-radius: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  --tile-size: clamp(34px, 4.25vw, 76px);
}
