:root {
  color-scheme: light dark;
  touch-action: pan-x pan-y;
  height: 100%;
  /* Border colors */
  --color-border-light: #ccc;
  --color-border-dark: #444;
  /* Semantic colors */
  --color-error: #b00020;
  --color-link: #0645ad;
  --color-link-dark: #8ab4ff;
  --color-text-muted: #666;
  --color-text-muted-dark: #aaa;
  /* Animation durations */
  --anim-duration-flip: 0.5s;
  --anim-duration-pop: 0.25s;
  --anim-duration-shake: 0.45s; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  margin: 1.25rem 1.5rem 1.5rem 1.5rem;
  line-height: 1.45;
  padding-bottom: 3rem; }

h3 {
  margin-top: 0;
  align-self: center; }

.panel {
  border: 1px solid var(--color-border-light);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  max-width: 640px; }

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 14px; }

.kv div.label {
  font-weight: 600; }

footer {
  margin-top: 3rem;
  font-size: 12px;
  opacity: 0.7; }

a {
  color: var(--color-link); }

/* Remove underlines from button-like links */
button,
a.btn,
a.btn-icon,
a.btn-help-icon,
a.btn-theme,
a[role='button'] {
  text-decoration: none; }
  button:hover,
  a.btn:hover,
  a.btn-icon:hover,
  a.btn-help-icon:hover,
  a.btn-theme:hover,
  a[role='button']:hover {
    text-decoration: none; }

@media (prefers-color-scheme: dark) {
  .panel {
    border-color: var(--color-border-dark);
    background: #1e1f22; }
  a {
    color: var(--color-link-dark); } }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: #0366d6;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.5px; }

/* Imports */
/* YOXYX Logo Component */
.logo-yoxyx {
  display: inline-flex;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  /* Responsive sizing */ }
  @media (max-width: 520px) {
    .logo-yoxyx {
      font-size: 1.1rem;
      gap: 0.2rem; } }
.logo-letter {
  position: relative;
  padding-bottom: 0.2rem;
  display: inline-block; }
  .logo-letter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 1px; }
  .logo-letter[data-state='correct']::after {
    background: var(--color-state-correct); }
  .logo-letter[data-state='present']::after {
    background: var(--color-state-present); }
  .logo-letter[data-state='absent']::after {
    background: var(--color-state-absent); }

/* SVG logo variants */
.logo-svg {
  display: inline-block;
  height: auto; }
  .logo-svg.logo-svg--full {
    width: 240px;
    max-width: 100%; }
  .logo-svg.logo-svg--icon {
    width: 48px;
    height: 48px; }
  .logo-svg.logo-svg--small {
    width: 120px; }

/* Logo link wrapper */
a.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.15s ease; }
  a.logo-link:hover {
    opacity: 0.85; }
  a.logo-link:active {
    transform: scale(0.98); }
  a.logo-link:focus-visible {
    outline: 2px solid var(--color-focus-outline);
    outline-offset: 4px;
    border-radius: 4px; }

/* Game board & keyboard partial */
/* CSS variables for theming */
:root {
  --color-key-bg: #d3d6da;
  --color-key-fg: #111;
  --color-key-bg-active: #ccc;
  --color-state-correct: #219653;
  --color-state-present: #ffa500;
  --color-state-absent: #bababc;
  --color-cell-border: #888;
  --color-cell-border-dark: #555;
  --color-focus-outline: var(--color-state-present);
  --state-underline-thickness: 3px;
  /* Top bar button colors */
  --color-btn-history: #9b59b6;
  --color-btn-theme: #f39c12;
  --color-btn-profile: #3498db;
  /* Button colors by function */
  --color-btn-help: #27ae60;
  --color-btn-navigation: #7f8c8d;
  --color-btn-back-home: #95a5a6;
  --color-btn-share: #4a9eff;
  /* Background colors */
  --color-bg-hover-light: rgba(127, 127, 127, 0.15);
  --color-bg-table-row-even-light: rgba(0, 0, 0, 0.05);
  --color-bg-table-row-even-dark: rgba(255, 255, 255, 0.05);
  /* Animation durations now in babel.scss root */ }

@media (prefers-color-scheme: dark) {
  :root {
    --color-key-bg: #818384;
    --color-key-fg: #fff;
    --color-state-correct: #2ad424;
    --color-state-present: #ffd700;
    --color-state-absent: #9a9a9c;
    /* unchanged */ } }

