/* The Password Game Editorial Styles */
:root {
  --rule-red: #B91C1C;
  --rule-red-bg: #FEF2F2;
  --rule-red-border: #FECACA;
  --rule-green: #15803D;
  --rule-green-bg: #F0FDF4;
  --rule-green-border: #BBF7D0;
}

.password-page {
  padding-top: 74px;
  padding-bottom: 80px;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-sans);
}

.password-container {
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
}

.game-title-header {
  text-align: center;
  margin-bottom: 24px;
}

.game-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.game-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.game-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Password Input Box */
.input-wrap {
  position: relative;
  margin-bottom: 30px;
}

.password-textarea {
  width: 100%;
  min-height: 90px;
  max-height: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-subtle);
}

.password-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.char-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  pointer-events: none;
  border: 1px solid var(--border-light);
}

/* Rules Section */
.rules-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}

.rule-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-subtle);
}

.rule-box.rule-failed {
  background: var(--rule-red-bg);
  border-color: var(--rule-red-border);
}

.rule-box.rule-passed {
  background: var(--rule-green-bg);
  border-color: var(--rule-green-border);
}

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

.rule-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rule-failed .rule-title {
  color: var(--rule-red);
}

.rule-passed .rule-title {
  color: var(--rule-green);
}

.rule-status {
  font-size: 12px;
  font-weight: 600;
}

.rule-failed .rule-status {
  color: var(--rule-red);
}

.rule-passed .rule-status {
  color: var(--rule-green);
}

.rule-desc {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.rule-failed .rule-desc {
  color: #7F1D1D;
}

.rule-passed .rule-desc {
  color: #14532D;
}

/* Special Interactive Elements */
.captcha-box {
  margin-top: 10px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.paul-egg {
  margin-top: 8px;
  padding: 8px 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  color: #92400E;
}

/* Win Modal */
.win-modal {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: rgba(24, 24, 27, 0.55);
  padding: 20px;
}

.win-card {
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border-light, #E7E5E4);
  border-radius: var(--radius-md, 14px);
  box-shadow: var(--shadow-float, 0 24px 60px rgba(0, 0, 0, 0.18));
  padding: 34px 30px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.win-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 34px;
  font-weight: 400;
  margin: 8px 0 10px;
  color: var(--text-primary, #18181B);
}

.win-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #52525B);
  margin-bottom: 22px;
}

.win-btn {
  background: var(--text-primary, #18181B);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm, 8px);
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.win-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
