/* Arcana pages — shared styles for /arcanas/*
 * Extracted from inline <style> blocks (was duplicated 22×).
 * Do not put page-unique content styles here.
 */
.arcana-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  margin: 3rem 0;
}

.arcana-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(201, 168, 232, 0.3);
  max-width: 220px;
  width: 100%;
}

.arcana-aside {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}

.arcana-image img {
  width: 100%;
  height: auto;
  display: block;
}

.arcana-content h1 {
  font-size: 3rem;
  color: #c9a8e8;
  margin-bottom: 1rem;
  font-family: 'Montserrat Alternates', sans-serif;
}

.arcana-content {
  border-radius: 16px;
  padding: 1.5rem;
}

.arcana-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.arcana-content p strong {
  color: #e6d2f4;
}

.arcana-content h2.arcana-section-title {
  color: #e6d2f4;
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 700;
  margin: 0 0 1rem;
}

.arcana-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.2rem 0 1.6rem;
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 0.98rem;
  color: #e7d7f5;
  background: rgba(16, 10, 28, 0.35);
  border: 1px solid rgba(201, 168, 232, 0.28);
  border-radius: 12px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background-clip: padding-box;
  clip-path: inset(0 round 12px);
}

.arcana-table th,
.arcana-table td {
  padding: 0.7rem 0.9rem;
  width: 50%;
  border-right: 1px solid rgba(201, 168, 232, 0.2);
  border-bottom: 1px solid rgba(201, 168, 232, 0.2);
  text-align: left;
  vertical-align: top;
}

.arcana-table th {
  font-weight: 600;
  color: #f3eaff;
  background: rgba(201, 168, 232, 0.14);
  white-space: nowrap;
}

.arcana-table th:first-child {
  color: #cfe9b0;
}

.arcana-table th:last-child {
  color: #f2b3a8;
}

.arcana-table td {
  color: #ffffff;
  min-height: 2.4rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.arcana-table th:last-child,
.arcana-table td:last-child {
  border-right: none;
}

.arcana-table tr:last-child td {
  border-bottom: none;
}

.arcana-content p.arcana-hint {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #ffffff;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 232, 0.28);
  background: rgba(22, 12, 36, 0.45);
  box-shadow: 0 8px 20px rgba(10, 6, 18, 0.25);
  margin-top: 0.2rem;
}

.arcana-divider {
  position: relative;
  height: 0;
  margin: 1.2rem 0 1.35rem;
  opacity: 0.9;
}

.arcana-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb3b3, #ffd9b3, #ffff99, #b3ffb3, #b3b3ff, #d9b3ff, #ffb3b3);
  background-size: 200% 100%;
  animation: gradient-shift 6s ease-in-out infinite;
}
/* Layout + sizing for shared liquid-glass buttons (styles come from index.css) */
.arcana-aside .cosmic-btn-new,
.back-button.cosmic-btn-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-decoration: none;
  text-transform: none;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
}

.back-button.top-back-button {
  display: none;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.arcana-aside .quick-matrix-btn,
.bottom-actions .back-button {
  margin-top: 0;
}

.bottom-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .arcana-hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .arcana-aside {
    display: contents;
  }

  .arcana-image {
    order: 1;
  }

  .arcana-content {
    order: 2;
  }

  .bottom-actions {
    order: 3;
  }

  .arcana-image {
    max-width: 120px;
    margin: 0 auto;
  }

  .arcana-content h1 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .arcana-content {
    padding: 1.1rem;
    border-radius: 14px;
  }

  .arcana-content p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1rem;
  }

  .arcana-content p.arcana-hint {
    font-size: 0.72rem;
    padding: 0.5rem 0.6rem;
  }

  .arcana-divider {
    margin: 1rem 0 1.1rem;
  }

  .arcana-divider::before {
    height: 0.5px;
  }
  .arcana-table {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }

  .arcana-table th,
  .arcana-table td {
    padding: 0.55rem 0.6rem;
  }

  .arcana-table td {
    font-size: 0.72rem;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .arcana-aside .cosmic-btn-new,
  .back-button.cosmic-btn-new {
    width: 100%;
    margin-top: 1.2rem;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }

  .bottom-actions {
    margin-top: 1rem;
    gap: 0.65rem;
    align-items: center;
    align-self: center;
    width: 100%;
  }

  .bottom-actions .cosmic-btn-new {
    width: min(100%, 320px);
    max-width: 320px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .back-button.top-back-button {
    display: inline-flex;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .arcana-hero {
    margin: 1.5rem 0;
    gap: 1.2rem;
  }

  .arcana-image {
    max-width: 120px;
  }

  .arcana-content h1 {
    font-size: 1.4rem;
  }

  .arcana-content {
    padding: 0.95rem;
    border-radius: 12px;
  }

  .arcana-content p {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .arcana-table td {
    font-size: 0.60rem;
    line-height: 1.15;
    padding: 0.45rem 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: keep-all;
  }
}

@media screen and (max-width: 810px) {

  .hero-content > p:first-of-type {
    font-size: 2em !important;
    margin-bottom: 0.2em !important;
    margin-top: 0 !important;
  }

  .hero-content > p:nth-of-type(2) {
    font-size: 0.95em !important;
    margin-bottom: 0.6em !important;
    line-height: 1.5 !important;
  }

}