/* Explicit high contrast theme override */
[data-theme='high-contrast'] {
  --color-key-bg: #000;
  --color-key-fg: #fff;
  --color-state-correct: #00c853;
  --color-state-present: #ffd600;
  --color-state-absent: #616161;
  --color-cell-border: #ffffff;
  --color-cell-border-dark: #ffffff;
  --color-focus-outline: #ff9100; }

/* Retro palette option */
[data-theme='retro'] {
  --color-key-bg: #f4e7c3;
  --color-key-fg: #3b2f1a;
  --color-state-correct: #4b9c4b;
  --color-state-present: #d4aa21;
  --color-state-absent: #8b6f47;
  --color-cell-border: #b8a078;
  --color-cell-border-dark: #a58e69;
  --color-focus-outline: #d47f1a; }

/* State classes */
.state-correct,
.state-present,
.state-absent {
  font-weight: 800; }

.state-correct {
  color: var(--color-state-correct) !important;
  background: transparent !important;
  box-shadow: inset 0 calc(-1 * var(--state-underline-thickness)) 0 var(--color-state-correct); }

.state-present {
  color: var(--color-state-present) !important;
  background: transparent !important;
  box-shadow: inset 0 calc(-1 * var(--state-underline-thickness)) 0 var(--color-state-present); }

.state-absent {
  color: var(--color-state-absent) !important;
  background: transparent !important;
  box-shadow: inset 0 calc(-1 * var(--state-underline-thickness)) 0 var(--color-state-absent); }

/* Layout overrides */
.board {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center; }

.board-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem; }

.board-cell {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--color-cell-border);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
  position: relative; }

@media (prefers-color-scheme: dark) {
  .board-cell {
    border-color: var(--color-cell-border-dark); } }

.board-cell.state-absent,
.board-cell.state-present,
.board-cell.state-correct {
  border-color: transparent; }

.board-cell.state-correct,
.board-cell.state-present {
  font-weight: 800; }

.board-cell.state-absent {
  font-weight: 600;
  font-size: smaller; }

.keyboard {
  margin-top: 1rem; }

.kb-row {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin: 0.35rem 0; }

.kb-key {
  min-width: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-key-bg);
  color: var(--color-key-fg);
  border-radius: 4px;
  font-size: 1.75rem;
  padding: 0.5rem 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.2s ease, box-shadow 0.25s ease, transform 0.12s ease, background 0.25s ease; }

.kb-key:active {
  filter: brightness(0.85); }

/* Animation hooks */
@keyframes flip-in {
  0% {
    transform: rotateX(0deg); }
  50% {
    transform: rotateX(90deg); }
  100% {
    transform: rotateX(0deg); } }

@keyframes pop {
  0% {
    transform: scale(1); }
  50% {
    transform: scale(1.1); }
  100% {
    transform: scale(1); } }

@keyframes shake {
  0%,
  100% {
    transform: translateX(0); }
  20%,
  60% {
    transform: translateX(-4px); }
  40%,
  80% {
    transform: translateX(4px); } }

.anim-flip {
  animation: flip-in var(--anim-duration-flip) ease;
  transform-style: preserve-3d; }

.anim-pop {
  animation: pop var(--anim-duration-pop) ease; }

.anim-shake {
  animation: shake var(--anim-duration-shake) ease; }

/* Utility for focus accessibility */
.kb-key:focus {
  outline: 2px solid var(--color-focus-outline);
  outline-offset: 2px; }

/* Visibility helpers */
.is-hidden {
  display: none !important; }

/* Finished game call-to-action */
.game-finished-cta {
  margin-top: 2rem;
  text-align: center;
  animation: fade-in 0.35s ease; }

.game-finished-actions {
  display: inline-flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center; }

.game-action-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem; }

.game-action-item {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; }
  .game-action-item .btn-icon, .game-action-item .btn-help-icon,
  .game-action-item .btn-theme {
    font-size: 1.25rem;
    text-decoration: none; }
    .game-action-item .btn-icon:hover, .game-action-item .btn-help-icon:hover,
    .game-action-item .btn-theme:hover {
      opacity: 0.8; }
  .game-action-item .action-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-key-fg);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2; }
  .game-action-item.hidden {
    visibility: hidden; }

