/* Tellimations — shared styles */
/* Palette from prototype, font: Montserrat */

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

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #DB0038;
  --yellow: #F7C200;
  --blue: #519DD9;
  --teal: #53BAC1;
  --light: #EDEDED;
  --dark: #0d0d24;
  --dark2: #16161f;
  --dark3: #1e1e2a;
  --dark4: #2a2a38;
  --font: 'Montserrat', sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
}

body {
  background: #ede6e0;
  color: var(--light);
  font-family: var(--font);
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 400;
}

a { color: var(--teal); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 400;
  border: none;
  border-radius: 14px;
  padding: 14px 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(219,0,56,0.35);
}
.btn-red:hover { box-shadow: 0 6px 28px rgba(219,0,56,0.5); }

.btn-green {
  background: #27ae60;
  color: #fff;
  box-shadow: 0 4px 20px rgba(39,174,96,0.35);
}
.btn-green:hover { box-shadow: 0 6px 28px rgba(39,174,96,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--dark4);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(83,186,193,0.08);
}

.btn-finish {
  background: #53BAC1;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(83,186,193,0.35);
}
.btn-finish:hover {
  box-shadow: 0 6px 28px rgba(83,186,193,0.5);
}

.btn-full { width: 100%; }

/* ---- Login page ---- */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
  position: relative;
  z-index: 10;
}
.login-wrapper::before {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(219,0,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.login-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(81,157,217,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: #d8c4af;
  border-radius: 24px;
  padding: 3rem 2.8rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-logo {
  font-family: var(--font);
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  background-color: #ede6e0;
  border-radius: 14px;
}
.login-logo .t1 { color: var(--red); }
.login-logo .t2 { color: var(--teal); }
.login-logo .t3 { color: var(--yellow); }



.field { margin-bottom: 1.2rem; }
.field label {
  margin-top: 1rem;
  display: block;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 300;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.field input {
  width: 100%;
  background: #bb9777;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--light);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s;
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--blue); }
.field input::placeholder { color: #444; }
.field select {
  width: 100%;
  background: var(--dark);
  border: 2px solid var(--dark4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--light);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option {
  background: var(--dark);
  color: var(--light);
}

.login-btn-wrap { margin-top: 1.6rem; text-align: center; }
.login-btn-wrap .btn { width: 100%; font-size: 1.15rem; padding: 16px; }

/* ---- Selection page ---- */
.selection-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem 2rem;
  gap: 0.4rem;
  width: 100%;
  max-width: 960px;
  position: relative;
  z-index: 10;
}

.sel-title {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.4rem;
}
.sel-title .accent { color: var(--yellow); }

.sel-sub {
  color: #666;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.thumbnails {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  min-height: 200px;
}

/* Thumbnail cards — used on selection and story branch picker */
.thumbnail-card {
  background: linear-gradient(135deg, #ffc461 0%, #ff782d 100%);
  border: none;
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 240px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Per-card colored glow on hover */
.thumbnail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.thumbnail-card:nth-child(1)::before { background: radial-gradient(circle at 50% 30%, rgba(219,0,56,0.12), transparent 70%); }
.thumbnail-card:nth-child(2)::before { background: radial-gradient(circle at 50% 30%, rgba(247,194,0,0.12), transparent 70%); }
.thumbnail-card:nth-child(3)::before { background: radial-gradient(circle at 50% 30%, rgba(81,157,217,0.12), transparent 70%); }
.thumbnail-card:nth-child(4)::before { background: radial-gradient(circle at 50% 30%, rgba(83,186,193,0.12), transparent 70%); }
.thumbnail-card:hover::before { opacity: 1; }

.thumbnail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border-color: var(--teal);
}

.thumbnail-card canvas {
  width: 100%;
  height: 135px;
  border-radius: 10px;
  display: block;
  image-rendering: pixelated;
  background: var(--dark);
}

.thumbnail-card .summary {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #aaa;
  text-align: center;
  line-height: 1.4;
  min-height: 2.8em;
  position: relative;
  z-index: 1;
}

/* Thumbnail loading state — greyed out while masks generate */
.thumbnail-card.loading {
  cursor: not-allowed;
  pointer-events: none;
}
.thumbnail-card.loading canvas {
  filter: brightness(0.4) saturate(0.3);
  transition: filter 0.4s ease;
}
.thumbnail-card.loading .summary {
  opacity: 0.4;
}
.thumbnail-card.loading:hover {
  transform: none;
  box-shadow: none;
}
.thumbnail-card.loading::before {
  opacity: 0 !important;
}

/* Loading spinner overlay on thumbnail cards */
.thumb-loading-overlay {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  padding-bottom: 36px;
}
.thumb-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: thumb-spin 0.8s linear infinite;
}
@keyframes thumb-spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loader — shimmer animation */
.skeleton-card { pointer-events: none; }
.skeleton-card canvas { display: none; }
.skeleton-card .summary { display: none; }

.skeleton-card .skeleton-canvas {
  display: block;
  width: 100%;
  height: 135px;
  border-radius: 10px;
  background: linear-gradient(110deg, var(--dark3) 30%, var(--dark4) 50%, var(--dark3) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-card .skeleton-text {
  display: block;
  height: 0.8rem;
  width: 80%;
  border-radius: 4px;
  background: var(--dark4);
  margin-top: 10px;
}

.skeleton-card .skeleton-text-2 {
  display: block;
  height: 0.8rem;
  width: 55%;
  border-radius: 4px;
  background: var(--dark4);
  margin-top: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Progress bar — selection page generation */
.progress-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--dark3);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--teal));
  transition: width 0.6s ease;
}
.progress-label {
  color: #777;
  font-size: 0.85rem;
  font-family: var(--font);
  text-align: center;
}

.more-wrap { margin-bottom: 3rem; }

/* ---- Story page ---- */
.story-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 2rem 2rem;
  gap: 0.8rem;
  width: 100%;
  max-width: 1200px;
}

/* Scene label — pinned top-left corner */
.story-scene-label {
  position: fixed;
  top: 10px;
  left: 14px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 300;
  color: #555;
  z-index: 10;
}
.story-scene-label span { color: var(--yellow); }
.story-scene-label .home-link {
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}
.story-scene-label .home-link:hover { color: var(--light); }
/* Study page: a row above the canvas instead of floating over its corner */
.story-scene-label.in-flow {
  position: static;
  align-self: flex-start;
}
/* Back reads as a button (a plain "Back" link was not recognisably clickable) */
.story-scene-label .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-right: 10px;
  padding: 7px 16px;
  background: #fff;
  color: #3a302a;
  border: 2px solid #d8c4af;
  border-radius: 12px;
  font-family: 'Nunito', var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.story-scene-label .btn-back:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
}
.story-scene-label .label-sep {
  color: #333;
  margin: 0 4px;
}

/* Canvas wrapper */
.scene-canvas-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border: 3px solid var(--dark3);
}

