/* Forge — layout system v2: dark rounded panels + bento grid.
   Art direction referenced from the fitness-site layout the owner selected;
   palette is entirely our own cream+coral brand. Loads after forge.css. */

.shell { max-width: 1280px; margin-inline: auto; padding: 14px clamp(12px, 2vw, 20px); }

/* ---- dark panel (hero / bento ground) ---- */
.panel-dark {
  background: #1A0E09;
  color: #fff;
  border-radius: 30px;
  padding: clamp(18px, 2.4vw, 26px);
  position: relative;
  overflow: hidden;
}
.panel-dark h1, .panel-dark h2, .panel-dark h3 { color: #fff; }

/* ---- top nav ---- */
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 5vw, 54px); position: relative; z-index: 3; }
.topnav .brand { color: #fff; font-size: 21px; }
.topnav .brand img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.navmid { display: flex; gap: 26px; }
.navmid a { color: rgba(255,255,255,.74); font-size: 15px; font-weight: 500; }
.navmid a:hover { color: #fff; text-decoration: none; }
.navright { display: flex; align-items: center; gap: 14px; }
.navright .login { color: rgba(255,255,255,.8); font-size: 15px; }
.btn-pill-light { background: #fff; color: var(--ink); padding: 11px 22px; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 15px; }
.btn-pill-light:hover { background: var(--coral); color: #fff; text-decoration: none; }
@media (max-width: 900px) { .navmid { display: none; } }

/* ---- hero ---- */
.hero-panel { min-height: 580px; display: flex; flex-direction: column; }
.hero-art { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, #1A0E09 6%, rgba(26,14,9,.86) 36%, rgba(26,14,9,.30) 74%); }
.hero-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(20px, 5vw, 56px); }
.hero-title { font-size: clamp(38px, 6.4vw, 76px); line-height: .98; letter-spacing: -.02em; margin: 0 0 26px; text-transform: none; max-width: 15ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-accent { background: var(--coral); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; }
.btn-accent:hover { background: var(--coral-deep); text-decoration: none; }
.btn-dark { background: rgba(255,255,255,.10); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid rgba(255,255,255,.22); display: inline-flex; align-items: center; gap: 10px; }
.btn-dark:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.arrow { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 13px; flex: none; }
.btn-accent .arrow { background: rgba(255,255,255,.26); }

/* ---- hero bottom card row ---- */
.hero-row { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1.25fr 1fr; gap: 14px; margin-top: auto; }
@media (max-width: 960px) { .hero-row { grid-template-columns: 1fr; } }
.mini { border-radius: 20px; padding: 18px; }
.mini-light { background: #fff; color: var(--ink); }
.mini-glass { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); color: #fff; }
.mini-accent { background: var(--coral); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.mini h4 { font-family: var(--display); font-size: 20px; margin: 0 0 6px; color: inherit; }
.mini p { font-size: 13.5px; line-height: 1.5; margin: 0; max-width: none; }
.mini-light p { color: var(--ink-soft); }
.avatars { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avstack { display: flex; }
.avstack span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; background: var(--bg-3); display: grid; place-items: center; font-size: 15px; }
.avstack span:first-child { margin-left: 0; }
.bignum { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--ink); }
.mini-accent .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* ---- pill label ---- */
.pill-label { display: inline-block; border: 1px solid var(--ink-ghost); border-radius: 999px; padding: 9px 20px; font-family: var(--display); font-weight: 600; font-size: 15px; background: var(--surface); color: var(--ink); }
.pill-on-img { position: absolute; top: 16px; left: 16px; background: #fff; border: 0; z-index: 2; }

/* ---- media card ---- */
.media-card { position: relative; border-radius: 24px; overflow: hidden; min-height: 300px; background: var(--bg-3); display: flex; align-items: flex-end; }
.media-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-card .cap { position: relative; z-index: 2; color: #fff; padding: 20px; font-size: 17px; font-weight: 500; line-height: 1.35;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent); width: 100%; }

/* ---- bento ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .span2, .row2 { grid-column: span 2; grid-row: auto; } }
.tile { background: rgba(255,255,255,.07); border-radius: 20px; padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 152px; }
.tile p { font-size: 16px; line-height: 1.35; margin: 0; color: #fff; max-width: none; }
.tile .ticon { color: var(--coral); margin-bottom: 14px; }
.tile .ticon svg { width: 30px; height: 30px; }
.tile-stat { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; color: var(--coral); }
.tile-accent { background: var(--coral); }
.tile-accent p, .tile-accent .tile-stat, .tile-accent .ticon { color: #fff; }
.span2 { grid-column: span 2; }
.row2 { grid-row: span 2; }
.tile-img { position: relative; overflow: hidden; padding: 0; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-mark { position: relative; z-index: 2; margin: auto; font-family: var(--display); font-weight: 700; font-size: clamp(64px, 9vw, 130px); color: var(--coral); line-height: 1; }

/* ---- section head ---- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { margin: 0; max-width: 20ch; text-transform: none; font-size: clamp(28px, 4vw, 46px); }

/* ---- character / store grids ---- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ccard { background: var(--surface); border: 1px solid var(--ink-ghost); border-radius: 20px; overflow: hidden; display: block; transition: transform .2s ease, box-shadow .2s ease; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.ccard .art { aspect-ratio: 3/4; position: relative; background: var(--bg-3); overflow: hidden; }
.ccard .art img { width: 100%; height: 100%; object-fit: cover; }
.ccard .meta { padding: 14px 16px 16px; }
.ccard .nm { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.1; }
.ccard .sr { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.rchip { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; color: #fff; }
.r-Common { background: #78716C; } .r-Rare { background: #2563EB; } .r-Epic { background: #7C3AED; }
.r-Legendary { background: #C08A1E; } .r-Mythic { background: #DB2777; }
.statline { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--ink-faint); font-family: var(--display); font-weight: 600; letter-spacing: .04em; }

/* ---- filter chips ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 1px solid var(--ink-ghost); background: var(--surface); border-radius: 999px; padding: 9px 18px; font-family: var(--display); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); transition: background .18s, color .18s, border-color .18s; }
.chip:hover { border-color: var(--coral); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- wiki detail ---- */
.wiki-hero { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .wiki-hero { grid-template-columns: 1fr; } }
.wiki-art { border-radius: 24px; overflow: hidden; background: var(--bg-3); aspect-ratio: 3/4; }
.wiki-art img { width: 100%; height: 100%; object-fit: cover; }
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0; }
.trait { background: var(--surface); border: 1px solid var(--ink-ghost); border-radius: 16px; padding: 14px 16px; }
.trait .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--display); font-weight: 600; }
.trait .v { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); margin-top: 3px; }

/* ---- store ---- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.pcard { background: var(--surface); border: 1px solid var(--ink-ghost); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pvisual { position: relative; height: 150px; display: grid; place-items: center; }
.pvisual svg { width: 58px; height: 58px; }
.pvisual-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptint { position: absolute; inset: 0; }
.pdisc { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.94); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .pname { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); line-height: 1.15; }
.pcard .ppartner { font-size: 12px; color: var(--coral-ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pcard .pblurb { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; flex: 1; }
.pbuy { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 16px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-decoration: none; transition: background .18s ease; }
.pbuy:hover { background: var(--coral-deep); color: #fff; text-decoration: none; }
.pcost { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--coral-wash); color: var(--coral-deep); border-radius: 999px; padding: 7px 14px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .04em; }

/* ---- binder (account + public player) ---- */
.foil-chip { position:absolute; top:10px; right:10px; z-index:2; background:linear-gradient(120deg,#F1795A,#DB2777); color:#fff; font-family:var(--display); font-weight:600; font-size:10px; letter-spacing:.1em; padding:4px 9px; border-radius:999px; }
