/* Shared component classes — reuse these instead of one-off styles. */

body {
  font-family: var(--lg-font-body);
  color: var(--lg-ink);
  background: var(--lg-off-white);
}

h1, h2, h3, h4 {
  font-family: var(--lg-font-display);
}

/* Focus visibility (overrides default outline for pastel contrast) */
:focus-visible {
  outline: 3px dashed var(--lg-ink);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--lg-font-display);
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border: var(--lg-border-width) solid var(--lg-ink);
  border-radius: var(--lg-radius-md);
  background: var(--lg-gradient-btn);
  color: var(--lg-white);
  text-decoration: none;
  box-shadow: var(--lg-shadow-sticker);
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 4px 4px auto 4px;
  height: 40%;
  border-radius: calc(var(--lg-radius-md) - 4px) calc(var(--lg-radius-md) - 4px) 60% 60% / 100% 100% 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0));
  pointer-events: none;
  z-index: -1;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--lg-ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--lg-ink);
}

.btn--secondary {
  background: var(--lg-white);
  color: var(--lg-ink);
}

.btn--huge {
  font-size: 1.35rem;
  padding: 1.4rem 2.5rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--lg-shadow-sticker);
}

/* Card */
.card {
  background: var(--lg-white);
  border: var(--lg-border-width) solid var(--lg-ink);
  border-radius: var(--lg-radius-md);
  box-shadow: var(--lg-shadow-sticker);
  padding: var(--lg-space-md);
}

/* Badge / tag */
.badge {
  display: inline-block;
  font-family: var(--lg-font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 2px solid var(--lg-ink);
  border-radius: var(--lg-radius-sm);
  background: var(--lg-tag-pink);
  color: var(--lg-ink);
}

.badge--mint { background: var(--lg-tag-mint); }
.badge--sky { background: var(--lg-tag-sky); }
.badge--orange { background: var(--lg-tag-orange); }
.badge--pink { background: var(--lg-tag-pink); }

/* Chrome window (retro title-bar frame) */
.chrome-window {
  border: var(--lg-border-width) solid var(--lg-ink);
  border-radius: var(--lg-radius-md);
  background: var(--lg-white);
  box-shadow: var(--lg-shadow-sticker);
  overflow: hidden;
}

.chrome-window__titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--lg-gradient-btn);
  border-bottom: var(--lg-border-width) solid var(--lg-ink);
}

.chrome-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lg-white);
  border: 2px solid var(--lg-ink);
}

.chrome-window__title {
  margin-inline-start: 0.5rem;
  font-family: var(--lg-font-pixel);
  font-size: 0.75rem;
  color: var(--lg-white);
}

.chrome-window__body {
  padding: var(--lg-space-md);
}

/* Quest card (audition role select) */
.quest-card {
  display: flex;
  flex-direction: column;
  gap: var(--lg-space-xs);
  text-align: left;
  background: var(--lg-white);
  border: var(--lg-border-width) solid var(--lg-ink);
  border-radius: var(--lg-radius-md);
  box-shadow: var(--lg-shadow-sticker-sm);
  padding: var(--lg-space-sm);
}

.quest-card__title {
  font-family: var(--lg-font-display);
  font-size: 1.1rem;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--lg-space-sm);
}

.field label {
  font-family: var(--lg-font-display);
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  padding: 0.75rem 1rem;
  border: var(--lg-border-width) solid var(--lg-ink);
  border-radius: var(--lg-radius-sm);
  background: var(--lg-off-white);
  font-family: var(--lg-font-body);
}

.form-error {
  color: var(--lg-magenta);
  font-size: 0.9rem;
  font-family: var(--lg-font-body);
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lg-white);
  color: var(--lg-ink);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--lg-radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}
