@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing & Radius */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 999px;

  --space-unit: 8px;

  /* ============================
     Emerald Dark Theme
     ============================ */

  /* Backgrounds */
  --bg-dark: #071f18;
  --bg-gradient: linear-gradient(135deg,
      #071f18 0%,
      #0f3d2e 45%,
      #061a15 100%);

  /* Glass cards */
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);

  /* Text */
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);

  /* Primary Accent (CTA / Title) */
  --accent-primary: #fb923c;
  --accent-gradient: linear-gradient(120deg,
      #fdba74 0%,
      #f97316 100%);

  /* Secondary Accent (links, chips, category labels) */
  --accent-secondary: #34d399;
  /* emerald-400 */
  --accent-secondary-gradient: linear-gradient(120deg,
      #6ee7b7 0%,
      #34d399 100%);

  --success: #34d399;

  --btn-shadow-color: rgba(251, 146, 60, 0.35);
  --btn-shadow-color-hover: rgba(251, 146, 60, 0.5);
  /* Inputs */
  --input-bg: rgba(0, 0, 0, 0.22);
  --input-focus-bg: rgba(0, 0, 0, 0.38);

}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  background: var(--title-gradient, var(--accent-gradient));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

.small {
  /* color: var(--text-muted); */
  font-size: 0.875rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Components */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.grid-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Forms */
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--input-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.2);
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent-primary);
}

/* Buttons */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--accent-gradient);
  color: white;
  transition: all 0.2s;
  box-shadow: 0 4px 15px var(--btn-shadow-color);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--btn-shadow-color-hover);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
  background: #555;
}

button.secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  box-shadow: none;
}

button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

button.small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Utilities */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Enhanced Preview Container */
.preview-container {
  margin-top: 12px;
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--glass-border);
}

.preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s forwards;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 0;
}

.modal-overlay>.modal-content.card {
  position: relative;
  z-index: 1;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-gradient);
  border: 1px solid var(--glass-border);
}

.modal-overlay>.modal-content.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  border-radius: inherit;
  z-index: -1;
}

.modal {
  position: relative;
  background: var(--bg-gradient);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 450px;
  padding: 24px;
  transform: scale(0.95);
  opacity: 0;
  animation: scaleIn 0.2s 0.1s forwards;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}

@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.modal-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.modal-input {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: white;
  margin-top: 8px;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.2s;
}

.modal-btn.primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-btn.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.modal-btn:hover {
  transform: translateY(-1px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Margin Top */
.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 12px;
}

.mt-3 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 24px;
}

.mt-5 {
  margin-top: 32px;
}

.mt-6 {
  margin-top: 40px;
}

/* Margin Bottom */
.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 12px;
}

.mb-3 {
  margin-bottom: 16px;
}

.mb-4 {
  margin-bottom: 24px;
}

.mb-5 {
  margin-bottom: 32px;
}

/* Margin Left/Right */
.ml-1 {
  margin-left: 8px;
}

.ml-2 {
  margin-left: 10px;
}

.mr-1 {
  margin-right: 8px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Padding */
.p-0 {
  padding: 0;
}

.p-2 {
  padding: 12px;
}

.p-3 {
  padding: 16px;
}

.p-4 {
  padding: 24px;
}

.p-5 {
  padding: 32px;
}

.p-6 {
  padding: 40px;
}

.pt-3 {
  padding-top: 16px;
}

.py-3 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.px-2 {
  padding-left: 12px;
  padding-right: 12px;
}

/* Gap */
.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 12px;
}

.gap-3 {
  gap: 16px;
}

.gap-4 {
  gap: 24px;
}

/* Display */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-inline {
  display: inline-block;
}

.d-grid {
  display: grid;
}

/* Flexbox */
.flex-1 {
  flex: 1;
}

.flex-auto {
  flex: 0 0 auto;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center,
.align-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Text Size */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.85rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.1rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 2rem;
}

.text-4xl {
  font-size: 3rem;
}

.text-5xl {
  font-size: 4rem;
}

.text-6xl {
  font-size: 5rem;
}

