/* src/styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    "Oxygen",
    "Ubuntu",
    "Cantarell",
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  min-height: 100dvh;
  color: #333;
}
.app {
  min-height: 100dvh;
}
.lobby {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lobby-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
}
.lobby-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.lobby-logo .partytime-logo-text {
  filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.2));
}
.lobby-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.name-section,
.room-section {
  text-align: left;
}
.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}
.name-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
}
.name-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.name-input.valid {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}
.name-input.invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.name-validation {
  margin-top: 8px;
  font-size: 0.9rem;
}
.name-validation .error {
  color: #e74c3c;
}
.name-validation .success {
  color: #27ae60;
}
.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-join {
  background:
    linear-gradient(
      135deg,
      #667eea,
      #764ba2);
  color: white;
}
.btn-create {
  background:
    linear-gradient(
      135deg,
      #f093fb,
      #f5576c);
  color: white;
}
.btn-submit {
  background:
    linear-gradient(
      135deg,
      #4facfe,
      #00f2fe);
  color: white;
}
.join-room-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.room-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}
.room-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.room-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}
.room {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.room-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  gap: 15px;
}
.room-title {
  margin-left: 15px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.room-title h1 {
  font-size: 1.5rem;
  margin: 0;
  background:
    linear-gradient(
      135deg,
      #667eea,
      #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.header-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.header-btn {
  padding: 8px;
  min-width: 40px;
  height: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.members-toggle-btn {
  padding: 8px;
  min-width: 40px;
  height: 40px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}
.members-toggle-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.members-toggle-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.members-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.header-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}
.header-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}
.header-btn.btn-leave {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
}
.header-btn.btn-leave:hover {
  background: #e74c3c;
  color: white;
}
.room-main {
  display: flex;
  flex: 1;
  min-height: calc(100dvh - 66px);
}
.members-panel {
  position: sticky;
  top: 66px;
  left: 0;
  height: calc(100dvh - 66px);
  width: 250px;
  background: rgba(255, 255, 255, 0.9);
  border-right: 2px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.members-panel.show {
  transform: translateX(0);
  opacity: 1;
}
.members-panel.hide {
  transform: translateX(-100%);
  opacity: 0;
  width: 0;
}
.members-content {
  padding: 20px 15px;
}
.members-content h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.3rem;
  border-bottom: 2px solid rgba(102, 126, 234, 0.2);
  padding-bottom: 10px;
}
.users-list {
  list-style: none;
  padding: 0;
}
.user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.user-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(5px);
}
.user-avatar {
  color: #667eea;
  flex-shrink: 0;
}
.user-name {
  font-weight: 500;
  color: #333;
  flex: 1;
}
.no-users {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
}
.content-panel {
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  overflow-y: auto;
}
.content-page {
}
.game-page {
  text-align: center;
}
.game-content {
  max-width: 600px;
  margin: 0 auto;
}
.partytime-logo {
  margin-bottom: 30px;
}
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}
.partytime-logo-text {
  font-family: "Arial", sans-serif;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.logo-party {
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: -0.1em;
}
.logo-time {
  background:
    linear-gradient(
      135deg,
      #764ba2 0%,
      #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  opacity: 0.9;
}
.qr-section {
  margin-top: 40px;
}
.qr-section h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.4rem;
}
.qr-code {
  margin: 20px 0;
}
.qr-code-container {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: white;
  border: 3px solid #667eea;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.qr-code-container.clickable:hover {
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
  border-color: #5a67d8;
}
.copied-message {
  text-align: center;
  margin-top: 15px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.qr-code-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.qr-loading {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: white;
  border: 3px solid #667eea;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
  color: #667eea;
}
.qr-loading span {
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 10px;
}
.settings-page {
  max-width: 500px;
  margin: 0 auto;
}
.settings-content h2 {
  margin-bottom: 30px;
  color: #333;
  font-size: 1.8rem;
  text-align: center;
}
.setting-item {
  margin-bottom: 25px;
}
.setting-item label,
.setting-item .setting-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}
.name-edit {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.display-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.edit-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.current-name {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 500;
  padding: 10px 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  min-width: 150px;
}
.name-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 15px;
  font-size: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}
.name-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.btn-edit,
.btn-save,
.btn-cancel {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-width: fit-content;
}
.btn-edit {
  background: #667eea;
  color: white;
}
.btn-edit:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}
.btn-save {
  background: #27ae60;
  color: white;
}
.btn-save:hover {
  background: #229954;
  transform: translateY(-1px);
}
.btn-cancel {
  background: #95a5a6;
  color: white;
}
.btn-cancel:hover {
  background: #7f8c8d;
  transform: translateY(-1px);
}
.admin-page {
  text-align: center;
}
.admin-content h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.8rem;
}
.admin-content p {
  color: #666;
  font-size: 1.1rem;
}
.quiz-admin-page {
  max-width: 1200px;
  margin: 0 auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}
.admin-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.8rem;
}
.admin-stats {
  display: flex;
  gap: 1rem;
}
.stat {
  background: rgba(102, 126, 234, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #667eea;
  font-size: 0.9rem;
}
.admin-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.admin-section h3 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.3rem;
}
.topic-manager {
  margin-bottom: 1rem;
}
.topic-input-section {
  margin-bottom: 1rem;
}
.topic-input-container {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  min-height: 32px;
}
.topic-tags-display {
  flex: 1;
  min-height: 44px;
  max-height: 44px;
  padding: 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  transition: all 0.2s ease;
  cursor: text;
  line-height: 1;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.topic-tags-display.has-tags {
  min-height: 44px;
  max-height: none;
}
.topic-tags-display:focus-within {
  border-color: #667eea;
  outline: none;
}
.topic-input-inline {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.25rem;
  min-width: 120px;
  flex: 1;
}
.topic-input-inline::placeholder {
  color: #9ca3af;
}
.btn-add-topic {
  padding: 0.75rem 1rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-add-topic:hover:not(:disabled) {
  background: #5a67d8;
  transform: translateY(-1px);
}
.btn-add-topic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-add-topic-inline {
  padding: 0.25rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.btn-add-topic-inline:hover {
  background: #5a67d8;
  transform: scale(1.05);
}
.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topic-tag {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  min-height: 24px;
  line-height: 1;
}
.topic-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.topic-name {
  display: flex;
  align-items: center;
  line-height: 1;
  flex: 1;
}
.btn-remove-topic {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.7;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-remove-topic:hover {
  background: rgba(0, 0, 0, 0.15);
  opacity: 1;
  transform: scale(1.1);
}
.no-topics {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 1rem;
}
.btn-generate {
  padding: 0.75rem 1.5rem;
  background:
    linear-gradient(
      135deg,
      #667eea,
      #764ba2);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  height: 44px;
  box-sizing: border-box;
}
.btn-generate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 1rem;
}
.questions-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.questions-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: flex-end;
}
.stat-box {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: auto;
}
.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: #667eea;
  opacity: 0.8;
  text-transform: lowercase;
  line-height: 1;
}
.no-questions {
  text-align: center;
  color: #666;
  padding: 2rem;
  font-style: italic;
}
.questions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dragging {
  transform: rotate(2deg) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: all 0.2s ease;
}
.quiz-question-entry {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.5rem;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin: 0;
}
.quiz-question-entry:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.quiz-question-entry.reordering {
  transition: none;
}
.quiz-question-entry-wrapper {
  transition: none;
  transform-origin: center;
}
.quiz-question-entry-wrapper.dragging {
  transition: none;
  z-index: 1000;
}
.quiz-question-entry.editing {
  border-color: #667eea;
  background: #f8fafc;
}
.btn-reveal-question {
  background:
    linear-gradient(
      135deg,
      #667eea,
      #764ba2);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  min-width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-reveal-question:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.btn-reveal-question:active {
  transform: translateY(0);
}
.btn-delete,
.btn-save,
.btn-cancel {
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
}
.btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #666;
}
.btn-delete:hover {
  background: rgba(239, 68, 68, 0.2);
}
.btn-save {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.btn-save:hover {
  background: rgba(34, 197, 94, 0.2);
}
.btn-cancel {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}
.btn-cancel:hover {
  background: rgba(107, 114, 128, 0.2);
}
.question-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.question-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  width: 100%;
  flex-wrap: wrap;
  min-height: 40px;
}
.question-text-container {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 300px;
}
.question-text {
  margin: 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.2;
  flex: 1;
  text-align: left;
  padding: 0.5rem 0 0.5rem 0.5rem;
}
.question-text.blurred {
  filter: blur(4px);
  color: #666;
  user-select: none;
}
.question-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}
.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  flex-direction: row;
}
.btn-toggle-options {
  padding: 0.5rem;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}
.btn-toggle-options:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}
.options-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    padding 0.3s ease;
  padding: 0;
}
.options-list.show {
  max-height: 200px;
  opacity: 1;
  padding: 0.5rem 0;
}
@media (max-width: 800px) {
  .options-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .options-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .question-main-row {
    flex-direction: column;
    align-items: stretch;
    row-gap: 0.5rem;
  }
  .question-text {
    min-width: 0;
    padding-right: 0;
    margin-bottom: 0;
  }
  .question-actions {
    min-width: 0;
    justify-content: flex-end;
    gap: 1rem;
    margin-left: auto;
  }
  .question-meta {
    order: -1;
  }
}
.option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  background: #f9fafb;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  min-height: 40px;
}
.option.correct {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
}
.option.incorrect {
  background: rgba(239, 68, 68, 0.05);
}
.option-letter {
  background: #667eea;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.option-text {
  flex: 1;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.question-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
  height: 100%;
}
.topic-badge,
.points-badge {
  padding: 0.125rem 0.5rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}
.topic-badge {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}
.points-badge {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.correct-answer {
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.05);
}
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .admin-stats {
    width: 100%;
    justify-content: space-between;
  }
  .generation-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .questions-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .lobby-container {
    padding: 30px 20px;
    margin: 10px;
  }
  .lobby-logo .partytime-logo-text {
    font-size: 80px !important;
  }
  .btn {
    width: 100%;
  }
  .join-room-form {
    flex-direction: column;
  }
  .header-content {
    flex-direction: row;
    gap: 10px;
    padding: 10px 15px;
  }
  .room-title h1 {
    font-size: 1.2rem;
  }
  .header-buttons {
    gap: 6px;
  }
  .members-panel {
    position: fixed;
    left: 0;
    top: 62px;
    height: calc(100dvh - 62px);
    bottom: 0;
    width: 200px;
    z-index: 40;
    transform: translateX(-100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
  }
  .members-panel.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .content-panel {
    padding: 15px;
    width: 100%;
  }
  .header-btn,
  .members-toggle-btn {
    min-width: 40px;
    height: 40px;
    padding: 6px;
  }
  .header-btn svg,
  .members-toggle-btn svg {
    width: 18px;
    height: 18px;
  }
  .partytime-logo-text {
    font-size: 56px !important;
  }
  .qr-code-container,
  .qr-loading {
    width: 150px;
    height: 150px;
  }
  .qr-code-image {
    width: 100%;
    height: 100%;
  }
}
@media (max-width: 480px) {
  .header-content {
    padding: 8px 10px;
    gap: 8px;
  }
  .room-title h1 {
    font-size: 1rem;
  }
  .header-btn,
  .members-toggle-btn {
    min-width: 36px;
    height: 36px;
    padding: 5px;
  }
  .header-btn svg,
  .members-toggle-btn svg {
    width: 16px;
    height: 16px;
  }
  .members-panel {
    position: fixed;
    top: 54px;
    left: 0;
    height: calc(100dvh - 54px);
    width: 180px;
    z-index: 40;
    transform: translateX(-100%);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
  }
  .content-panel {
    padding: 10px;
    width: 100%;
  }
  .lobby-logo .partytime-logo-text {
    font-size: 60px !important;
  }
}
.toggle-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: #667eea;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}
.toggle-label {
  font-weight: 500;
  color: #667eea;
  min-width: 30px;
}
.user-toggles {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.player-icon {
  background-color: rgba(34, 197, 94, 0.2);
  color: #16a34a;
}
.narrator-icon {
  background-color: rgba(59, 130, 246, 0.2);
  color: #2563eb;
}
.admin-icon {
  background-color: rgba(245, 158, 11, 0.2);
  color: #d97706;
}
.toggle-icon:hover {
  transform: scale(1.1);
}
/*# sourceMappingURL=client.css.map */