.challenge-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem; }
  .challenge-actions .btn-challenge-fixed {
    color: var(--color-state-present); }
  .challenge-actions .btn-challenge-progressive {
    color: var(--color-error); }

.summary-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem; }

.summary-footer {
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between; }

/* Profile page tweaks */
.player-info {
  margin: 3.5rem 0.5rem 2.5rem 0.5rem; }

/* History section - used on profile/history pages */
.history-section {
  margin-top: 2rem;
  margin-bottom: 1rem; }

/* History table - profile page variant */
.profile-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem; }
  .profile-history-table th,
  .profile-history-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--color-cell-border); }
  .profile-history-table th {
    text-align: left; }
    .profile-history-table th i {
      font-size: 1rem;
      opacity: 0.9; }
  .profile-history-table a {
    color: inherit;
    text-decoration: none; }
    .profile-history-table a:hover {
      text-decoration: underline; }

.pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 1rem 1.5rem; }

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease; }

.pagination .page-link:hover {
  background: var(--color-bg-hover-light); }

.pagination .page-status {
  font-weight: 600; }

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px); }
  to {
    opacity: 1;
    transform: translateY(0); } }

/* Status bar & loading */
.status-bar {
  min-height: 1.4rem;
  text-align: center;
  font-size: 0.875rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-key-fg); }

.status-bar.is-error {
  color: var(--color-error); }

.is-loading .board-row {
  opacity: 0.6; }

.top-bar-controls {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 1.7rem);
  display: inline-flex;
  gap: 0.6rem;
  padding: 0.25rem 0.35rem;
  align-items: center;
  z-index: 1000;
  pointer-events: auto;
  /* If more controls added later, prevent wrapping jitter */
  flex-wrap: nowrap;
  background: none; }
  .top-bar-controls.right {
    right: calc(env(safe-area-inset-right, 0px) + 0.5rem); }
  .top-bar-controls.left {
    left: calc(env(safe-area-inset-left, 0px) + 0.5rem); }
  .top-bar-controls.summary, .top-bar-controls.profile {
    top: calc(env(safe-area-inset-top, 0px) + 1.25rem); }
  .top-bar-controls label {
    font-size: 0.85rem;
    font-weight: 600; }
  .top-bar-controls select {
    padding: 0.25rem 0.5rem;
    font: inherit; }

/* Color for top bar icons */
.btn-history {
  color: var(--color-btn-history);
  /* Purple for history */ }

.btn-theme {
  color: var(--color-btn-theme);
  /* Amber/orange for theme toggle */ }

.btn-profile {
  color: var(--color-btn-profile);
  /* Blue for profile */ }

/* Icon-only buttons (theme, help, and generic icon buttons) */
.btn-icon, .btn-help-icon,
.btn-theme {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.2s ease; }
  .btn-icon:hover, .btn-help-icon:hover,
  .btn-theme:hover {
    transform: scale(1.1);
    text-decoration: none; }
  .btn-icon:active, .btn-help-icon:active,
  .btn-theme:active {
    transform: scale(0.9); }
  .btn-icon:focus-visible, .btn-help-icon:focus-visible,
  .btn-theme:focus-visible {
    outline: 2px solid var(--color-focus-outline);
    outline-offset: 3px;
    border-radius: 4px; }

/* Specific icon button variants */
.btn-help-icon {
  font-size: 1.25rem;
  color: var(--color-btn-help); }

/* Consistent button colors by function */
.btn-navigation {
  color: var(--color-btn-navigation); }

.btn-back,
.btn-home {
  color: var(--color-btn-back-home); }

.btn-share {
  color: var(--color-btn-share); }

.btn-summary {
  color: var(--color-btn-history); }

.btn-new-game {
  color: var(--color-state-correct); }

.game-heading-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  margin-top: 0.25rem; }

select.game_config {
  font: inherit;
  padding: 0.25rem 0.5rem;
  border: none !important;
  cursor: pointer;
  background: none; }
  select.game_config:focus-visible {
    border: none !important;
    outline: none; }

/* Responsive adjustments */
@media (max-width: 520px) {
  .board-cell {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.75rem; }
  .kb-key {
    padding: 0.5rem 0.4rem;
    font-size: 1.5rem; }
  body.game-page {
    margin: 1rem; }
  /* Keep controls anchored top-right on small screens (no centering) */ }

