/* ==========================================================================
   BOSS RYAN - The Gang Deluxe Expansion Rule Page Styles (Detailed Layout)
   ========================================================================== */

body {
  background-color: var(--color-bg, #000000);
  color: var(--color-text, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard, sans-serif;
  margin: 0 auto;
  max-width: 500px;
  min-height: 100vh;
  padding: 0 12px 24px 12px;
  box-sizing: border-box;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header */
.app-header {
  margin-top: 14px;
  margin-bottom: 2px;
}

.header-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #bf5af2;
  background: rgba(191, 90, 242, 0.15);
  padding: 3px 8px;
  border-radius: 1vw;
  border: 1px solid rgba(191, 90, 242, 0.3);
  white-space: nowrap;
}

.app-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  cursor: pointer;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rules Container */
.rules-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-card {
  background-color: var(--color-surface, #1c1c1e);
  border: 1px solid var(--color-border, #38383a);
  border-radius: 1.5dvh;
  overflow: hidden;
  padding: 12px;
}

.rule-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rule-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0.5vw;
  white-space: nowrap;
}

.tag-joker { background: rgba(175, 82, 222, 0.2); color: #bf5af2; }
.tag-tools { background: rgba(10, 132, 255, 0.2); color: #0a84ff; }
.tag-dealer { background: rgba(255, 159, 10, 0.2); color: #ff9f0a; }

.rule-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.rule-content {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(235, 235, 245, 0.9);
}

/* Card Grid & Items */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-item {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1dvh;
  padding: 10px 12px;
}

.margin-top-6 {
  margin-top: 6px;
}

.card-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #bf5af2;
  margin-bottom: 4px;
}

.card-detail {
  font-size: 0.78rem;
  color: rgba(235, 235, 245, 0.88);
  line-height: 1.5;
}

.card-detail em {
  font-style: normal;
  color: #0a84ff;
  font-weight: 600;
}

/* Footer Button */
.home-button-container {
  margin-top: 1.5dvh;
}

.home-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5vw;
  width: 100%;
  padding: 1.4dvh;
  background-color: var(--color-surface, #1c1c1e);
  border: 0.1dvh solid var(--color-border, #38383a);
  border-radius: 3vw;
  color: var(--color-text-muted, rgba(235, 235, 245, 0.8));
  text-decoration: none;
  font-size: 1.4dvh;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.home-button svg {
  width: 2dvh;
  height: 2dvh;
}

.home-button:active {
  transform: scale(0.98);
  background-color: #2c2c2e;
}
