/* ----------------------------------------------------
   Base Typography & Body
----------------------------------------------------*/
body {
  font-family: "Inter", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #e5e7eb 0, #f9fafb 45%, #f3f4f6 100%);
  color: #111827;
}

.text-m { font-size: 16px; }
.text-l { font-size: 19px; }
.text-xl { font-size: 26px; }
.text-xxl { font-size: 36px; }
.highlight { color: yellow !important; }

/* ----------------------------------------------------
   Layout Container
----------------------------------------------------*/
.container {
  vertical-align: middle;
  padding-left: 5px;
  padding-right: 5px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.page-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ----------------------------------------------------
   Study Header (Top Bar)
----------------------------------------------------*/
.study-header {
  width: 100%;
  padding: 14px 0;
  display: flex;
  justify-content: center;
}

.study-header-inner {
  width: 100%;
  max-width: 960px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.study-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.study-logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.study-header-title {
  font-size: 15px;
  font-weight: 600;
}

.study-header-subtitle {
  font-size: 13px;
  color: #6b7280;
}

.study-header-right {
  display: flex;
  gap: 8px;
}

.meta-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

@media (max-width: 720px) {
  .study-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------------------------------------------------
   Consent Shell Layout
----------------------------------------------------*/
.consent-shell {
  display: grid;
  gap: 20px;
}

/* ----------------------------------------------------
   Consent Header Card
----------------------------------------------------*/
.consent-header-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 32px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.label-pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  margin-bottom: 12px;
}

.title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle-small {
  font-size: 15px;
  color: #4b5563;
}

/* ----------------------------------------------------
   Consent Info Boxes (Sections)
----------------------------------------------------*/
.consent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 750px;
  margin: 0 auto;
}

.section-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.section-card.compact {
  padding: 16px 20px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.section-text {
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
}

.section-list {
  font-size: 15px;
  margin: 6px 0 0;
  padding-left: 20px;
  color: #4b5563;
}

/* ----------------------------------------------------
   Consent Footer + Buttons
----------------------------------------------------*/
.consent-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.btn-continue {
  background: #111827;
  color: #f9fafb;
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  transition: 0.13s ease;
}

.btn-continue:hover {
  background: #000;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
}

.btn-arrow {
  font-size: 18px;
}

/* ----------------------------------------------------
   Instructions Header
----------------------------------------------------*/
.task-header {
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: left;
}

.task-title {
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.task-subtitle {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 10px;
}

/* ----------------------------------------------------
   Notification Box (Experiment)
----------------------------------------------------*/
#notification-box {
    position: fixed;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 18px 26px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 500;
    color: #222;
    max-width: 360px;
    line-height: 1.4;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999999;
    display: none;
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
}


/* ----------------------------------------------------
   Old Styles (for compatibility)
----------------------------------------------------*/
#birthDate {
  width: 50%;
  height: 50px;
  font-size: 28px;
  text-align: center;
}

#playingField { width: 1000px; }

input[type=radio] {
  width: 24px;
  height: 24px;
  border-radius: 22px;
  border: 1px solid #bbb;
}


/* Fokus-Rahmen global ausblenden (nur für dieses Experiment) */
*:focus,
*:focus-visible {
  outline: none !important;
}

.quit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.quit-dialog {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.5);
}

.quit-dialog h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.quit-dialog p {
  font-size: 15px;
  color: #4b5563;
}