/* Spinning border while next scene loads */
.scene-canvas-wrapper.scene-loading {
  animation: border-chase 1.2s linear infinite;
}
@keyframes border-chase {
  0%   { border-color: var(--red) transparent transparent transparent; }
  25%  { border-color: transparent var(--yellow) transparent transparent; }
  50%  { border-color: transparent transparent var(--blue) transparent; }
  75%  { border-color: transparent transparent transparent var(--teal); }
  100% { border-color: var(--red) transparent transparent transparent; }
}

.scene-canvas-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.scene-canvas-wrapper canvas.pixel-art {
  image-rendering: pixelated;
  aspect-ratio: 14 / 9;
}

/* Push-to-talk hint (below the box, italic) */
.ptt-hint {
  width: 60%;
  background-color: #d8c4af;
  color: #000;
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 14px;
}
.ptt-hint kbd {
  display: inline-block;
  background: var(--dark4);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font);
  font-size: 0.9em;
  font-style: normal;
  color: var(--light);
}

/* Branch picker */
.branch-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.branch-picker h2 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--teal);
  text-align: center;
}

.branch-picker .thumbnails { min-height: auto; }

/* Loading overlay — colored bouncing dots */
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 24px;
}

.loading-dots {
  display: flex;
  gap: 8px;
}
.loading-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: dotBounce 0.6s ease-in-out infinite alternate;
}
.loading-dots span:nth-child(1) { background: var(--red); animation-delay: 0s; }
.loading-dots span:nth-child(2) { background: var(--yellow); animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { background: var(--blue); animation-delay: 0.3s; }
.loading-dots span:nth-child(4) { background: var(--teal); animation-delay: 0.45s; }

@keyframes dotBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.loading-text {
  font-family: var(--font);
  color: #777;
  font-size: 0.9rem;
}

/* Legacy spinner fallback */
.spinner {
  display: none;
}

/* ---- Falling pixels animation (margins) ---- */
.falling-pixels-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.falling-pixel {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 1;
}

@keyframes fall {
  from {
    transform: translateY(-20px);
    opacity: 1;
  }
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* ---- Study landing page ---- */
.study-landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 2rem 2rem;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 10;
}

/* Instruction panels */
.instruction-panel {
  position: fixed;
  top: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}
.instruction-left { left: 1.5rem; }
.instruction-right { right: 1.5rem; }
.instruction-center { left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 500px; }
.instruction-slot {
  background: #fff;
  color: #000;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  animation: instrFadeIn 0.4s ease;
}
@keyframes instrFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.instruction-slot .instr-word,
.tutorial-text .instr-word {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.instruction-slot .instr-word.visible,
.tutorial-text .instr-word.visible {
  opacity: 1;
}
.instruction-btn-row {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-top: 0;
}
.btn-instr {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.2s;
}
.btn-instr:hover { opacity: 0.85; }
.btn-instr-blue { background: #519DD9; }
.btn-instr-green { background: #27ae60; }

.study-block {
  background: #d8c4af;
  border: none;
  border-radius: 24px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.thumbnail-row {
  display: flex;
  gap: 1.4rem;
  flex-wrap: nowrap;
  justify-content: center;
}
.thumbnail-row .thumbnail-card {
  height: 170px;
  flex-shrink: 0;
}

/* Placeholder thumbnail (no scene data) */
.thumbnail-placeholder {
  background: linear-gradient(135deg, #ffc461 0%, #ff782d 100%);
  border: none;
  border-radius: var(--radius);
  width: 200px;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 14 / 9;
}
.thumbnail-placeholder .placeholder-inner {
  display: none;
}

.thumbnail-decorative {
  cursor: default !important;
  pointer-events: none;
}
.thumbnail-decorative:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--dark4) !important;
}
.thumbnail-decorative::before {
  opacity: 0 !important;
}

.thumbnail-label {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  font-family: var(--font);
  font-weight: 300;
}

.study-btn-wrap {
  margin-top: 0.5rem;
}
.study-btn-wrap .btn {
  min-width: 200px;
  font-size: 1.1rem;
  padding: 14px 36px;
}
/* ---- Tutorial panel ---- */
#tutorial-panel {
  width: 100%;
  background: #d8c4af;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  text-align: center;
}
.tutorial-text {
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.6;
  min-height: 2em;
  color: #000;
}
.tutorial-btn-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}
.tutorial-btn-row .btn-instr {
  font-size: 0.9rem;
  padding: 0.45rem 1.2rem;
}

.study-controls-row {
  display: flex;
  align-items: stretch;
  position: relative;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}
.study-controls-row .btn {
  position: absolute;
  right: 0;
  flex-shrink: 0;
}
.study-story-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
}
.study-story-slot.completed {
  opacity: 0.5;
}
.study-story-check {
  color: var(--green, #4CAF50);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 4px;
}
.study-complete-msg {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green, #4CAF50);
  margin-bottom: 1rem;
}
.btn-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .thumbnails {
    flex-direction: column;
    align-items: center;
  }
  .thumbnail-card {
    width: 90%;
    max-width: 300px;
  }
  .scene-canvas-wrapper canvas {
    /* Already handled by max-width:100% + height:auto in the base rule */
  }
  .login-card {
    padding: 2rem 1.5rem;
  }
  .sel-title {
    font-size: 1.5rem;
  }
}

/* Shown for a few seconds when nothing was transcribed, so an unheard turn
   ends with a visible cue instead of silence. */
.ptt-hint.ptt-hint-retry {
  color: var(--yellow, #e0a030);
}

/* ---- Open home page ---- */
.home-body {
  --home-font: 'Nunito', 'Montserrat', sans-serif;
  --title-font: 'Fredoka', 'Nunito', sans-serif;
  font-family: var(--home-font);
}
.home-body .btn { font-family: var(--home-font); font-weight: 700; }
.c-red { color: var(--red); }
.c-yellow { color: #e8a800; }
.c-blue { color: var(--blue); }
.c-teal { color: var(--teal); }

.home-header { text-align: center; }
.home-title {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 4.6rem);
  letter-spacing: 0.08em;
  line-height: 1;
}
.home-subtitle {
  margin-top: 0.6rem;
  font-family: var(--home-font);
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 600;
  color: #6b6058;
}
.home-subtitle b { font-weight: 800; }

.home-page { padding-left: 16px; padding-right: 16px; gap: 1.6rem; }
.home-page .study-block {
  width: 100%;
  max-width: 100%;
  padding: 1.4rem 1rem 1.2rem;
  gap: 0.9rem;
}
/* Same 4-column grid for both rows, so practices and stories share a card
   size and the 4 stories always fit on one line */
.home-page .thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
}
.home-page #training-thumbnails {
  grid-template-columns: repeat(2, calc((100% - 3 * 0.8rem) / 4));
  justify-content: center;
}
.home-page .thumbnail-row .thumbnail-card {
  width: 100%;
  height: auto;
  aspect-ratio: 1376 / 768;
  padding: 7px;
  border-radius: 14px;
}
.home-block-title {
  font-family: var(--title-font);
  font-size: 1.35rem;
  font-weight: 600;
  color: #3a302a;
}
.home-slot {
  min-width: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.home-slot:hover { transform: translateY(-3px); }
.home-slot .thumbnail-label {
  margin-top: 6px;
  font-family: var(--home-font);
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 700;
  color: #3a302a;
  line-height: 1.2;
}
.home-slot .study-story-check { font-family: var(--home-font); }

.home-download {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 24px;
}

/* ---- Login (registration) page ---- */
.register-page { max-width: 760px; gap: 1.4rem; }
.register-authors { text-align: center; color: #3a302a; }
.register-names {
  font-size: clamp(0.9rem, 2.3vw, 1.05rem);
  font-weight: 700;
  line-height: 1.5;
}
.register-affils {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b6058;
}
.register-authors sup { font-size: 0.7em; margin-right: 1px; }
.register-names span, .register-affils span { white-space: nowrap; }
.register-page .register-block {
  align-items: stretch;
  padding: 1.4rem 1.6rem;
  color: #3a302a;
  line-height: 1.55;
}
.register-about { font-size: 1rem; }
.register-offer { font-size: 0.95rem; }
.register-form { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.4rem; }
.register-form label { font-weight: 800; font-size: 0.95rem; margin-top: 0.4rem; }
.register-form input,
.register-form textarea {
  font-family: var(--home-font);
  font-size: 1rem;
  color: #2b2420;
  background: #fffaf5;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  resize: vertical;
}
.register-form input:focus,
.register-form textarea:focus { outline: none; border-color: var(--blue); }
.register-error { min-height: 1.2em; color: var(--red); font-weight: 700; font-size: 0.9rem; }
.register-form .btn { align-self: center; padding: 10px 28px; font-size: 1rem; }
.register-form .btn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 520px) {
  .register-page .register-block { padding: 1.2rem 1rem; }
}