/* Propagate state styling to keyboard keys */
.kb-key.state-correct,
.kb-key.state-present,
.kb-key.state-absent {
  font-weight: 800;
  background: transparent !important;
  border-radius: 0; }

.kb-key.state-correct {
  color: var(--color-state-correct) !important;
  box-shadow: inset 0 calc(-1 * var(--state-underline-thickness)) 0 var(--color-state-correct); }

.kb-key.state-present {
  color: var(--color-state-present) !important;
  box-shadow: inset 0 calc(-1 * var(--state-underline-thickness)) 0 var(--color-state-present); }

/* Footer layout with right-aligned controls */
.page-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 0.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
  /* allow buttons to still be clickable */ }

.page-footer p {
  margin: 0;
  pointer-events: auto; }

.page-footer .footer-right {
  margin-left: auto;
  pointer-events: auto; }

.kb-key.state-absent {
  color: var(--color-state-absent) !important;
  font-size: smaller;
  box-shadow: inset 0 calc(-1 * var(--state-underline-thickness)) 0 var(--color-state-absent); }

/* High contrast enhancement: increase underline thickness */
[data-theme='high-contrast'] {
  --state-underline-thickness: 4px; }

/* Reduced motion: disable flip/pop/shake animations */
@media (prefers-reduced-motion: reduce) {
  .anim-flip,
  .anim-pop,
  .anim-shake {
    animation: none !important; }
  .kb-key,
  .board-cell {
    transition: none !important; } }

/* History table - page variant with full borders */
.table.page-history-table {
  width: 100%;
  border-collapse: collapse; }
  .table.page-history-table th,
  .table.page-history-table td {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--color-cell-border);
    text-align: center; }
  .table.page-history-table thead th {
    text-align: center;
    font-weight: 600; }
  .table.page-history-table tbody tr:nth-child(even) {
    background: var(--color-bg-table-row-even-light); }
  @media (prefers-color-scheme: dark) {
    .table.page-history-table tbody tr:nth-child(even) {
      background: var(--color-bg-table-row-even-dark); } }
/* Challenge Timer Display */
.challenge-timer {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(127, 127, 127, 0.1);
  border-radius: 8px;
  display: inline-block;
  animation: fade-in 0.3s ease; }
  @media (prefers-color-scheme: dark) {
    .challenge-timer {
      background: rgba(255, 255, 255, 0.08); } }
  .challenge-timer.timer-warning {
    background: rgba(255, 165, 0, 0.15);
    animation: pulse-warning 1s ease-in-out infinite; }
  .challenge-timer.timer-expired {
    background: rgba(255, 0, 0, 0.15);
    animation: none; }

.challenge-timer-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center; }

.timer-display,
.score-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600; }
  .timer-display i,
  .score-display i {
    font-size: 1.2rem;
    opacity: 0.8; }

.timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--color-key-fg); }

.score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-state-correct); }

.score-label {
  font-size: 0.875rem;
  opacity: 0.8;
  color: var(--color-key-fg); }

@keyframes pulse-warning {
  0%, 100% {
    opacity: 1; }
  50% {
    opacity: 0.7; } }

/* Responsive adjustments for challenge timer */
@media (max-width: 520px) {
  .challenge-timer {
    padding: 0.5rem 1rem; }
  .challenge-timer-content {
    gap: 1.5rem; }
  .timer-value,
  .score-value {
    font-size: 1.25rem; }
  .timer-display i,
  .score-display i {
    font-size: 1rem; } }

/* Continue Challenge Button */
.continue-challenge-cta {
  margin-top: 2rem;
  text-align: center;
  animation: fade-in 0.35s ease; }
  .continue-challenge-cta .btn-continue-challenge {
    font-size: 2rem;
    color: var(--color-state-correct); }
    .continue-challenge-cta .btn-continue-challenge:hover {
      transform: scale(1.15); }
  .continue-challenge-cta .action-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-key-fg);
    margin-top: 0.5rem; }

/* Help / Generic Modal Styles */
/* Legacy text-style help button (can be removed if not used) */
.btn-help-text {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-cell-border);
  background: var(--color-key-bg);
  color: var(--color-key-fg);
  border-radius: 4px;
  cursor: pointer; }

