/* Game-specific styles for Terms & Conditions. Deliberately not shared with
   any other game — duplicate rather than couple, per .claude/rules/games.md */

.terms-intro {
  color: var(--muted);
  margin-top: -0.5rem;
}

.terms-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.terms-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

.terms-form input[type="text"],
.clause input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #16161a;
  color: var(--fg);
  font-size: 1rem;
  margin-top: 0.35rem;
}

.terms-accept-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clause-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.clause {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: #131316;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.clause[hidden] {
  display: none;
}

.clause-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.clause-body {
  margin: 0;
  font-size: 0.95rem;
}

.clause.satisfied {
  border-color: #3a7a4a;
}

.clause.satisfied .clause-title {
  color: #6fcf87;
}

.clause.unsatisfied {
  border-color: #7a3a3a;
}

.clause.unsatisfied .clause-title::after {
  content: " — nicht erfüllt";
  color: #e08a8a;
  font-weight: 400;
}

.clause.suspended {
  opacity: 0.45;
}

.clause.suspended .clause-title::after {
  content: " — ausgesetzt (Klausel 12)";
  color: var(--muted);
  font-weight: 400;
}

/* Clause 5: the multi-page appendix + runaway checkbox */
.scroll-box {
  height: 90px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: #0f0f12;
  margin-bottom: 0.5rem;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.pile-button-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.fleeing-checkbox-wrap {
  position: relative;
  height: 2rem;
}

.fleeing-checkbox-wrap input {
  position: absolute;
  left: 0;
  top: 0;
  transition:
    left 0.15s ease,
    top 0.15s ease;
}

/* Clause 8: fake captcha */
.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 220px;
  margin-bottom: 0.5rem;
}

.captcha-tile {
  aspect-ratio: 1;
  background: #2a2a30;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px;
}

.captcha-hint {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 1.2em;
}

/* Clause 9: the countdown */
.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.2rem;
}

.countdown.expired {
  color: #e08a8a;
}

/* Clause 11: signature pad */
.signature-pad {
  width: 200px;
  height: 110px;
  background: #16161a;
  border: 1px dashed var(--border);
  border-radius: 8px;
  transform: rotate(-8deg);
  touch-action: none;
  cursor: crosshair;
}

/* Clause 12: dispute toggle */
.dispute-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#dispute-justification-wrap {
  margin-top: 0.5rem;
}

/* Clause 13: invisible clause */
.hidden-clause-text {
  color: var(--bg);
  user-select: text;
}

/* Contract / ending */
.contract-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contract-section[hidden] {
  display: none;
}
