/* Card Legend pages only. Existing service artwork and shared legal rules stay intact. */
.cardlegend-category-nav { display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px;padding-block:12px;border-bottom:1px solid #c7a56a44; }
.cardlegend-category-nav span { color:#c7a56a;font-size:.8rem;margin-right:auto; }
.cardlegend-category-nav a { color:#e8dfcf;padding:9px 12px;border-radius:9px;font-size:.9rem; }
.cardlegend-category-nav a:hover,.cardlegend-category-nav a[aria-current="page"] { background:#bd985329;color:#ffe1a5; }
body[data-page="home"], .cardlegend-page { min-width: 0; }
.cardlegend-card, .cardlegend-hero {
  background: radial-gradient(ellipse at top right, rgba(190, 149, 72, .14), transparent 70%), #10182b;
  border: 1px solid rgba(218, 183, 113, .32);
  border-radius: 28px;
}
.cardlegend-card .game-card-copy h3 { font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.cardlegend-subtitle { display: block; color: #e8c98a; }
.cardlegend-aside { border-left: 1px solid rgba(218, 183, 113, .3); padding: 24px; }
.cardlegend-aside p { font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.5; color: #f3dfb7; }
.cardlegend-aside small { color: #c0ccdb; line-height: 1.8; }
.cardlegend-page { word-break: keep-all; overflow-wrap: anywhere; }
.cardlegend-page .cardlegend-hero { margin-top: 40px; padding: clamp(26px, 6vw, 68px); }
.cardlegend-hero h1 { margin: 20px 0; font-size: clamp(2rem, 5.2vw, 4.5rem); line-height: 1.23; letter-spacing: -.045em; }
.cardlegend-hero .intro { max-width: 760px; color: #c9d5e5; font-size: 1.12rem; line-height: 1.9; }
.cardlegend-page .hero-actions { flex-wrap: wrap; }
.cardlegend-page .section { padding-top: 48px; padding-bottom: 28px; }
.cardlegend-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cardlegend-info { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: #101a2b; }
.cardlegend-info h2, .cardlegend-info h3 { font-size: 1.25rem; line-height: 1.5; margin: 0 0 14px; }
.cardlegend-info p { line-height: 1.85; color: #c2cfdf; }
.cardlegend-pending { display: inline-block; border: 1px solid #62718a; border-radius: 24px; padding: 6px 14px; color: #c2cfdf; }
.cardlegend-note { color: #c2cfdf; line-height: 1.9; border-left: 3px solid #d2ac62; padding-left: 20px; margin: 28px 0; }
.cardlegend-legal { max-width: 820px; padding-bottom: 60px; }
.cardlegend-legal section { margin: 34px 0; }
.cardlegend-legal h2 { font-size: 1.35rem; }
.cardlegend-legal p { line-height: 1.9; color: #c9d5e5; }
.cardlegend-page .footer-links { flex-wrap: wrap; }
@media (max-width: 980px) {
  .cardlegend-info-grid { grid-template-columns: 1fr; }
  .cardlegend-aside { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}
@media (max-width: 760px) {
  .cardlegend-page .cardlegend-hero { margin-top: 24px; }
  .cardlegend-page .hero-actions .button { width: 100%; text-align: center; white-space: normal; }
}
.cardlegend-logo-heading img { display:block;width:100%;height:auto;object-fit:contain; }
.cardlegend-card { background:linear-gradient(90deg,rgba(7,17,34,.94) 0%,rgba(7,17,34,.74) 50%,rgba(7,17,34,.2)),url("assets/cardlegend/hub-background.png") 38% center/cover; }
.cardlegend-card .cardlegend-logo-heading { max-width:460px;margin:8px 0 18px; }
.cardlegend-card .game-card-copy p,.cardlegend-aside p,.cardlegend-aside small { color:#f1e4cc;text-shadow:0 2px 5px #000; }
.cardlegend-card .button { background:#0d1c32e8; }
.cardlegend-page .cardlegend-hero { background:linear-gradient(90deg,rgba(5,15,31,.02) 0%,rgba(5,15,31,.25) 30%,rgba(5,15,31,.83) 55%,rgba(5,15,31,.94)),url("assets/cardlegend/hub-background.png") 30% center/cover;min-height:540px;display:flex;align-items:center; }
.cardlegend-hero-content { width:64%;margin-left:auto; }
.cardlegend-hero .cardlegend-logo-heading { margin:18px 0;max-width:600px; }
.cardlegend-hero .intro { color:#eef0f3;font-size:1rem;line-height:1.9;text-shadow:0 2px 7px #000; }
.cardlegend-hero .hero-actions { gap:10px; }
.cardlegend-hero .hero-actions .button { font-size:.88rem;padding:12px 16px; }
.cardlegend-hero .cardlegend-note { color:#e3d3b8;font-size:.85rem; }
.cardlegend-art-showcase { margin:0 0 28px;border-radius:22px;overflow:hidden;border:1px solid #a88a5566;background:#101a2b; }
.cardlegend-art-showcase img { width:100%;height:auto;display:block; }
.cardlegend-art-showcase figcaption { color:#e1ccaa;text-align:center;padding:16px;font-size:.94rem; }
.cardlegend-page .site-nav,body[data-page="home"] .site-nav { flex-wrap:wrap;justify-content:flex-end; }
@media(max-width:760px) {
 .cardlegend-page .cardlegend-hero { min-height:660px;align-items:flex-end;padding:24px;background:linear-gradient(180deg,rgba(5,15,31,.02),rgba(5,15,31,.12) 30%,rgba(5,15,31,.93) 58%,#071223 100%),url("assets/cardlegend/hub-background.png") 20% top/auto 480px no-repeat; }
 .cardlegend-hero-content { width:100%;margin:260px 0 0; }
 .cardlegend-hero .cardlegend-note { margin:18px 0 0; }
 .cardlegend-card { background-position:20% center; }
 .cardlegend-page .site-nav,body[data-page="home"] .site-nav { align-items:stretch; }
 .cardlegend-logo-heading img { max-height:160px; }
}
