/* CIVIL VERSE - PROFESSIONAL COURTROOM UI */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f4f8ff;
  color: #0f172a;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Poppins', sans-serif;
}

body,
button,
input {
  font-family: 'Inter', sans-serif;
}

textarea,
select {
  font-family: 'Inter', sans-serif;
}

/* BLUEPRINT BACKGROUND */

.blueprint-bg {

  background-color: #f5f9ff;

  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);

  background-size: 40px 40px;
}

/* GLASSMORPHISM */

.glass-card {

  background: rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.5);

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06);

}

.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card p,
.glass-card span,
.glass-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Text rhythm for long reading blocks */
.content-area :where(.hero-description,
  .feature-card p,
  .about-section p,
  .benefit-grid p,
  .case-type-card p,
  .level-card p,
  .role-card p,
  .page-header p,
  .question-box p,
  .procedural-flow p,
  .pathway-box p,
  .reasoning-process-grid p,
  .negotiation-dialogue-header p,
  .negotiation-message p,
  .feedback-box p,
  .formal-agenda-card p,
  .formal-agenda-note p,
  .analysis-section p,
  .pleading-body p,
  .court-consideration-list p,
  .procedure-hero p,
  .procedure-game-note p,
  .procedure-role-card p,
  .procedure-path-card p,
  .procedure-step-list p,
  .learning-reference-card p,
  .procedure-aspect-card p,
  .procedure-aspect-card li,
  .procedure-law-card p,
  .dictionary-card p,
  .dictionary-intro p,
  .leaderboard-header p,
  .achievement-header p,
  .profile-card p,
  .profile-stats p,
  .help-hero p,
  .help-guide-card p,
  .help-note p,
  .litigation-header p,
  .litigation-case-desk p,
  .litigation-verdict-body p,
  .litigation-agenda-item p,
  .litigation-history-card p,
  .litigation-bap-grid p,
  .law-reference-list p) {
  text-align: left;
  text-align-last: left;
  text-wrap: pretty;
  line-height: 1.72;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.content-area :where(button,
  .primary-button,
  .secondary-button,
  .nav-button,
  .badge-level,
  .section-kicker,
  .case-category,
  .case-difficulty,
  .simulation-case-meta span,
  .case-type-examples span,
  .stat-card p,
  .score-wrapper,
  .result-card h2,
  .result-score,
  .learning-score-badge,
  .negotiation-round-badge,
  .court-level-label,
  .court-stage-label,
  .court-military-label,
  .dictionary-tab,
  .procedure-chapter-tab,
  .procedure-aspect-tab,
  .procedure-law-tab,
  .litigation-tab,
  .litigation-detail-tab) {
  text-align: center;
  text-align-last: auto;
}

.content-area :where(textarea,
  .essay-answer-input,
  input,
  select) {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.6;
}

.content-area :where(.pleading-body p,
  .pleading-body li,
  .litigation-verdict-body p,
  .litigation-verdict-body li,
  .litigation-conclusion-grid p,
  .litigation-bap-grid p,
  .law-reference-list p) {
  text-align: justify;
  text-align-last: left;
}

.glass-card svg {
  width: 1em;
  height: 1em;
  display: block;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-icon {
  width: 1em;
  height: 1em;
  display: block;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* MAIN LAYOUT */

.main-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {

  width: 290px;

  flex: 0 0 290px;

  height: 100vh;

  padding: 28px;

  border-right: 1px solid rgba(37, 99, 235, 0.1);

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  position: sticky;

  top: 0;

  align-self: flex-start;

  overflow-y: auto;
}

/* Thin scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.2);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.4);
}

/* LOGO */

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {

  width: 64px;
  height: 64px;

  border-radius: 20px;

  background: linear-gradient(135deg,
      #2563eb,
      #1d4ed8);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 32px;
  color: white;

  box-shadow:
    0 10px 20px rgba(37, 99, 235, 0.35);

}

.logo-title {

  font-size: 28px;
  font-weight: 800;
  color: #1e3a8a;
}

.logo-subtitle {

  margin-top: 4px;

  font-size: 12px;

  line-height: 18px;

  color: #64748b;
}

/* NAVIGATION */

.sidebar-menu {

  display: flex;

  flex-direction: column;

  gap: 11px;

  margin-top: 22px;

  flex: 0 0 auto;
}

.nav-button {

  width: 100%;

  min-height: 54px;

  border: none;

  background: white;

  border-radius: 16px;

  padding: 15px 18px;

  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 15px;

  font-weight: 700;

  line-height: 20px;

  text-align: left;

  cursor: pointer;

  transition: 0.3s;
}

.nav-button span:first-child {
  width: 24px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-button span:last-child {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.nav-button:hover {

  background: #eff6ff;

  transform: translateX(3px);
}

.nav-button.active {

  background: linear-gradient(135deg,
      #2563eb,
      #1d4ed8);

  color: white;

  box-shadow:
    0 10px 25px rgba(37, 99, 235, 0.3);
}

/* USER PROFILE */

.user-profile {

  display: flex;

  align-items: center;
  min-width: 0;

  gap: 14px;

  margin-top: 22px;

  padding: 14px;

  border-radius: 18px;

  background: #eff6ff;
}

.user-profile>div:last-child {
  min-width: 0;
}

.user-avatar {

  width: 56px;
  height: 56px;

  border-radius: 50%;

  background: #2563eb;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 20px;

  color: white;
}

.user-profile h3 {

  font-size: 15px;
  font-weight: 700;
}

/* CONTENT */

.content-area {

  flex: 1;

  padding: 34px;
}

/* PAGE */

.page-section {
  animation: fadeIn .4s ease;
}

.hidden-page {
  display: none !important;
}

@keyframes fadeIn {

  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/* HERO SECTION */

.hero-section {

  border-radius: 34px;

  padding: 50px;

  display: grid;

  grid-template-columns: 1.2fr 1fr;

  gap: 40px;

  align-items: center;
}

.home-kicker {

  display: inline-block;

  background: #dbeafe;

  color: #1d4ed8;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 1px;

  padding: 10px 18px;

  border-radius: 999px;
}

.hero-title {

  margin-top: 24px;

  font-size: 72px;

  line-height: 82px;

  font-weight: 900;

  color: #0f172a;
}

.hero-description {

  margin-top: 24px;

  max-width: 700px;

  line-height: 34px;

  font-size: 19px;

  color: #475569;
}

.hero-actions {

  display: flex;

  gap: 18px;

  margin-top: 36px;
}

.hero-image {

  width: 100%;

  height: 480px;

  object-fit: cover;

  border-radius: 30px;
}

.home-vision-card {
  height: 100%;
  min-height: 430px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fbff, #eaf3ff);
  border: 1px solid rgba(37, 99, 235, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-vision-card span {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-vision-card h2 {
  margin-top: 20px;
  font-size: 36px;
  line-height: 46px;
  font-weight: 900;
  color: #0f172a;
}

.home-vision-card p {
  margin-top: 18px;
  color: #475569;
  line-height: 30px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.benefit-section {
  margin-top: 40px;
  padding: 38px;
  border-radius: 30px;
}

.benefit-section h2 {
  max-width: 980px;
  font-size: 34px;
  line-height: 44px;
  color: #0f172a;
  font-weight: 900;
}

/* BUTTONS */

.primary-button {

  border: none;

  background: linear-gradient(135deg,
      #2563eb,
      #1d4ed8);

  color: white;

  padding: 18px 28px;

  border-radius: 18px;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;

  box-shadow:
    0 10px 25px rgba(37, 99, 235, 0.3);
}

.primary-button:hover {

  transform: translateY(-3px);
}

.secondary-button {

  border: 2px solid #2563eb;

  background: white;

  color: #2563eb;

  padding: 18px 28px;

  border-radius: 18px;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}

.secondary-button:hover {

  background: #eff6ff;
}

.full-button {
  width: 100%;
}

/* FEATURE GRID */

.feature-grid {

  margin-top: 40px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.feature-card {

  border-radius: 30px;

  padding: 34px;

  transition: 0.3s;

  min-height: 250px;

  display: flex;

  flex-direction: column;
}

.feature-card:hover {

  transform: translateY(-8px);
}

.feature-icon {

  width: 80px;
  height: 80px;

  border-radius: 22px;

  background: #dbeafe;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 36px;

  color: #1d4ed8;
}


.feature-card h2 {

  margin-top: 24px;

  font-size: 24px;

  font-weight: 800;
}

.feature-card p {

  margin-top: 16px;

  line-height: 30px;

  color: #64748b;

  overflow-wrap: anywhere;
}

/* ABOUT */

.about-section {

  margin-top: 40px;

  border-radius: 34px;

  padding: 40px;

  display: grid;

  grid-template-columns: 1.2fr 420px;

  gap: 30px;
}

.about-section h2 {

  font-size: 40px;

  font-weight: 900;
}

.about-section p {

  margin-top: 20px;

  line-height: 34px;

  color: #475569;
}

.about-list {

  margin-top: 24px;

  display: flex;

  flex-direction: column;

  gap: 14px;

  list-style: none;
}

.about-list li {

  font-weight: 600;
}

.about-section .about-list {
  display: none;
}

.mission-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mission-grid div,
.benefit-grid div,
.method-flow div,
.proposal-fit-grid div {
  padding: 18px;
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.76);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.mission-grid strong,
.benefit-grid strong,
.method-flow strong,
.proposal-fit-grid strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.mission-grid p,
.benefit-grid p,
.method-flow p,
.proposal-fit-grid p {
  margin-top: 8px;
  color: #475569;
  line-height: 26px;
}

.benefit-section {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.method-flow {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.proposal-fit-section {
  margin-top: 28px;
  padding: 38px;
  border-radius: 30px;
}

.proposal-fit-section h2 {
  max-width: 980px;
  font-size: 34px;
  line-height: 44px;
  color: #0f172a;
  font-weight: 900;
}

.proposal-fit-section>div:first-child p {
  margin-top: 14px;
  max-width: 980px;
  color: #475569;
  line-height: 30px;
}

.proposal-fit-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.about-right {

  display: grid;

  gap: 20px;
}

.stat-card {

  background: #eff6ff;

  border-radius: 24px;

  padding: 30px;

  text-align: center;
}

.stat-card h3 {

  font-size: 44px;

  color: #2563eb;

  font-weight: 900;
}

.stat-card p {

  margin-top: 10px;

  color: #475569;
}

/* PAGE HEADER */

.page-header {

  display: grid;

  grid-template-columns: minmax(0, 1fr) auto;

  justify-content: space-between;

  align-items: start;

  gap: 24px;

  margin-bottom: 34px;
}

.page-header h1 {

  font-size: 48px;

  font-weight: 900;
}

.page-header p {

  margin-top: 10px;

  color: #64748b;
}

/* SCENARIO GRID */

.scenario-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 30px;
}

.scenario-card {

  padding: 34px;

  border-radius: 34px;

  transition: 0.3s;
}

.scenario-card:hover {

  transform: translateY(-6px);
}

.scenario-image {

  width: 100%;

  height: 240px;

  object-fit: cover;

  border-radius: 24px;
}

.scenario-badge {

  margin-top: 20px;

  display: inline-block;

  background: #dbeafe;

  color: #1d4ed8;

  padding: 10px 18px;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 700;
}

.scenario-card h2 {

  margin-top: 22px;

  font-size: 34px;

  font-weight: 900;
}

.scenario-card p {

  margin-top: 18px;

  line-height: 30px;

  color: #64748b;
}

/* LEVEL GRID */

.level-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 34px;

  align-items: stretch;
}

.level-card {

  padding: 34px;

  border-radius: 30px;

  display: flex;

  flex-direction: column;

  min-height: 460px;

  overflow: hidden;
}

.level-icon {

  width: 90px;
  height: 90px;

  border-radius: 24px;

  background: #dbeafe;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 40px;
}

.quiz-badge-icon {
  width: 108px;
  height: 108px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  background: #eff6ff;
}

.quiz-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.quiz-badge-icon.badge-missing {
  font-size: 15px;
  font-weight: 900;
  color: transparent;
  text-transform: uppercase;
}

.quiz-badge-icon.badge-missing::after {
  content: 'Sedang';
  color: #1d4ed8;
}

.level-card h2 {

  margin-top: 26px;

  font-size: 30px;

  line-height: 38px;

  font-weight: 900;
}

.level-card p {

  margin-top: 18px;

  line-height: 30px;

  color: #64748b;

  overflow-wrap: anywhere;
}

.level-card ul {

  margin-top: 24px;
  margin-bottom: 28px;

  display: flex;

  flex-direction: column;

  gap: 14px;

  padding-left: 20px;

  margin-bottom: 28px;
}

.level-card button {

  margin-top: auto;
}

/* ROLE GRID */

.role-grid {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 28px;

  align-items: stretch;
}

.role-grid.single-action-grid {
  grid-template-columns: minmax(280px, 760px);
  justify-content: center;
}

.role-card {

  border: none;

  min-height: 320px;

  padding: 48px 42px;

  border-radius: 34px;

  text-align: center;

  cursor: pointer;

  transition: 0.3s;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  overflow: hidden;
}

.role-card:hover {

  transform: translateY(-6px);

  background: #eff6ff;
}

.role-icon {

  width: 104px;
  height: 104px;
  border-radius: 28px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.role-card h2 {

  margin-top: 24px;

  font-size: 34px;

  line-height: 42px;

  font-weight: 900;

  max-width: 100%;
}

.role-card p {

  margin-top: 18px;

  color: #64748b;

  max-width: 560px;

  line-height: 26px;

  overflow-wrap: anywhere;
}

.role-grid.single-action-grid .role-card {
  min-height: 260px;
  align-items: center;
  text-align: center;
  padding: 38px;
}

.role-grid.single-action-grid .role-card .role-icon {
  width: 86px;
  height: 86px;
  font-size: 42px;
}

.role-grid.single-action-grid .role-card h2 {
  font-size: 30px;
  line-height: 38px;
}

.role-grid.single-action-grid .role-card p {
  max-width: 680px;
  text-align: center;
}

/* COURTROOM */

.courtroom-header {

  padding: 30px 34px;

  border-radius: 30px;

  display: grid;

  grid-template-columns: minmax(0, 1fr) auto;

  justify-content: space-between;

  align-items: start;

  gap: 24px;
}

.courtroom-header h1 {

  font-size: 42px;

  font-weight: 900;
}

.courtroom-header p {

  margin-top: 10px;

  color: #64748b;
}

.score-wrapper {

  min-width: 104px;

  padding: 12px 16px;

  border-radius: 18px;

  background: rgba(219, 234, 254, 0.72);

  text-align: center;

  justify-self: end;
}

.score-wrapper span {

  display: block;

  color: #64748b;

  font-size: 12px;

  line-height: 16px;

  font-weight: 900;

  text-transform: uppercase;

  white-space: nowrap;
}

.score-wrapper h2 {

  margin-top: 4px;

  font-size: 46px;

  line-height: 50px;

  color: #2563eb;

  font-weight: 900;
}

/* COURT GRID */

.courtroom-grid {

  margin-top: 30px;

  display: grid;

  grid-template-columns: 300px 1fr 360px;

  gap: 26px;
}

/* COURT SIDEBAR */

.court-sidebar {

  padding: 26px;

  border-radius: 30px;
}

.court-sidebar h3 {

  font-size: 24px;

  font-weight: 800;
}

.info-item {

  margin-top: 24px;
}

.info-item label {

  font-size: 12px;

  color: #64748b;

  text-transform: uppercase;

  font-weight: 700;
}

.info-item p {

  margin-top: 8px;

  font-size: 18px;

  font-weight: 700;
}

.timeline-box {

  margin-top: 40px;
}

.timeline-box ul {

  margin-top: 20px;

  padding-left: 20px;
}

.sidebar-score-box {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.sidebar-score-box label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-score-box strong {
  display: block;
  margin-top: 8px;
  color: #2563eb;
  font-size: 30px;
  line-height: 36px;
  font-weight: 900;
}

/* MEDIASI & JUDGMENT PAGES */

.badge-level {
  background: rgba(59, 130, 246, 0.1);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  color: #3b82f6;
  font-weight: 600;
}

.question-box {
  background: rgba(59, 130, 246, 0.05);
  padding: 24px;
  border-radius: 16px;
  margin: 24px 0;
  border-left: 4px solid #3b82f6;
}

.question-box p {
  font-size: 18px;
  line-height: 1.6;
  color: #0f172a;
  font-weight: 500;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.option-button {
  padding: 16px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-weight: 500;
}

.option-button:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
  transform: translateX(4px);
}

.option-button.selected {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.option-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-box {
  margin: 20px 0;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #10b981;
  background: rgba(236, 253, 245, 0.75);
}

.feedback-box.hidden-page {
  display: none;
}

.feedback-box.success {
  border-left-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.feedback-box.fail {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}

.mediation-analysis-list {
  margin-top: 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.mediation-analysis-list li {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.mediation-analysis-list li.complete {
  border-color: rgba(16, 185, 129, 0.36);
}

.mediation-analysis-list li.missing {
  border-color: rgba(239, 68, 68, 0.32);
}

.mediation-analysis-list strong,
.mediation-analysis-list span {
  display: block;
}

.mediation-analysis-list strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 20px;
  font-weight: 900;
}

.mediation-analysis-list span {
  margin-top: 4px;
  color: #475569;
  font-size: 13px;
  line-height: 20px;
}

.feedback.success {
  background: #ecfdf5;
  border-left-color: #10b981;
  color: #047857;
  padding: 18px;
  border-radius: 12px;
}

.feedback.fail {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #7f1d1d;
  padding: 18px;
  border-radius: 12px;
}

.feedback h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feedback p {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.reasoning-box {
  background: rgba(15, 23, 42, 0.06);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
  font-style: normal;
  line-height: 24px;
}

.feedback-dinamis {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.feedback-dinamis h4 {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.feedback-dinamis p {
  margin-top: 8px;
  margin-bottom: 0;
}

.system-notification {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 16px 18px;
  border-radius: 16px;
  background: #0f172a;
  color: white;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
  opacity: 0;
  transform: translateY(16px);
  transition: 0.28s ease;
}

.system-notification.show-notification {
  opacity: 1;
  transform: translateY(0);
}

.system-notification p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.badge-popup {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
}

.badge-popup.show-badge {
  opacity: 1;
}

.badge-popup-content {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  transform: translateY(16px) scale(0.98);
  transition: 0.28s ease;
}

.badge-popup.show-badge .badge-popup-content {
  transform: translateY(0) scale(1);
}

.badge-popup-content h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 30px;
  color: #1d4ed8;
}

.badge-popup-content h2 .app-icon {
  font-size: 24px;
}

.badge-popup-content h3 {
  margin-top: 14px;
  font-size: 28px;
  line-height: 36px;
  color: #0f172a;
}

.badge-popup-content p {
  margin-top: 10px;
  color: #475569;
  line-height: 26px;
}

.rebuttal-box {
  background: rgba(249, 115, 22, 0.1);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #f97316;
  margin: 20px 0;
}

.rebuttal-box.hidden-page {
  display: none;
}

.rebuttal-box h3 {
  color: #92400e;
  margin-bottom: 12px;
  font-size: 16px;
}

.rebuttal-box textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #fed7aa;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  resize: vertical;
}

.rebuttal-box textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.rebuttal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.rebuttal-buttons button {
  flex: 1;
}

.registration-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
}

.negotiation-panel {
  margin-top: 30px;
}

.pathway-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.pathway-box h4 {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

.pathway-flow {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pathway-flow span {
  padding: 10px 12px;
  border-radius: 12px;
  background: white;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 13px;
}

.reasoning-process-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.reasoning-process-grid div {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.reasoning-process-grid strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  line-height: 22px;
}

.reasoning-process-grid p {
  margin-top: 8px;
  color: #475569;
  font-size: 13px;
  line-height: 23px;
}

.negotiation-dialogue-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.negotiation-dialogue-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.negotiation-dialogue-header h3 {
  margin-top: 10px;
  font-size: 24px;
  line-height: 32px;
  color: #0f172a;
}

.negotiation-dialogue-header p {
  margin-top: 8px;
  color: #475569;
  line-height: 26px;
}

.negotiation-round-badge {
  min-width: 90px;
  padding: 14px;
  border-radius: 16px;
  background: #2563eb;
  color: white;
  text-align: center;
}

.negotiation-round-badge span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.negotiation-round-badge strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  line-height: 34px;
}

.negotiation-role-switch {
  margin-top: 18px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.negotiation-role-button {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.negotiation-role-button:hover,
.negotiation-role-button.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.negotiation-dialogue-list {
  margin-top: 18px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

.negotiation-dialogue-list.recap {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.negotiation-message {
  max-width: 78%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: white;
}

.negotiation-message.from-user {
  margin-left: auto;
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.24);
}

.negotiation-message.from-system {
  margin-right: auto;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.22);
}

.negotiation-message span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.negotiation-message strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 15px;
  line-height: 22px;
}

.negotiation-message p {
  margin-top: 8px;
  color: #475569;
  line-height: 26px;
}

.negotiation-input-box {
  margin-top: 20px;
}

.negotiation-input-box label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.negotiation-input-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

.negotiation-input-actions button {
  flex: 1;
}

.negotiation-input-actions button:disabled,
.negotiation-input-box textarea:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.negotiation-outcome-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.negotiation-outcome-card span {
  display: block;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.negotiation-outcome-card p {
  margin-top: 8px;
  color: #334155;
  line-height: 26px;
}

.negotiation-outcome-card div {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.negotiation-outcome-card button {
  min-height: 44px;
  padding: 11px 16px;
}

.negotiation-recap-section {
  margin-top: 24px;
}

.negotiation-recap-section h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 900;
  color: #0f172a;
}

.formal-agenda-panel {
  padding: 28px;
}

.formal-agenda-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.formal-agenda-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.28);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.formal-agenda-card strong {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}

.formal-agenda-card h3 {
  color: #0f172a;
  font-size: 18px;
  line-height: 24px;
  font-weight: 900;
}

.formal-agenda-card p {
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
  line-height: 24px;
}

.formal-agenda-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #ecfdf5;
  border: 1px solid #86efac;
}

.formal-agenda-note span {
  display: block;
  color: #047857;
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.formal-agenda-note p {
  margin-top: 8px;
  color: #334155;
  line-height: 26px;
  font-weight: 700;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  justify-content: space-between;
}

.action-buttons button {
  flex: 1;
}

/* FINAL RESULT PAGE */

.result-header {
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
}

.result-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
  color: #0f172a;
}

.result-header p {
  font-size: 16px;
  color: #64748b;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.result-card {
  padding: 30px;
  text-align: center;
  border-radius: 16px;
}

.result-card h2 {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 600;
}

.result-score {
  font-size: 48px;
  font-weight: 900;
  color: #3b82f6;
}

.result-score.total {
  font-size: 56px;
  color: #10b981;
}

.final-analysis {
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 16px;
}

.analysis-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.analysis-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.analysis-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.analysis-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.final-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.final-buttons button {
  padding: 14px 32px;
  font-size: 16px;
  min-width: 200px;
}

.pleading-document,
.legal-pathway-final,
.decision-tree-final,
.court-consideration-final {
  padding: 34px;
  margin-bottom: 30px;
  border-radius: 16px;
}

.pleading-document {
  background: rgba(255, 255, 255, 0.94);
}

.pleading-header {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 2px solid #e2e8f0;
}

.pleading-header span {
  display: block;
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
}

.pleading-header h2 {
  margin-top: 10px;
  font-size: 30px;
  color: #0f172a;
  font-weight: 900;
}

.pleading-header p {
  margin-top: 8px;
  color: #475569;
}

.pleading-body {
  max-width: 880px;
  margin: 0 auto;
  color: #334155;
  line-height: 1.8;
}

.pleading-body h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 17px;
}

.pleading-body ul {
  padding-left: 22px;
}

.pleading-body li {
  margin-bottom: 8px;
}

.legal-pathway-final h2,
.decision-tree-final h2,
.court-consideration-final h2 {
  font-size: 22px;
  margin-bottom: 18px;
  color: #0f172a;
}

.final-pathway-flow {
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.final-pathway-flow span {
  white-space: nowrap;
}

.legal-pathway-final p {
  color: #475569;
  line-height: 1.7;
}

.decision-tree {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.decision-node {
  min-height: 92px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.86);
  color: #1e3a8a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.45;
}

.decision-node.root {
  background: rgba(240, 253, 244, 0.9);
  color: #166534;
}

.decision-node.verdict {
  background: rgba(236, 253, 245, 0.94);
  color: #047857;
  border-color: #a7f3d0;
}

.court-consideration-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.court-consideration-list div {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.court-consideration-list span {
  display: block;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.court-consideration-list p {
  margin-top: 8px;
  color: #334155;
  line-height: 26px;
  font-weight: 700;
}

.court-consideration-list .court-consideration-verdict {
  background: #ecfdf5;
  border-color: #86efac;
}

.court-consideration-verdict span {
  color: #047857;
}

.litigation-verdict-order {
  margin: 12px 0 0 22px;
  color: #334155;
  line-height: 28px;
}

.litigation-verdict-order li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* CASE TYPE PAGE */

.case-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.case-type-card {
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.case-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.case-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.case-type-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 34px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-type-card h2 {
  font-size: 26px;
  line-height: 34px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #0f172a;
}

.case-type-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}

.case-type-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.case-type-examples span {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scenario-mode-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario-mode-card button {
  margin-top: auto;
}

.simulation-role-picker {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
}

.simulation-role-picker .negotiation-role-switch {
  max-width: 440px;
  margin: 18px auto 0;
}

.real-case-learning-note {
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.72);
}

.real-case-learning-note strong,
.real-case-learning-note p,
.real-case-learning-note small {
  display: block;
}

.reply-rejoinder-documents {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.reply-rejoinder-heading {
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.reply-rejoinder-heading span,
.pleading-party-badge {
  color: var(--primary-color);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reply-rejoinder-heading h2 {
  margin: 8px 0;
}

.court-pleading-document {
  position: relative;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 18px;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.court-pleading-document.active-party-document {
  border: 2px solid rgba(37, 99, 235, 0.55);
}

.court-pleading-document h2,
.court-pleading-document .pleading-case-number,
.court-pleading-document .pleading-date {
  text-align: center;
}

.court-pleading-document h2 {
  margin: 10px 0 4px;
  letter-spacing: 0.05em;
}

.court-pleading-document h3 {
  margin: 28px 0 12px;
  font-size: 1rem;
}

.court-pleading-document p,
.court-pleading-document li {
  line-height: 1.75;
}

.court-pleading-document li + li {
  margin-top: 10px;
}

.pleading-case-number,
.pleading-date {
  color: #64748b;
}

.pleading-signature {
  width: min(280px, 100%);
  margin: 42px 0 0 auto;
  text-align: center;
}

.pleading-signature strong {
  display: block;
  margin-top: 56px;
}

.pleading-format-source {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.real-case-learning-note p {
  margin: 8px 0;
  font-size: 0.88rem;
}

.real-case-learning-note small {
  color: var(--text-muted);
  line-height: 1.55;
}

.scenario-mode-icon,
.court-flow-icon,
.simulation-case-icon {
  width: 96px;
  min-width: 96px;
  height: 96px;
  font-size: 34px;
  letter-spacing: 0;
  text-align: center;
}

.court-level-card,
.court-type-card {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.court-type-card.single-court-card {
  grid-column: 1 / -1;
  width: min(100%, 720px);
  justify-self: start;
}

.court-filter-note {
  grid-column: 1/-1;
  padding: 28px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  min-height: auto;
}

.court-filter-note h2 {
  margin: 12px 0 10px;
  font-size: 26px;
  line-height: 34px;
  color: #0f172a;
}

.court-filter-note p,
.court-filter-note small {
  display: block;
  max-width: 980px;
  color: #475569;
  line-height: 26px;
  font-weight: 700;
}

.court-filter-note small {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 22px;
}

.court-level-card button,
.court-type-card button {
  margin-top: auto;
}

.court-level-card .case-type-examples,
.court-type-card .court-topic-list {
  margin-top: 18px;
  margin-bottom: 34px;
}

.court-level-label {
  display: inline-block;
  width: max-content;
  margin-top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.court-stage-label,
.court-military-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-top: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.court-military-label {
  margin-top: 8px;
  background: rgba(30, 64, 175, 0.1);
  color: #1e3a8a;
}

.court-fit-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: #334155;
  font-size: 14px;
  line-height: 23px;
  font-weight: 800;
}

.court-pathway {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.court-pathway span {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.court-topic-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.court-topic-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  line-height: 20px;
}

.court-topic-option input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.simulation-case-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simulation-case-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
}

.simulation-case-card p {
  margin-bottom: 32px;
}

.simulation-case-icon {
  margin-top: 18px;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}

/* DICTIONARY PAGE */

.dictionary-tabs {
  margin-top: 24px;
  padding: 10px;
  border-radius: 18px;
  display: flex;
  gap: 10px;
  width: max-content;
  max-width: 100%;
}

.dictionary-tab {
  border: 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: transparent;
  color: #475569;
  font-weight: 900;
  cursor: pointer;
}

.dictionary-tab.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.dictionary-panel {
  margin-top: 26px;
}

.dictionary-intro {
  padding: 28px 32px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.dictionary-intro h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 900;
  color: #0f172a;
}

.dictionary-intro p {
  margin-top: 10px;
  color: #475569;
  line-height: 28px;
}

.dictionary-letter-grid {
  padding: 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.dictionary-letter-button {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.dictionary-letter-button span {
  font-size: 30px;
  line-height: 34px;
  font-weight: 900;
  color: #1d4ed8;
}

.dictionary-letter-button strong {
  color: #64748b;
  font-size: 13px;
}

.dictionary-letter-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.dictionary-letter-button:hover span,
.dictionary-letter-button:hover strong {
  color: white;
}

.dictionary-detail-header {
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.dictionary-detail-header h2 {
  margin-top: 6px;
  color: #0f172a;
  font-size: 40px;
  line-height: 46px;
  font-weight: 900;
}

.dictionary-detail-header p {
  margin-top: 6px;
  color: #475569;
  line-height: 26px;
}

.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.dictionary-card {
  padding: 26px;
  border-radius: 22px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dictionary-card span {
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dictionary-card h2 {
  margin-top: 18px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 900;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.dictionary-card p {
  margin-top: 14px;
  color: #475569;
  line-height: 28px;
  overflow-wrap: anywhere;
}

.article-card span {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}

.dictionary-section {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 24px;
  padding: 26px;
  border-radius: 24px;
  margin-bottom: 18px;
}

.dictionary-alpha {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
}

.dictionary-term-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dictionary-term-row {
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  min-height: 150px;
  overflow: hidden;
}

.dictionary-term-row h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 900;
  color: #0f172a;
}

.dictionary-term-row p {
  margin-top: 10px;
  color: #475569;
  line-height: 26px;
  overflow-wrap: anywhere;
}

.article-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-aspect-tabs {
  margin-bottom: 22px;
  padding: 14px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.article-aspect-tab {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: #f8fafc;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.article-aspect-tab span {
  overflow-wrap: anywhere;
  text-align: left;
}

.article-aspect-tab strong {
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #1d4ed8;
  font-size: 13px;
}

.article-aspect-tab:hover,
.article-aspect-tab.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.article-aspect-tab.active strong,
.article-aspect-tab:hover strong {
  color: #2563eb;
}

.article-aspect-summary {
  margin-bottom: 22px;
  padding: 20px 24px;
  border-radius: 22px;
}

.article-aspect-summary span {
  color: #1d4ed8;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.article-aspect-summary p {
  margin-top: 8px;
  color: #475569;
  line-height: 26px;
}

.dictionary-article-card {
  padding: 24px;
  border-radius: 22px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dictionary-article-card span {
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dictionary-article-card h3 {
  margin-top: 18px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 900;
  color: #0f172a;
}

.dictionary-article-card p {
  margin-top: 12px;
  color: #475569;
  line-height: 27px;
  overflow-wrap: anywhere;
}

.procedure-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.procedure-guide-card {
  padding: 28px;
  border-radius: 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.procedure-guide-card span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.procedure-guide-card h3 {
  margin-top: 18px;
  font-size: 23px;
  line-height: 32px;
  font-weight: 900;
  color: #0f172a;
}

.procedure-guide-card ul {
  margin-top: 18px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.procedure-guide-card li {
  color: #475569;
  line-height: 27px;
}

/* QUIZ PAGE */

.quiz-play-panel,
.quiz-result-panel {
  margin-top: 30px;
  padding: 34px;
  border-radius: 30px;
}

.quiz-topbar {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}

.quiz-level-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-topbar h2 {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
}

.quiz-topbar p {
  margin-top: 8px;
  color: #64748b;
  font-weight: 700;
}

.quiz-progress {
  width: 100%;
  margin-top: 26px;
}

.quiz-case-box,
.quiz-strategy-box {
  margin-top: 26px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.22);
}

.quiz-case-box h3,
.quiz-strategy-box h3 {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.quiz-case-box p,
.quiz-strategy-box p {
  margin-top: 12px;
  line-height: 30px;
  color: #475569;
}

.option-button.correct {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.option-button.wrong {
  border-color: #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}

.quiz-result-panel {
  text-align: center;
}

.quiz-result-panel h2 {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
}

.quiz-result-score {
  margin-top: 18px;
  font-size: 64px;
  font-weight: 900;
  color: #2563eb;
}

.quiz-result-panel>p {
  margin-top: 10px;
  color: #475569;
  line-height: 28px;
}

.quiz-review-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.quiz-review-item {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.quiz-review-item.correct {
  border-color: #a7f3d0;
  background: rgba(240, 253, 244, 0.86);
}

.quiz-review-item.wrong {
  border-color: #fecaca;
  background: rgba(254, 242, 242, 0.86);
}

.quiz-review-item span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-review-item h3 {
  margin-top: 12px;
  font-size: 18px;
  line-height: 28px;
  color: #0f172a;
}

.quiz-review-item p {
  margin-top: 10px;
  line-height: 26px;
  color: #475569;
}

.quiz-review-item small {
  display: block;
  margin-top: 12px;
  color: #1d4ed8;
  font-weight: 800;
}

/* PROFILE PAGE */

.profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 34px;
  margin-top: 30px;
  align-items: start;
}

.profile-card {
  padding: 42px;
  text-align: left;
  border-radius: 28px;
}

.profile-avatar-section {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.profile-info {
  text-align: left;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.info-field {
  margin-bottom: 0;
}

.info-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.profile-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.level-display,
.score-display {
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #3b82f6;
}

.profile-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.profile-stats {
  padding: 30px;
}

.profile-stats h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #0f172a;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 12px;
}

.stat-item h3 {
  font-size: 32px;
  font-weight: 900;
  color: #3b82f6;
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 14px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

/* COURT MAIN */

.court-main {

  padding: 34px;

  border-radius: 34px;

  display: flex;

  flex-direction: column;

  gap: 16px;
}

.stage-top {

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.stage-top h2 {

  font-size: 36px;

  font-weight: 900;
}

.stage-top p {

  margin-top: 10px;

  color: #64748b;
}

/* PROGRESS */

.progress-bar {

  margin-top: 10px;

  width: 240px;

  height: 14px;

  background: #dbeafe;

  border-radius: 999px;

  overflow: hidden;
}

.progress-fill {

  width: 0%;

  height: 100%;

  background: linear-gradient(90deg,
      #2563eb,
      #1d4ed8);

  transition: 0.3s;
}

/* JUDGE PANEL */

.judge-panel {

  margin-top: 34px;

  display: flex;

  align-items: center;

  gap: 20px;

  background: #eff6ff;

  border-radius: 26px;

  padding: 24px;
}

.judge-image {

  width: 90px;
  height: 90px;

  object-fit: cover;

  border-radius: 20px;
}

.judge-panel h3 {

  font-size: 24px;

  font-weight: 800;
}

.judge-panel p {

  margin-top: 8px;

  color: #64748b;
}

/* QUESTION */

.question-box {

  margin-top: 30px;

  background: #f8fbff;

  border: 2px solid #dbeafe;

  border-radius: 30px;

  padding: 34px;
}

.question-box h3 {

  font-size: 22px;

  font-weight: 800;
}

.question-box p {

  margin-top: 18px;

  line-height: 1.7;

  font-size: 18px;

  text-align: left;

  word-spacing: normal;
}

/* OPTIONS */

.options-container {

  margin-top: 28px;

  display: flex;

  flex-direction: column;

  gap: 18px;
}

.option-button {

  width: 100%;

  border: none;

  background: white;

  border: 2px solid #dbeafe;

  padding: 24px;

  border-radius: 22px;

  text-align: left;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}

.option-button:hover {

  background: #eff6ff;

  border-color: #2563eb;
}

/* FEEDBACK */

.feedback-box {

  margin-top: 30px;

  padding: 30px;

  border-radius: 28px;

  background: #eff6ff;

  border: 2px solid #bfdbfe;
}

.feedback-box h3 {

  font-size: 28px;

  font-weight: 900;
}

.feedback-box p {

  margin-top: 18px;

  line-height: 32px;
}

.feedback-box.success {

  background: #ecfdf5;

  border-color: #a7f3d0;

  color: #065f46;
}

.feedback-box.fail {

  background: #fef2f2;

  border-color: #fecaca;

  color: #7f1d1d;
}

/* OBJECTION */

.objection-box {

  margin-top: 30px;

  background: #fff7ed;

  border: 2px solid #fdba74;

  padding: 30px;

  border-radius: 28px;
}

.objection-box h3 {

  font-size: 28px;

  font-weight: 900;
}

.objection-box textarea {

  width: 100%;

  height: 160px;

  margin-top: 20px;

  border: none;

  outline: none;

  border-radius: 20px;

  padding: 20px;

  resize: none;

  font-family: inherit;

  background: white;
}

.objection-box button {

  margin-top: 20px;
}

/* ACTIONS */

.bottom-actions {

  margin-top: 40px;

  display: flex;

  justify-content: space-between;
}

/* RIGHT PANEL */

.right-panel {

  display: flex;

  flex-direction: column;

  gap: 24px;
}

.reasoning-box,
.log-box {

  padding: 28px;

  border-radius: 28px;
}

.reasoning-box h3,
.log-box h3 {

  font-size: 24px;

  font-weight: 800;
}

.reasoning-box div,
.log-box div {

  margin-top: 20px;

  line-height: 30px;

  color: #475569;
}

/* VERDICT */

.verdict-paper {

  max-width: 900px;

  margin: auto;

  background: white;

  padding: 70px;

  border-radius: 34px;

  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.08);

  text-align: center;
}

.court-logo {

  font-size: 70px;
}

.verdict-paper h1 {

  margin-top: 20px;

  font-size: 44px;

  font-weight: 900;
}

.verdict-paper p {

  margin-top: 20px;

  color: #64748b;
}

#verdictContent {

  margin-top: 40px;

  text-align: left;

  line-height: 34px;

  font-size: 18px;
}

.verdict-paper button {

  margin-top: 40px;
}

/* LEARNING */

.learning-grid {

  margin-top: 30px;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.learning-card {

  padding: 34px;

  border-radius: 30px;

  min-height: 250px;

  display: flex;

  flex-direction: column;
}

.learning-card h2 {

  font-size: 28px;

  font-weight: 800;
}

.learning-card p {

  margin-top: 18px;

  line-height: 30px;

  color: #64748b;

  overflow-wrap: anywhere;
}

.learning-memory-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.learning-reference {
  margin-top: 28px;
  padding: 34px;
  border-radius: 28px;
}

.learning-reference-heading h2 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 38px;
  font-weight: 900;
  color: #0f172a;
}

.learning-reference-heading p {
  margin-top: 10px;
  max-width: 920px;
  color: #475569;
  line-height: 28px;
}

.learning-reference-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.learning-reference-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.76);
  overflow: hidden;
}

.learning-reference-card summary {
  min-height: 58px;
  padding: 18px 20px;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  list-style-position: inside;
}

.learning-reference-card p {
  padding: 0 20px 20px;
  color: #475569;
  line-height: 28px;
}

.learning-memory-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.learning-memory-index {
  padding: 18px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.detail-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 6px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  grid-column: 1 / -1;
}

.detail-panel-heading span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-panel-heading strong {
  color: #1d4ed8;
  font-size: 14px;
}

.memory-list-button {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: 0.24s ease;
}

.memory-list-button:hover,
.memory-list-button.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.memory-list-button span,
.memory-list-button small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}

.memory-list-button strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.memory-list-button small {
  margin-top: 8px;
  color: #1d4ed8;
}

.memory-list-button em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 900;
}

.learning-memory-detail {
  min-width: 0;
}

.learning-empty,
.learning-memory-card {
  padding: 34px;
  border-radius: 28px;
}

.learning-empty h2 {
  font-size: 24px;
  font-weight: 800;
}

.learning-empty p {
  margin-top: 12px;
  color: #64748b;
  line-height: 28px;
}

.learning-memory-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.learning-memory-top span {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.learning-memory-top h2 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 38px;
  font-weight: 900;
  color: #0f172a;
}

.learning-memory-top p {
  margin-top: 10px;
  color: #64748b;
  line-height: 26px;
}

.learning-score-badge {
  min-width: 104px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #2563eb;
  color: white;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
}

.learning-score-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.learning-score-grid div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.learning-score-grid label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.learning-score-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  color: #1d4ed8;
  line-height: 30px;
  overflow-wrap: anywhere;
}

.learning-memory-section {
  margin-top: 28px;
}

.learning-memory-section h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 900;
  color: #0f172a;
}

.learning-memory-items {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.learning-memory-items>div {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.learning-memory-items p {
  margin-top: 10px;
  line-height: 28px;
  color: #475569;
}

.learning-memory-items p:first-child {
  margin-top: 0;
  color: #0f172a;
}

.learning-memory-items small,
.learning-muted {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-weight: 600;
}

.litigation-recap-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.litigation-tabs {
  padding: 12px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.litigation-tab {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.litigation-tab:hover,
.litigation-tab.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.litigation-panel {
  margin-top: 24px;
}

.litigation-history-heading,
.litigation-detail-header {
  padding: 24px;
  border-radius: 24px;
  display: grid;
  gap: 16px;
  align-items: center;
}

.litigation-history-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.litigation-detail-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.litigation-history-heading h2,
.litigation-detail-header h2 {
  margin-top: 10px;
  color: #0f172a;
  font-size: 30px;
  line-height: 38px;
  font-weight: 900;
}

.litigation-history-heading p,
.litigation-detail-header p {
  margin-top: 8px;
  color: #475569;
  line-height: 26px;
}

.litigation-history-heading>strong,
.litigation-detail-header>strong {
  padding: 12px 14px;
  border-radius: 16px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 16px;
  line-height: 24px;
  font-weight: 900;
}

.litigation-detail-header button {
  min-height: 44px;
  padding: 11px 16px;
  border: none;
  border-radius: 14px;
  background: #2563eb;
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.litigation-detail-header button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.litigation-detail-tabs {
  margin-top: 24px;
  padding: 12px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.litigation-detail-tab {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.litigation-detail-tab:hover,
.litigation-detail-tab.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.litigation-detail-stack {
  margin-top: 24px;
  display: grid;
  gap: 0;
}

.litigation-active-case {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.litigation-active-case h2 {
  margin-top: 10px;
  color: #0f172a;
  font-size: 28px;
  line-height: 36px;
  font-weight: 900;
}

.litigation-active-case p {
  margin-top: 8px;
  color: #475569;
  line-height: 26px;
}

.litigation-active-case>strong {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 16px;
  line-height: 24px;
  font-weight: 900;
}

.litigation-recap-card {
  padding: 30px;
  border-radius: 24px;
}

.litigation-case-desk,
.litigation-verdict-sheet {
  padding: 30px;
  border-radius: 24px;
}

.litigation-docket-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.litigation-docket-header h2,
.litigation-case-desk h2,
.litigation-verdict-sheet h2 {
  margin-top: 10px;
  color: #0f172a;
  font-size: 30px;
  line-height: 38px;
  font-weight: 900;
}

.litigation-docket-header p {
  margin-top: 10px;
  color: #475569;
  line-height: 28px;
}

.litigation-file-grid,
.litigation-conclusion-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.litigation-file-card,
.litigation-conclusion-grid div {
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.litigation-file-card span,
.litigation-conclusion-grid label {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.litigation-file-card h3 {
  margin-top: 12px;
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 900;
}

.litigation-file-card p,
.litigation-conclusion-grid p {
  margin-top: 10px;
  color: #475569;
  line-height: 25px;
}

.litigation-document-section,
.litigation-agenda-section,
.litigation-hearing-section {
  margin-top: 28px;
}

.litigation-section-heading h3 {
  margin-top: 10px;
  color: #0f172a;
  font-size: 24px;
  line-height: 32px;
  font-weight: 900;
}

.litigation-document-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.litigation-document-card {
  padding: 20px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.litigation-document-card h4 {
  color: #0f172a;
  font-size: 19px;
  line-height: 27px;
  font-weight: 900;
}

.litigation-document-card div {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.litigation-document-card strong {
  display: block;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.litigation-document-card p {
  margin-top: 8px;
  color: #475569;
  line-height: 25px;
}

.litigation-conclusion-grid div:last-child {
  grid-column: 1 / -1;
}

.litigation-agenda-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.litigation-agenda-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.litigation-agenda-item>span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.litigation-agenda-item h4 {
  color: #0f172a;
  font-size: 18px;
  line-height: 26px;
  font-weight: 900;
}

.litigation-agenda-item small {
  display: block;
  margin-top: 6px;
  color: #1d4ed8;
  font-weight: 900;
}

.litigation-agenda-item p {
  margin-top: 8px;
  color: #475569;
  line-height: 25px;
}

.litigation-agenda-item>strong {
  padding: 8px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.litigation-evidence-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.litigation-evidence-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.litigation-evidence-card h3 {
  color: #0f172a;
  font-size: 22px;
  line-height: 30px;
  font-weight: 900;
}

.litigation-evidence-card div {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.litigation-evidence-card span {
  display: inline-flex;
  min-width: 46px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.litigation-evidence-card strong {
  display: block;
  margin-top: 10px;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 900;
}

.litigation-evidence-card p,
.litigation-judge-question-list p,
.litigation-bap-grid p {
  margin-top: 8px;
  color: #475569;
  line-height: 25px;
}

.litigation-judge-question-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.litigation-judge-question-list p {
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: white;
  border-left: 4px solid #2563eb;
}

.litigation-bap-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.litigation-bap-grid div {
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.litigation-bap-grid strong {
  display: block;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.litigation-verdict-number {
  margin-top: 10px;
  color: #64748b;
  font-weight: 800;
}

.litigation-verdict-head {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  text-align: center;
}

.litigation-verdict-head strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  line-height: 24px;
  font-weight: 900;
}

.litigation-verdict-head p {
  margin-top: 8px;
  color: #475569;
  line-height: 24px;
}

.litigation-verdict-body {
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.litigation-verdict-body section {
  padding: 18px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.litigation-verdict-body section:first-child {
  padding-top: 0;
  border-top: none;
}

.litigation-verdict-body section:last-child {
  padding-bottom: 0;
}

.litigation-verdict-body h3 {
  color: #0f172a;
  font-size: 20px;
  line-height: 28px;
  font-weight: 900;
}

.litigation-verdict-body p {
  margin-top: 12px;
  color: #334155;
  line-height: 28px;
}

.litigation-verdict-body p:first-child {
  margin-top: 0;
}

.litigation-history-list {
  display: grid;
  gap: 16px;
}

.litigation-history-card {
  padding: 22px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.litigation-history-card.active {
  border: 2px solid rgba(37, 99, 235, 0.46);
  background: rgba(239, 246, 255, 0.88);
}

.litigation-history-card span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.litigation-history-card h3 {
  margin-top: 8px;
  color: #0f172a;
  font-size: 21px;
  line-height: 29px;
  font-weight: 900;
}

.litigation-history-card p {
  margin-top: 8px;
  color: #475569;
  line-height: 24px;
}

.litigation-history-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.litigation-history-actions strong {
  color: #2563eb;
  font-size: 30px;
  line-height: 36px;
  font-weight: 900;
}

.litigation-history-actions button {
  min-height: 42px;
  padding: 10px 14px;
  border: none;
  border-radius: 14px;
  background: #2563eb;
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.litigation-history-actions button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.procedural-flow {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
}

.procedural-flow div {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.procedural-flow strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 22px;
}

.procedural-flow p {
  margin-top: 10px;
  color: #475569;
  font-size: 14px;
  line-height: 24px;
}

.leaderboard-recap-summary {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.leaderboard-recap-summary div {
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.leaderboard-recap-summary label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-recap-summary strong {
  display: block;
  margin-top: 10px;
  color: #0f172a;
  font-size: 17px;
  line-height: 24px;
}

.leaderboard-recap-summary p {
  margin-top: 10px;
  color: #475569;
  line-height: 25px;
}

.essay-answer-box {
  margin-top: 20px;
}

.essay-answer-box label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
}

.essay-answer-input {
  width: 100%;
  min-height: 190px;
  padding: 16px;
  resize: vertical;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: #0f172a;
  background: white;
}

.essay-answer-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* LEADERBOARD */

.leaderboard-header {
  padding: 34px 38px;
  border-radius: 30px;
}

.leaderboard-header h1 {
  font-size: 38px;
  line-height: 46px;
  font-weight: 900;
  color: #0f172a;
}

.leaderboard-header p {
  margin-top: 10px;
  max-width: 860px;
  color: #475569;
  line-height: 28px;
}

.section-header-card,
.learning-header,
.litigation-header,
.achievement-header {
  padding: 34px 38px;
  border-radius: 30px;
}

.section-header-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.section-header-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.section-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-header-card h1,
.learning-header h1,
.litigation-header h1,
.achievement-header h1 {
  margin-top: 10px;
  font-size: 38px;
  line-height: 46px;
  font-weight: 900;
  color: #0f172a;
}

.section-header-card p,
.learning-header p,
.litigation-header p,
.achievement-header p {
  margin-top: 10px;
  max-width: 900px;
  color: #475569;
  line-height: 28px;
}

.leaderboard-table {

  margin-top: 0;

  border-radius: 30px;

  overflow-x: auto;

  overflow-y: hidden;
}

.leaderboard-recap {
  margin-top: 26px;
}

.leaderboard-tabs {
  padding: 10px;
  border-radius: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  max-width: 100%;
}

.leaderboard-tab {
  border: none;
  padding: 14px 18px;
  border-radius: 14px;
  background: white;
  color: #1d4ed8;
  font-weight: 900;
  cursor: pointer;
}

.leaderboard-tab.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.leaderboard-panel {
  margin-top: 26px;
}

.detail-page-header {
  padding: 32px 38px;
  border-radius: 30px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.detail-page-header h1 {
  margin-top: 10px;
  font-size: 38px;
  line-height: 46px;
  font-weight: 900;
  color: #0f172a;
}

.detail-page-header p {
  margin-top: 10px;
  color: #475569;
  line-height: 28px;
}

.detail-page-content {
  margin-top: 26px;
}

.leaderboard-master-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.leaderboard-detail-panel {
  min-width: 0;
  position: sticky;
  top: 24px;
}

.leaderboard-detail-panel .litigation-recap-card,
.leaderboard-detail-panel .quiz-review-item {
  margin-top: 0;
}

.leaderboard-row {

  display: grid;

  grid-template-columns: 64px 1fr 1.35fr 0.85fr 0.85fr 0.7fr 0.75fr 1fr;

  padding: 26px;

  border-bottom: 1px solid #e2e8f0;

  font-weight: 700;

  gap: 14px;

  align-items: center;

  overflow-wrap: anywhere;
}

.leaderboard-row.quiz-row {
  grid-template-columns: 64px 1fr 0.75fr 0.75fr 0.75fr 0.7fr 1fr 0.85fr;
}

.leaderboard-row:not(.leaderboard-head):hover {
  background: rgba(239, 246, 255, 0.82);
}

.inline-detail-button {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 16px;
  font-weight: 900;
  cursor: pointer;
}

.leaderboard-head {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.leaderboard-empty {
  padding: 28px;
  color: #64748b;
  font-weight: 700;
  line-height: 28px;
}

/* ACHIEVEMENT */

.achievement-grid {

  margin-top: 30px;

  display: grid;

  grid-template-columns: repeat(2, minmax(280px, 1fr));

  gap: 28px;

  align-items: stretch;
}

.achievement-grid .learning-empty {
  grid-column: 1 / -1;
}

.achievement-info {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 28px;
}

.achievement-info h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 900;
}

.achievement-info p {
  margin-top: 10px;
  max-width: 980px;
  color: #475569;
  line-height: 28px;
}

.achievement-card {

  padding: 34px;

  border-radius: 28px;

  text-align: left;

  border: 1px solid rgba(148, 163, 184, 0.22);

  min-height: 360px;

  display: flex;

  flex-direction: column;

  overflow: hidden;
}

.achievement-icon {

  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;

  flex: 0 0 auto;
}

.achievement-card.locked {
  opacity: 0.62;
}

.achievement-card.unlocked {
  border-color: #a7f3d0;
  background: rgba(240, 253, 244, 0.78);
}

.achievement-card.unlocked .achievement-icon {
  background: #10b981;
  color: white;
}

.achievement-type {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 20px;
}

.achievement-card h2 {
  margin-top: 12px;
  font-size: 26px;
  line-height: 34px;
  color: #0f172a;
  min-height: 68px;
}

.achievement-level-pill {
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.achievement-card p {
  margin-top: 14px;
  color: #475569;
  line-height: 28px;
  overflow-wrap: anywhere;
}

.achievement-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);

  min-height: 60px;
}

.achievement-meta span {
  color: #64748b;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.achievement-meta strong {
  color: #1d4ed8;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.achievement-card small {
  display: block;
  margin-top: 14px;
  color: #64748b;
  line-height: 24px;
  font-weight: 700;
}

/* PROCEDURE GUIDE */

.procedure-hero,
.procedure-game-note {
  padding: 38px;
  border-radius: 30px;
}

.procedure-hero h1 {
  margin-top: 10px;
  font-size: 42px;
  line-height: 50px;
  font-weight: 900;
  color: #0f172a;
}

.procedure-hero p,
.procedure-game-note p {
  margin-top: 14px;
  max-width: 960px;
  color: #475569;
  line-height: 30px;
}

.procedure-chapter-tabs {
  margin-top: 28px;
  padding: 12px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.procedure-ethics-panel {
  margin-top: 28px;
}

.procedure-chapter-tab {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.procedure-chapter-tab:hover,
.procedure-chapter-tab.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.procedure-role-grid,
.procedure-path-grid {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.procedure-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.procedure-path-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.procedure-role-card,
.procedure-path-card {
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
}

.procedure-role-card span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.procedure-role-card h2,
.procedure-path-card h2,
.procedure-game-note h2 {
  margin-top: 16px;
  color: #0f172a;
  font-size: 24px;
  line-height: 32px;
  font-weight: 900;
}

.procedure-role-card p,
.procedure-path-card>p {
  margin-top: 12px;
  color: #475569;
  line-height: 28px;
}

.procedure-path-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.procedure-path-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
}

.procedure-step-list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.procedure-step-list li {
  padding: 18px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.procedure-step-list strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.procedure-step-list p {
  margin-top: 8px;
  color: #475569;
  line-height: 26px;
}

.procedure-game-note {
  margin-top: 28px;
  background: rgba(236, 253, 245, 0.8);
}

.procedure-aspect-section {
  margin-top: 28px;
  padding: 34px;
  border-radius: 30px;
}

.procedure-section-header h2 {
  margin-top: 10px;
  color: #0f172a;
  font-size: 34px;
  line-height: 42px;
  font-weight: 900;
}

.procedure-section-header p {
  margin-top: 12px;
  max-width: 980px;
  color: #475569;
  line-height: 30px;
}

.procedure-aspect-tabs {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.procedure-aspect-tab {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.procedure-aspect-tab:hover,
.procedure-aspect-tab.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.procedure-aspect-panels {
  margin-top: 18px;
}

.procedure-aspect-card {
  padding: 26px;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  overflow: hidden;
}

.procedure-aspect-card span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.procedure-aspect-card h3 {
  margin-top: 14px;
  color: #0f172a;
  font-size: 21px;
  line-height: 29px;
  font-weight: 900;
}

.procedure-aspect-card p {
  margin-top: 10px;
  color: #475569;
  line-height: 26px;
}

.procedure-aspect-card ul {
  margin-top: 14px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.procedure-aspect-card li {
  color: #334155;
  line-height: 25px;
}

.procedure-law-section {
  margin-top: 28px;
  padding: 34px;
  border-radius: 30px;
}

.procedure-law-tabs {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.procedure-law-tab {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.procedure-law-tab:hover,
.procedure-law-tab.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.procedure-law-panels {
  margin-top: 18px;
}

.procedure-law-card {
  padding: 26px;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  overflow: hidden;
}

.procedure-law-card h3 {
  color: #0f172a;
  font-size: 24px;
  line-height: 32px;
  font-weight: 900;
}

.law-reference-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.law-reference-list div {
  padding: 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.law-reference-list strong {
  display: block;
  color: #1d4ed8;
  font-size: 15px;
  line-height: 23px;
  font-weight: 900;
}

.law-reference-list p {
  margin-top: 8px;
  color: #475569;
  line-height: 25px;
}

/* PROFILE */

.profile-card {

  max-width: none;

  margin: 0;

  padding: 42px;

  border-radius: 34px;

  text-align: left;
}

.profile-avatar {

  width: 120px;
  height: 120px;

  margin: 0;

  border-radius: 50%;

  background: #2563eb;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 44px;

  color: white;

  font-weight: 900;
}

.profile-card h1 {

  margin-top: 30px;

  font-size: 36px;

  font-weight: 900;
}

.profile-card p {

  margin-top: 14px;

  color: #64748b;
}

.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.profile-status {
  margin: 0;
  color: #64748b;
  line-height: 24px;
  font-size: 14px;
  font-weight: 700;
}

.profile-photo-input {
  display: none;
}

.profile-avatar,
.user-avatar {
  overflow: hidden;
}

.profile-avatar img,
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-input:disabled {
  color: #334155;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.profile-avatar-section .secondary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* HELP */

.help-hero,
.help-note {
  padding: 38px;
  border-radius: 30px;
}

.help-hero h1 {
  font-size: 42px;
  line-height: 50px;
  font-weight: 900;
}

.help-hero p,
.help-note p {
  margin-top: 14px;
  max-width: 920px;
  line-height: 30px;
  color: #475569;
}

.help-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.help-guide-card {
  padding: 28px;
  border-radius: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.help-guide-card span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.help-guide-card h2,
.help-note h2 {
  margin-top: 18px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 900;
  color: #0f172a;
}

.help-guide-card p {
  margin-top: 14px;
  color: #475569;
  line-height: 28px;
}

.help-note {
  margin-top: 28px;
}

/* MOBILE TOPBAR & HAMBURGER MENU */

.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 60px;
  padding: 0 18px;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.mobile-logo-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #1e3a8a;
}

.mobile-logo-icon {
  font-size: 22px;
  line-height: 1;
}

/* Hamburger button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: #eff6ff;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #1e3a8a;
  border-radius: 4px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* X animation when active */
.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.overlay-active {
  opacity: 1;
  pointer-events: auto;
}

/* RESPONSIVE */

@media(max-width:1400px) {

  .courtroom-grid {

    grid-template-columns: 1fr;
  }

}

@media(max-width:1200px) {

  .hero-section {

    grid-template-columns: 1fr;
  }

  .feature-grid,
  .level-grid,
  .dictionary-grid,
  .article-aspect-tabs,
  .article-reference-grid,
  .dictionary-term-list,
  .procedure-guide-grid,
  .learning-reference-grid,
  .help-grid,
  .learning-score-grid,
  .procedural-flow,
  .leaderboard-recap-summary,
  .litigation-file-grid,
  .litigation-conclusion-grid,
  .litigation-document-grid,
  .litigation-evidence-grid,
  .litigation-bap-grid,
  .learning-grid,
  .benefit-section,
  .benefit-grid,
  .method-flow,
  .proposal-fit-grid,
  .learning-memory-workspace,
  .leaderboard-master-detail,
  .procedure-role-grid,
  .procedure-path-grid {

    grid-template-columns: 1fr;
  }

  .procedure-aspect-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .procedure-chapter-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .procedure-law-tabs,
  .litigation-tabs,
  .litigation-detail-tabs,
  .law-reference-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-memory-index,
  .leaderboard-detail-panel {
    position: static;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

}

/* TABLET (≤ 1000px) */
@media(max-width:1000px) {

  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex: 0 0 auto;
    min-height: auto;
    position: relative;
  }

  .scenario-grid,
  .role-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .decision-tree {
    grid-template-columns: 1fr;
  }

  .profile-info {
    grid-template-columns: 1fr;
  }

  .leaderboard-table {
    overflow-x: auto;
  }

  .leaderboard-row {
    min-width: 1040px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

}

/* MOBILE (≤ 900px) — Sidebar becomes slide-in drawer */
@media(max-width:900px) {

  .content-area :where(p, li, small) {
    line-height: 1.66;
    word-spacing: normal;
  }

  .content-area :where(.glass-card,
    .level-card,
    .case-type-card,
    .feature-card,
    .role-card,
    .question-box,
    .litigation-case-desk,
    .litigation-verdict-sheet,
    .procedure-path-card,
    .dictionary-card,
    .help-guide-card) {
    min-width: 0;
  }

  /* Show mobile topbar */
  .mobile-topbar {
    display: flex;
  }

  /* Show overlay element (visibility toggled via JS class) */
  .sidebar-overlay {
    display: block;
  }

  /* Push content down to make room for topbar */
  .main-layout {
    flex-direction: column;
    padding-top: 60px;
  }

  /* Sidebar becomes a fixed drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(290px, 82vw);
    flex: none;
    min-height: 100vh;
    z-index: 150;
    transform: translateX(-105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-right: 1px solid rgba(37, 99, 235, 0.12);
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(15, 23, 42, 0.18);
  }

  .content-area {
    width: 100%;
    min-width: 0;
    padding: 20px 16px;
  }

  /* Hero section: single column, smaller text */
  .hero-section {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 24px;
  }

  .hero-title {
    font-size: 38px;
    line-height: 46px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 28px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
    text-align: center;
  }

  .hero-image {
    height: 220px;
  }

  /* Feature grid: single column */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 22px;
    min-height: auto;
  }

  /* About section: single column */
  .about-section {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }

  .about-section h2 {
    font-size: 28px;
  }

  /* Page headers */
  .page-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .page-header .badge-level {
    justify-self: start;
  }

  .page-header h1 {
    font-size: 30px;
    line-height: 38px;
  }

  /* Scenario & Level grids */
  .scenario-grid,
  .level-grid,
  .role-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scenario-card {
    padding: 22px;
  }

  .scenario-card h2 {
    font-size: 24px;
  }

  .scenario-image {
    height: 180px;
  }

  .level-card {
    padding: 24px;
    min-height: auto;
  }

  .level-card .level-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .level-card h2 {
    font-size: 22px;
  }

  .role-card {
    padding: 28px 20px;
    min-height: 220px;
  }

  .role-grid.single-action-grid .role-card {
    min-height: 210px;
    padding: 26px 22px;
  }

  .role-card h2 {
    font-size: 24px;
    line-height: 32px;
  }

  /* Courtroom */
  .courtroom-grid {
    display: flex;
    flex-direction: column;
  }

  .courtroom-grid .court-main {
    order: 1;
  }

  .courtroom-grid .court-sidebar {
    order: 2;
  }

  .courtroom-header {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
  }

  .courtroom-header h1 {
    font-size: 26px;
  }

  .score-wrapper {
    justify-self: start;
    text-align: center;
    min-width: 96px;
  }

  .score-wrapper h2 {
    font-size: 40px;
    line-height: 44px;
  }

  /* Sections/headers */
  .section-header-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
  }

  .section-header-card h1,
  .learning-header h1,
  .litigation-header h1,
  .achievement-header h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .section-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 24px;
  }

  .detail-page-header {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
  }

  .detail-page-header h1 {
    font-size: 24px;
    line-height: 32px;
  }

  /* Benefit and method sections */
  .benefit-section {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .benefit-section h2,
  .proposal-fit-section h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .method-flow {
    grid-template-columns: 1fr;
  }

  .proposal-fit-grid {
    grid-template-columns: 1fr;
  }

  .proposal-fit-section {
    padding: 22px;
  }

  /* Navigation buttons */
  .bottom-actions {
    flex-direction: column;
    gap: 12px;
  }

  .bottom-actions .primary-button,
  .bottom-actions .secondary-button {
    width: 100%;
    text-align: center;
  }

  /* Quiz topbar */
  .quiz-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Negotiation */
  .negotiation-dialogue-header {
    flex-direction: column;
    gap: 14px;
  }

  .negotiation-input-actions {
    flex-direction: column;
    gap: 10px;
  }

  .formal-agenda-list {
    grid-template-columns: 1fr;
  }

  .formal-agenda-card {
    min-height: auto;
  }

  .negotiation-message {
    max-width: 100%;
  }

  .negotiation-round-badge {
    align-self: flex-start;
  }

  /* Dictionary & Procedures scrollable tabs */
  .dictionary-tabs,
  .procedure-aspect-tabs,
  .procedure-chapter-tabs,
  .procedure-law-tabs,
  .article-aspect-tabs,
  .leaderboard-tabs,
  .litigation-tabs,
  .litigation-detail-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    padding: 6px !important;
    scrollbar-width: none;
    /* Firefox */
  }

  .dictionary-tabs::-webkit-scrollbar,
  .procedure-aspect-tabs::-webkit-scrollbar,
  .procedure-chapter-tabs::-webkit-scrollbar,
  .procedure-law-tabs::-webkit-scrollbar,
  .article-aspect-tabs::-webkit-scrollbar,
  .leaderboard-tabs::-webkit-scrollbar,
  .litigation-tabs::-webkit-scrollbar,
  .litigation-detail-tabs::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
  }

  .dictionary-tab,
  .procedure-aspect-tab,
  .procedure-chapter-tab,
  .procedure-law-tab,
  .article-aspect-tab,
  .leaderboard-tab,
  .litigation-tab,
  .litigation-detail-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .dictionary-section {
    grid-template-columns: 1fr;
  }

  .dictionary-detail-header {
    grid-template-columns: 1fr;
  }

  /* Procedures Card Lists (Not tabs) */
  .law-reference-list {
    grid-template-columns: 1fr;
  }

  /* Profile */
  .profile-avatar-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .profile-info {
    grid-template-columns: 1fr;
  }

  /* Leaderboard */
  .leaderboard-table {
    overflow-x: auto;
  }

  .leaderboard-row {
    min-width: 680px;
  }

  .leaderboard-recap-summary {
    grid-template-columns: 1fr;
  }

  .litigation-docket-header,
  .litigation-history-card,
  .litigation-history-heading,
  .litigation-detail-header,
  .litigation-agenda-item {
    grid-template-columns: 1fr;
  }

  .litigation-docket-header,
  .litigation-history-card,
  .litigation-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .litigation-agenda-item>strong {
    width: max-content;
    max-width: 100%;
    white-space: normal;
  }

  /* Learning */
  .learning-memory-top {
    flex-direction: column;
    gap: 14px;
  }

  .learning-score-badge {
    width: 100%;
  }

  .learning-memory-workspace {
    grid-template-columns: 1fr;
  }

  .learning-memory-index {
    position: static;
  }

  /* Quiz result */
  .quiz-result-score {
    font-size: 48px;
  }

  /* Help grid */
  .help-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Court filter */
  .court-filter-note {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .court-filter-note h2 {
    font-size: 22px;
    line-height: 30px;
  }

  /* Pleading */
  .pleading-document,
  .legal-pathway-final,
  .decision-tree-final,
  .court-consideration-final {
    padding: 18px;
  }

  .pleading-header h2 {
    font-size: 20px;
  }

  /* Buttons: make key action buttons full-width on mobile */
  .primary-button.full-button,
  .secondary-button.full-button {
    width: 100%;
    text-align: center;
  }

  /* Home vision card */
  .home-vision-card {
    min-height: auto;
    padding: 22px;
  }

  .home-vision-card h2 {
    font-size: 26px;
    line-height: 34px;
  }

}

/* SMALL MOBILE (≤ 480px) */
@media(max-width:480px) {

  .content-area {
    padding: 14px 12px;
  }

  .content-area :where(p, li, small) {
    line-height: 1.58;
    letter-spacing: 0;
    word-spacing: normal;
  }

  .content-area :where(.primary-button,
    .secondary-button,
    .role-card,
    .option-button,
    .procedure-chapter-tab,
    .procedure-aspect-tab,
    .procedure-law-tab,
    .dictionary-tab,
    .litigation-tab,
    .litigation-detail-tab) {
    white-space: normal;
  }

  .hero-section {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 30px;
    line-height: 38px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 24px;
  }

  .page-header h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .scenario-card h2 {
    font-size: 20px;
  }

  .role-card h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .feature-card {
    padding: 18px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }

  .feature-card h2 {
    font-size: 18px;
  }

  .courtroom-header h1 {
    font-size: 22px;
  }

  .score-wrapper h2 {
    font-size: 32px;
    line-height: 36px;
  }

  .option-button {
    font-size: 14px;
    padding: 12px 14px;
  }

  .question-box p {
    font-size: 15px;
  }

  .stat-card h3 {
    font-size: 32px;
  }

  .rebuttal-buttons {
    flex-direction: column;
  }

  .rebuttal-buttons button {
    width: 100%;
  }

  .logo-title {
    font-size: 20px;
  }

  .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 22px;
  }

  .primary-button,
  .secondary-button {
    padding: 14px 20px;
    font-size: 14px;
  }

  .nav-button {
    font-size: 14px;
    padding: 14px 16px;
    min-height: 50px;
  }

  .section-header-card {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

}