.modal[aria-hidden='true'] {
  display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); }

.modal__dialog {
  position: relative;
  max-width: 600px;
  /* default medium size */
  margin: 8vh auto;
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  max-height: 67vh;
  overflow-y: auto; }

/* Modal size variants */
.modal--small .modal__dialog {
  max-width: 400px; }

.modal--medium .modal__dialog {
  max-width: 480px; }

.modal--large .modal__dialog {
  max-width: 480px; }

.modal--fullscreen .modal__dialog {
  max-width: 95vw;
  max-height: 95vh;
  margin: 2.5vh auto; }

@media (prefers-color-scheme: dark) {
  .modal__dialog {
    background: #222;
    color: #eee; } }

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem; }

.modal__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: inherit; }

.modal__body p {
  margin: 0.5rem 0;
  line-height: 1.35; }

.modal__body ul {
  padding-left: 1.1rem;
  margin: 0.5rem 0 1rem; }

.modal__body li {
  margin: 0.25rem 0;
  font-size: 0.85rem; }

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1); }

@media (prefers-color-scheme: dark) {
  .modal__footer {
    border-top-color: rgba(255, 255, 255, 0.15); } }

.modal__close-btn {
  padding: 0.45rem 0.9rem;
  border: none;
  background: var(--color-state-correct);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
  transition: opacity 0.2s ease; }
  .modal__close-btn:hover {
    opacity: 0.85; }

.legend {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px; }

.legend--correct {
  color: var(--color-state-correct);
  border-bottom: solid 2px var(--color-state-correct); }

.legend--present {
  color: var(--color-state-present);
  border-bottom: solid 2px var(--color-state-present); }

.legend--absent {
  color: var(--color-state-absent);
  border-bottom: solid 2px var(--color-state-absent); }

/* Summary attempts table alignment */
.attempts-table-wrapper {
  display: flex;
  justify-content: center; }

.attempts-table {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse; }
  .attempts-table th,
  .attempts-table td {
    padding: 0.35rem 0.5rem; }
  .attempts-table thead th {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8; }
  .attempts-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.04); }
  @media (prefers-color-scheme: dark) {
    .attempts-table tbody tr:nth-child(even) {
      background: rgba(255, 255, 255, 0.05); } }
.attempt-time-cell,
.attempt-elapsed,
.attempts-total-elapsed {
  text-align: right;
  font-variant-numeric: tabular-nums; }

.attempt-index {
  width: 2.25rem;
  text-align: right;
  font-variant-numeric: tabular-nums; }

.attempt-elapsed {
  width: 4rem; }

.attempts-total-row {
  font-weight: 600;
  border-top: 2px solid rgba(0, 0, 0, 0.15); }

@media (prefers-color-scheme: dark) {
  .attempts-total-row {
    border-top-color: rgba(255, 255, 255, 0.2); } }

/* Align column headers to match their content */
.attempt-index-header {
  text-align: right;
  width: 2.25rem; }

.attempt-guess-header {
  text-align: left; }

.attempt-time-header {
  text-align: right; }

.attempt-elapsed-header {
  text-align: right;
  width: 4rem; }

/* Center result icons */
.attempt-result-header,
.attempt-result {
  text-align: center; }

.attempt-result i {
  display: inline-block;
  width: 1.25rem;
  text-align: center; }

/* Welcome page styles */
body.welcome-page .welcome-container {
  max-width: 640px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center; }

body.welcome-page .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: hsl(var(--hue), 70%, 45%);
  color: #fff; }
  body.welcome-page .avatar i {
    font-size: 42px; }

body.welcome-page .lead {
  color: var(--color-text-muted);
  text-align: left; }

body.welcome-page .codename-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0; }

body.welcome-page .codename {
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px; }

body.welcome-page .consent-form {
  margin-top: 1rem;
  text-align: left;
  display: inline-block; }
  body.welcome-page .consent-form label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 40ch; }
  body.welcome-page .consent-form .actions {
    text-align: center;
    margin-top: 1rem; }

body.welcome-page .error {
  color: var(--color-error);
  font-weight: 600; }

@media (prefers-color-scheme: dark) {
  body.welcome-page .lead {
    color: var(--color-text-muted-dark); } }

/*# sourceMappingURL=babel.css.map */