/* A single-purpose participation screen; organiser tools keep their own layout. */
.participant-view {
  color-scheme: light;
  background: #98bf80;
}
.participant-view body {
  margin: 0;
  background: #98bf80;
  color: #191919;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.participant-view .app {
  max-width: none;
  padding: 0;
}
.participant-view header,
.participant-view #notice {
  display: none;
}
.participant-view #participation {
  display: flex;
  flex-direction: column;
  min-height: var(--tg-viewport-stable-height, 100dvh);
}
.entry-space {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) 24px 28px;
}
.entry-card {
  width: 100%;
  max-width: 440px;
  padding: 46px 22px;
  min-height: 300px;
  border-radius: 15px;
  background: #fff;
  text-align: center;
  overflow-wrap: anywhere;
}
.entry-dice {
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 100px;
  line-height: 1.35;
  margin: 0 0 20px;
}
.entry-card h1 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}
.entry-message {
  margin: 12px 0 0;
  font-size: 15px;
  color: #707070;
}
.entry-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 15px max(16px, env(safe-area-inset-right)) calc(15px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.entry-actions .primary {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 50px;
  background: #39a5db;
  box-shadow: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.entry-card .text-button {
  color: #258cbe;
  margin: 4px 0 0;
  padding: 12px;
  font-size: 14px;
}
.entry-card .secondary {
  background: #f2f5f7;
  border: 1px solid #e2e8ed;
  color: #258cbe;
  box-shadow: none;
  font-size: 14px;
}
.entry-card .link-row {
  background: #f3f6f8;
  border: 1px solid #e4eaee;
  color: #258cbe;
  text-align: left;
}
.entry-card .link-row span { color: #258cbe; }
.entry-card #conditions-panel { margin-top: 20px; }
.entry-card #captcha-prompt { font-size: 15px; margin: 18px 0 12px; }
.entry-card .captcha-grid { gap: 7px; margin: 12px 0 0; }
.entry-card .captcha-grid button { border-radius: 14px; }
.entry-card .captcha-grid .picked { border-color: #39a5db; box-shadow: none; }
.entry-card .captcha-grid .picked::after { background: #39a5db; color: #fff; }
.entry-error { color: #bd3535; font-size: 14px; margin: 16px 0 0; }
.entry-card details { margin-top: 22px; font-size: 14px; color: #707070; }
.entry-card summary { cursor: pointer; padding: 8px; color: #258cbe; }
.participant-view #loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  margin: 0;
  color: #fff;
  font-size: 16px;
}
.participant-view button:focus-visible,
.participant-view a:focus-visible,
.participant-view summary:focus-visible { outline: 3px solid #258cbe; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .entry-dice { animation: dice-roll 900ms ease-out both; }
  @keyframes dice-roll {
    0% { transform: translateY(-14px) rotate(-24deg); }
    45% { transform: translateY(3px) rotate(12deg); }
    75% { transform: translateY(-3px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0); }
  }
}
@media (max-width: 360px) {
  .entry-space { padding-left: 16px; padding-right: 16px; }
  .entry-card { padding: 32px 18px; }
  .entry-card h1 { font-size: 18px; }
}