/* Text Color */
.text-accent {
  color: var(--accent-primary);
}

.text-accent-secondary {
  color: var(--accent-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-white {
  color: white;
}

/* Text Style */
.font-mono {
  font-family: monospace;
}

.font-bold {
  font-weight: 600;
}

.font-normal {
  font-weight: 400;
}

.uppercase {
  text-transform: uppercase;
}

.no-underline {
  text-decoration: none;
}

.tracking-wide {
  letter-spacing: 4px;
}

/* Opacity */
.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

/* Width & Height */
.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.max-w-sm {
  max-width: 400px;
}

.max-w-md {
  max-width: 640px;
}

.max-w-lg {
  max-width: 960px;
}

.max-w-xl {
  max-width: 1200px;
}

.max-w-2xl {
  max-width: 1400px;
}

/* Border */
.border-top {
  border-top: 1px solid var(--glass-border);
}

.border-bottom {
  border-bottom: 1px solid var(--glass-border);
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* Background */
.bg-dark {
  background: rgba(0, 0, 0, 0.2);
}

.bg-subtle {
  background: rgba(255, 255, 255, 0.05);
}

.bg-black {
  background: black;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

.cursor-grab {
  cursor: grab;
}

/* Position */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Z-Index */
.z-10 {
  z-index: 10;
}

.z-100 {
  z-index: 100;
}

.z-1000 {
  z-index: 1000;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.whitespace-pre {
  white-space: pre-wrap;
}

/* Shadows */
.shadow-lg {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Filters */
.grayscale {
  filter: grayscale(1);
}

/* Object Fit */
.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

/* ============================================
   COMPONENT CLASSES
   ============================================ */

/* Form Groups */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.9rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
}

.form-row {
  display: flex;
  gap: 8px;
}

/* Link Buttons */
.link-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 10px;
  cursor: pointer;
}

/* Status Section */
.status-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.status-title {
  margin-bottom: 8px;
}

/* Admin Layout */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Content Box (TV View) - Basic layout only, TV has its own visual styles */
.content-box {
  text-align: center;
  padding: 40px;
}

/* Full-width content box for recap */
.content-box.recap-container {
  max-width: none;
  width: 100vw;
  padding: 40px 60px;
}

.main-title {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Category/Player List Items */
.list-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-item-content {
  flex: 1;
}

.list-item-actions {
  display: flex;
  gap: 8px;
}

/* Session List (Super Admin) */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.session-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.session-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.7;
}

.session-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Image Thumb */
.img-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.img-lg {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: contain;
  background: black;
}

/* Empty State */
.placeholder-box {
  height: 200px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

/* Success Box */
.success-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-code {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

/* Result Link */
.result-link {
  display: block;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 8px;
  text-align: left;
}

.data-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table .cell-code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.data-table .cell-date {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Action Buttons */
.action-link {
  padding: 6px 12px;
  text-decoration: none;
  background: rgba(79, 172, 254, 0.2);
}

.btn-danger {
  color: #f5576c;
}

/* Status Colors */
.status-setup {
  background: rgba(255, 255, 255, 0.1);
}

.status-running {
  background: rgba(79, 172, 254, 0.3);
}

.status-recap {
  background: rgba(245, 87, 108, 0.3);
}

.status-finished {
  background: rgba(0, 255, 136, 0.3);
}

/* Empty State Text */
.empty-state {
  opacity: 0.5;
  text-align: center;
  padding: 24px;
}

/* Error Text */
.error-text {
  color: #f5576c;
}

/* TV View Specific */
.tv-subtitle {
  font-size: 2rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.tv-tagline {
  font-size: 1.5rem;
  opacity: 0.6;
  margin-top: 24px;
}

.tv-tagline-lg {
  font-size: 2rem;
  opacity: 0.8;
  margin-top: 24px;
}

.tv-wrap-text {
  font-size: 2rem;
  color: var(--accent-secondary);
  margin-bottom: 24px;
}

.tv-title-xl {
  font-size: 5rem;
  margin-bottom: 20px;
}

.tv-title-xxl {
  font-size: 6rem;
  margin-bottom: 20px;
}

.tv-title-lg {
  font-size: 4rem;
  margin-bottom: 20px;
}

.tv-title-md {
  font-size: 3rem;
}

/* Recap Grid */
.recap-container {
  width: 100%;
  max-width: 100%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.recap-title {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 32px;
  color: var(--text-main);
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  width: 100%;
  align-items: start;
}

.recap-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.recap-card-title {
  color: var(--accent-secondary);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  text-align: center;
  font-size: 1.6rem;
}

/* Players in columns - flexible sizing */
.recap-players {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.recap-player-col {
  min-width: 0;
  /* Allow shrinking */
}

.recap-player-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-align: left;
  color: var(--accent-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Picks as numbered rows */
.recap-picks-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recap-pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recap-pick-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
}

.recap-pick-title {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.recap-no-picks {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  text-align: left;
}

/* Audio Overlay */
.audio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.audio-prompt {
  text-align: center;
  color: white;
}

.audio-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.audio-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* Audio Unlock Button */
.audio-unlock-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pre-session screen */
.pre-session-icon {
  margin-top: 32px;
  font-size: 2.5rem;
}

.pre-session-hint {
  font-size: 0.9rem;
  opacity: 0.5;
  margin-top: 8px;
}

/* Intro slide */
.intro-subtitle {
  font-size: 2rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

/* Meta separator */
.meta-separator {
  margin: 0 12px;
  opacity: 0.5;
}

/* Player Page Specific */
.player-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.player-title {
  margin: 0;
}

.bookmark-btn {
  cursor: pointer;
  text-decoration: none;
  filter: grayscale(1);
  opacity: 0.8;
}

.now-playing-container {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls-section {
  margin-top: 24px;
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
}

.controls-section .row {
  flex-wrap: nowrap;
}

.control-btn {
  flex: 1;
  min-width: 70px;
  min-height: 60px;
  height: auto;
}

.control-btn-lg {
  font-size: 1.1rem;
}

.btn-preview-text {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-section-header {
  margin-top: 24px;
  font-size: 1.1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}

.pick-output {
  margin-top: 10px;
  text-align: center;
  min-height: 1.2em;
}

/* Session State Displays */
.state-box {
  text-align: center;
  padding: 40px;
}

.state-title {
  color: var(--text-muted);
}

.state-hint {
  margin-top: 12px;
  opacity: 0.6;
}

/* Active Pick Card */
.pick-card {
  width: 100%;
  text-align: center;
}

.pick-category-badge {
  margin-bottom: 12px;
  background: var(--accent-gradient);
  color: white;
}

.pick-media-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pick-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.pick-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

/* Intro Slide */
.intro-label {
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

/* Turn Indicators */
.your-turn {
  font-weight: bold;
  color: var(--accent-primary);
  margin-top: 4px;
}

.waiting-turn {
  color: var(--text-muted);
  margin-top: 4px;
}

/* Font Style */
.italic {
  font-style: italic;
}

/* Admin Page Specific */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.theme-select {
  width: auto;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-muted);
}

.admin-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Phase Control Buttons */
.phase-btn {
  flex: 1;
  background: var(--accent-secondary-gradient);
}

/* Category/Player List */
.category-list,
.player-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item,
.player-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Remove button for player items */
.remove-player-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  line-height: 1;
  box-shadow: none;
}

.player-item:hover .remove-player-btn {
  opacity: 0.6;
}

.remove-player-btn:hover {
  opacity: 1 !important;
  color: #f87171;
  transform: none;
}

/* Score adjustment buttons */
.adjust-score-btn {
  padding: 4px 10px !important;
  font-size: 1rem !important;
  min-width: 32px;
  line-height: 1;
}

.item-handle {
  cursor: grab;
  opacity: 0.5;
}

.item-content {
  flex: 1;
}

.item-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.item-actions {
  display: flex;
  gap: 8px;
}

/* Clickable item content (for inline editing) */
.item-content-clickable {
  cursor: pointer;
  transition: color 0.2s;
}

.item-content-clickable:hover {
  color: var(--accent-primary);
}

/* Inline edit input */
.edit-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

/* Intro Checkbox */
.intro-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Category Add Form */
.category-add-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* Debug Panel */
.debug-panel {
  margin-top: 24px;
}

.debug-content {
  max-height: 400px;
  overflow: auto;
  font-family: monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
}

/* Now Playing Display */
.now-playing-state {
  text-align: center;
  padding: 32px;
}

.now-playing-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.now-playing-title {
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.now-playing-title-alt {
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.now-playing-desc {
  opacity: 0.7;
}

.now-playing-desc-sm {
  opacity: 0.5;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Active Pick Display */
.pick-display {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pick-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.pick-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-details {
  flex: 1;
  min-width: 0;
}

.pick-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pick-badge-primary {
  background: var(--accent-gradient);
  color: white;
}

.pick-text {
  margin: 0 0 8px 0;
}

.pick-url {
  font-size: 0.85rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 8px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.pick-up-next {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

.pick-progress {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pick-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.pick-dot-active {
  background: var(--accent-primary);
}

/* List Item Action Buttons */
.list-btn {
  padding: 4px 8px;
}

.list-btn-danger {
  color: var(--accent-secondary);
}

/* Admin Badge */
.admin-tag {
  padding: 4px 8px;
  opacity: 0.5;
  font-size: 0.8rem;
}

/* Waiting State */
.waiting-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Last pick indicator */
.last-pick {
  color: var(--accent-secondary);
}

/* Up next indicator */
.up-next-text {
  opacity: 0.7;
}

/* Reconnect Overlay (shown when disconnected) */
.reconnect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.reconnect-content {
  text-align: center;
  color: white;
}

.reconnect-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.reconnect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--btn-shadow-color);
  transition: all 0.2s;
}

.reconnect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--btn-shadow-color-hover);
}

/* ============================================
   QUIZ APP SPECIFIC STYLES
   ============================================ */

/* Admin Page */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

@media (max-width: 768px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.rounds-list,
.questions-list {
  margin-top: 16px;
}

.round-item,
.question-item {
  padding: 12px 16px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.round-item.round-draggable {
  cursor: grab;
}

.round-item.round-draggable:active {
  cursor: grabbing;
}

.question-item {
  margin-left: 16px;
}

.question-item.question-draggable {
  cursor: grab;
}

.question-item.question-draggable:active {
  cursor: grabbing;
}

/* Reorder handles - show on desktop, hide on mobile */
.reorder-handle {
  cursor: grab;
  opacity: 0.5;
  font-size: 1rem;
  user-select: none;
}

.reorder-handle:hover {
  opacity: 1;
}

/* Reorder buttons - hide on desktop, show on mobile */
.reorder-buttons {
  display: none;
  gap: 4px;
}

.reorder-buttons button {
  padding: 4px 8px;
  min-width: 28px;
}

@media (max-width: 768px) {
  .reorder-handle {
    display: none;
  }

  .reorder-buttons {
    display: flex;
  }
}

/* Round toggle arrow */
.round-toggle {
  opacity: 0.6;
  font-size: 0.8rem;
  user-select: none;
}

.round-toggle:hover {
  opacity: 1;
}

.option-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.option-row input[type="text"] {
  flex: 1;
}

.option-row input[type="radio"] {
  width: auto;
}

.game-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-gradient);
}

.timer-display {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  padding: 24px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  margin: 16px 0;
}

.answer-progress {
  text-align: center;
  font-size: 1.25rem;
  margin: 16px 0;
}

.answer-card {
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}

.answer-card.graded {
  opacity: 0.7;
}

.answer-card button.small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.badge.success {
  background: rgba(104, 211, 145, 0.3);
  color: #68d391;
}

/* Player Page */
.timer-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
  background: var(--glass-bg);
}

.timer-ring.warning {
  border-color: #f6ad55;
  color: #f6ad55;
}

.timer-ring.danger {
  border-color: #fc8181;
  color: #fc8181;
}

.option-btn {
  width: 100%;
  padding: 16px 24px;
  margin-bottom: 12px;
  text-align: left;
  font-size: 1.1rem;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.option-btn:hover {
  border-color: var(--accent-primary);
}

.option-btn.selected {
  border-color: var(--accent-primary);
  background: rgba(240, 147, 251, 0.2);
}

.option-btn.correct {
  border-color: #68d391;
  background: rgba(104, 211, 145, 0.2);
}

.option-btn.incorrect {
  border-color: #fc8181;
  background: rgba(252, 129, 129, 0.2);
}

.option-label {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  margin-right: 12px;
  font-weight: 700;
}

.waiting-screen {
  text-align: center;
  padding: 48px 24px;
}

.waiting-screen h2 {
  margin-bottom: 16px;
}

.player-score {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 16px 0;
}

.result-feedback {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  margin: 16px 0;
}

.result-feedback.correct {
  background: rgba(104, 211, 145, 0.2);
}

.result-feedback.incorrect {
  background: rgba(252, 129, 129, 0.2);
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.leaderboard-item.me {
  border: 2px solid var(--accent-primary);
}

.rank {
  font-weight: 700;
  width: 30px;
}

/* TV View */
.tv-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.tv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tv-title {
  font-size: 2rem;
}

.tv-code {
  font-size: 1.5rem;
  font-weight: 700;
}

.tv-timer {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  padding: 16px 24px;
  min-width: 120px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  transition: color 0.3s;
  z-index: 10;
}

.tv-timer.warning {
  color: #f6ad55;
}

.tv-timer.danger {
  color: #fc8181;
  animation: pulse 0.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.tv-question {
  font-size: 2.5rem;
  text-align: center;
  margin: 32px 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.tv-option {
  padding: 24px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tv-option.correct {
  background: rgba(104, 211, 145, 0.3);
  border: 3px solid #68d391;
}

.tv-option-label {
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: var(--accent-gradient);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.5rem;
}

.tv-progress {
  text-align: center;
  font-size: 1.25rem;
  margin-top: 16px;
}

.tv-leaderboard {
  max-width: 600px;
  margin: 0 auto;
}

.tv-leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.tv-leaderboard-item:first-child {
  background: var(--accent-gradient);
  border: 2px solid var(--accent-primary);
}

.tv-rank {
  font-weight: 700;
  width: 40px;
}

.tv-lobby {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 1rem;
  margin: 24px auto;
}

.player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.player-chip {
  padding: 12px 20px;
  background: var(--glass-bg);
  border-radius: 999px;
  font-size: 1.25rem;
}

/* TV View body overflow hidden */
body.tv-body {
  overflow: hidden;
}

/* Open-ended answer display styles */
.open-answers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.open-answer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
}

.badge-success {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(104, 211, 145, 0.3);
  color: #68d391;
}

.badge-warning {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(246, 173, 85, 0.3);
  color: #f6ad55;
}

.badge-danger {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(252, 129, 129, 0.3);
  color: #fc8181;
}

/* Podium Styles */
.finished-title {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 32px;
  animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.podium-section {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 20px;
}

.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  transform: scale(0.95);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.podium-place.revealed {
  opacity: 1;
  transform: scale(1);
}

.podium-player {
  text-align: center;
  padding: 16px 24px;
  margin-bottom: 8px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  min-width: 160px;
}

.podium-rank {
  font-size: 3rem;
  margin-bottom: 8px;
}

.podium-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  transition: filter 2s ease;
}

.podium-name.blurred {
  filter: blur(8px);
  user-select: none;
}

.podium-score {
  font-size: 1.2rem;
  opacity: 0.8;
}

.podium-bar {
  width: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.podium-bar-1 {
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 215, 0, 0.2) 100%);
  border: 3px solid rgba(255, 215, 0, 0.5);
  border-bottom: none;
}

.podium-bar-2 {
  height: 130px;
  background: linear-gradient(180deg, rgba(192, 192, 192, 0.4) 0%, rgba(192, 192, 192, 0.2) 100%);
  border: 3px solid rgba(192, 192, 192, 0.5);
  border-bottom: none;
}

.podium-bar-3 {
  height: 90px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.4) 0%, rgba(205, 127, 50, 0.2) 100%);
  border: 3px solid rgba(205, 127, 50, 0.5);
  border-bottom: none;
}

.podium-first .podium-player {
  border: 2px solid rgba(255, 215, 0, 0.5);
}

.podium-second .podium-player {
  border: 2px solid rgba(192, 192, 192, 0.5);
}

.podium-third .podium-player {
  border: 2px solid rgba(205, 127, 50, 0.5);
}

.podium-place.revealed.podium-first .podium-player {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, var(--glass-bg) 100%);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.podium-place.revealed.podium-second .podium-player {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, var(--glass-bg) 100%);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}

.podium-place.revealed.podium-third .podium-player {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, var(--glass-bg) 100%);
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

.final-leaderboard-rest {
  padding: 20px 40px;
  max-width: 600px;
  margin: 0 auto;
}

/* Reveal button styles */
.reveal-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.reveal-btn {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
}

.reveal-btn:hover:not(:disabled) {
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
}

.reveal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reveal-btn.revealed {
  background: rgba(104, 211, 145, 0.2);
  border-color: #68d391;
}

/* Progressive reveal leaderboard - Table Layout */
.final-reveal-leaderboard {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 40px;
}

.blurred-name {
  filter: blur(8px);
  user-select: none;
}

.blurred-text {
  filter: blur(8px);
  user-select: none;
}

.blurred-text.unblurred {
  animation: unblur 2s ease forwards;
}

@keyframes unblur {
  from {
    filter: blur(8px);
  }

  to {
    filter: blur(0);
  }
}

/* Reveal Table */
.reveal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.reveal-table thead {
  background: rgba(255, 255, 255, 0.1);
}

.reveal-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}

.reveal-table th.col-place {
  width: 80px;
  text-align: center;
}

.reveal-table th.col-score {
  width: 140px;
  text-align: right;
}

/* Reveal Rows */
.reveal-row {
  transition: all 0.5s ease;
  opacity: 0.5;
  background: transparent;
}

.reveal-row td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
}

.reveal-row.col-place {
  text-align: center;
  font-size: 1.4rem;
}

.reveal-row td.col-score {
  text-align: right;
}

.reveal-row.revealed {
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}

.reveal-row.revealed .blurred-text {
  filter: blur(0);
}

/* Top 3 special styling */
.reveal-row.top-1 td {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px;
}

.reveal-row.top-2 td {
  font-size: 1.3rem;
  font-weight: 500;
  padding: 18px 20px;
}

.reveal-row.top-3 td {
  font-size: 1.2rem;
  font-weight: 500;
  padding: 18px 20px;
}

/* Large white rank numbers */
.rank-number {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  display: inline-block;
  min-width: 40px;
  text-align: center;
}

.reveal-row.top-1 .rank-number {
  font-size: 2.5rem;
}

.reveal-row.top-2 .rank-number {
  font-size: 2.2rem;
}

.reveal-row.top-3 .rank-number {
  font-size: 2rem;
}

/* Score badges */
.score-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9em;
  font-weight: 600;
  color: white;
}

/* Primary gradient for #1 */
.score-badge.badge-first {
  background: var(--accent-gradient);
}

/* Secondary gradient for #2 and lower */
.score-badge.badge-rest {
  background: var(--accent-secondary-gradient);
}

/* Answer Tally Display */
.answer-tally {
  padding: 10px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.answer-tally.correct {
  border-color: var(--success);
}

.tally-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.tally-fill {
  height: 100%;
  background: var(--text-muted);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.tally-fill.correct {
  background: var(--success);
}

.answer-card {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.answer-card.graded {
  opacity: 0.7;
}

/* Round Edit Input */
.round-edit-input {
  flex: 1;
  padding: 4px 8px;
  font-size: inherit;
}

.round-name-clickable:hover {
  color: var(--accent-primary);
}