/* Character cards, picker and the Dark Army theme, on top of the Bob's Kingdom site styles */
:root { --common: #c9ced6; --common2: #8d939c; --rare: #4a9af0; --rare2: #1f5fb0; --epic: #b46cf0; --epic2: #6a2fa8; --leg: #ffd84a; --leg2: #c98a12; }

/* ---------- trading card ---------- */
.tcard { --a: var(--common); --b: var(--common2); position: relative; width: 300px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 18px; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 0 0 5px var(--ink), 0 10px 0 5px rgba(36, 23, 38, .45); color: var(--ink); font-family: "Lilita One", system-ui, sans-serif; overflow: hidden; }
.tcard.rare { --a: var(--rare); --b: var(--rare2); } .tcard.epic { --a: var(--epic); --b: var(--epic2); } .tcard.legendary { --a: var(--leg); --b: var(--leg2); }
.tcard.legendary::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%); animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
@media (prefers-reduced-motion: reduce) { .tcard.legendary::after { animation: none; display: none; } }
.tc-top { position: absolute; z-index: 2; left: 18px; right: 18px; top: 18px; display: flex; justify-content: space-between; pointer-events: none; }
.tc-ovr, .tc-pow { display: flex; flex-direction: column; align-items: center; line-height: 1; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.tc-ovr b { font-size: 46px; font-weight: 400; } .tc-ovr span { font-size: 12px; letter-spacing: 1px; -webkit-text-stroke: 3px var(--ink); margin-top: 2px; }
.tc-pow { background: rgba(36, 23, 38, .78); border-radius: 10px; padding: 5px 8px 6px; -webkit-text-stroke: 0; }
.tc-pow span { font-size: 11px; letter-spacing: 1.5px; color: #f7e7c4; } .tc-pow b { font-size: 28px; font-weight: 400; color: var(--gold); }
.dark .tc-pow b { color: #ff9a3a; }
.tc-art { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 3px var(--ink); aspect-ratio: 4 / 5; background: #222; }
.tc-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-name { margin: 8px 0 0; text-align: center; font-size: 26px; line-height: 1.05; color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.tc-who { text-align: center; font: 700 14px/1.3 system-ui, sans-serif; color: var(--ink); margin: 3px 0 6px; } .tc-who.line { font-weight: 600; font-size: 13px; opacity: .85; }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tc-stats div { display: flex; justify-content: space-between; align-items: baseline; background: rgba(255, 250, 240, .9); border-radius: 7px; padding: 3px 8px 2px; box-shadow: 0 0 0 2px var(--ink); }
.tc-stats span { font-size: 13px; letter-spacing: 1px; color: #6d5a4a; } .tc-stats b { font-size: 20px; font-weight: 400; }
.tc-ab { margin: 7px 0 0; text-align: center; background: rgba(36, 23, 38, .82); color: #fff; border-radius: 8px; padding: 4px 6px 3px; font-size: 16px; }
.tc-ab span { font-size: 11px; letter-spacing: 1.5px; color: var(--gold); margin-right: 4px; }
.tc-foot { display: flex; justify-content: space-between; margin: 7px 2px 0; font-size: 11px; letter-spacing: 1.2px; color: var(--ink); opacity: .8; }

/* ---------- army power boards ---------- */
.vs { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 6px; }
.vs .board { min-width: 0; flex: 1 1 0; padding: 8px 8px 7px; }
.vs .board .value { font-size: clamp(30px, 9vw, 44px); }
.vs .board .label { font-size: 14px; }
.vs .x { font: 34px/1 "Lilita One", sans-serif; color: var(--cream); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.board.stone { background: repeating-linear-gradient(0deg, #2a2430 0 15px, #241f2a 15px 17px, #312a38 17px 31px, #1f1b24 31px 33px); }
.board.stone .value { color: #ff8a2a; } .board.stone .label { color: #ffcfa8; }
.power-note { text-align: center; font-size: 14px; color: var(--cream); text-shadow: 0 1px 0 rgba(36, 23, 38, .55); margin: 6px 0 0; }

/* ---------- picker ---------- */
.tier-row { margin: 22px 0 0; }
.tier-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-size: 26px; color: var(--cream); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.tier-h i { font-style: normal; font-size: 22px; color: var(--gold); }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini { --a: var(--common); --b: var(--common2); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 6px 8px; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 0 0 4px var(--ink), 0 6px 0 4px rgba(36, 23, 38, .4); color: var(--ink); text-align: center; font: inherit; transition: transform .1s; position: relative; }
.mini:hover { transform: translateY(-3px) rotate(-1deg); }
.mini.rare { --a: var(--rare); --b: var(--rare2); } .mini.epic { --a: var(--epic); --b: var(--epic2); } .mini.legendary { --a: var(--leg); --b: var(--leg2); }
.mini img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); display: block; }
.mini b { font: 15px/1.1 "Lilita One", sans-serif; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; margin: 6px 0 2px; font-weight: 400; }
.mini span { font-size: 11px; font-weight: 700; }
.mini em { position: absolute; top: 10px; left: 10px; right: 10px; font: 12px/1 "Lilita One", sans-serif; font-style: normal; background: #d8342c; color: #fff; border-radius: 6px; padding: 4px 0 3px; box-shadow: 0 0 0 2px var(--ink); }
.epic-grid .mini-grid, .tier-row.epic .mini-grid, .tier-row.legendary .mini-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- oath dialog ---------- */
#oath { width: min(560px, calc(100vw - 20px)); }
#oath-card { margin: 14px 0 6px; }
.sw-row { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; flex-wrap: wrap; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 0; box-shadow: 0 0 0 3px var(--ink); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--gold), 0 0 0 10px var(--ink); }
.paid-note { background: #fff4d6; border: 3px solid var(--ink); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: 14px 0 0; }

/* ---------- sections ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.why div { background: var(--cream); border-radius: 10px; box-shadow: 0 0 0 3px var(--ink); padding: 10px 6px; font-size: 13px; }
.why b { display: block; font: 24px/1 "Lilita One", sans-serif; color: var(--brown); font-weight: 400; }
.up-grid { display: grid; gap: 10px; }
.up { display: flex; gap: 12px; align-items: center; background: var(--cream); border-radius: 12px; box-shadow: 0 0 0 3px var(--ink); padding: 8px; text-decoration: none; color: var(--ink); }
.up img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); }
.up div { flex: 1; } .up b { font: 18px/1.1 "Lilita One", sans-serif; font-weight: 400; display: block; } .up span { font-size: 13px; }
.up i { font: 20px/1 "Lilita One", sans-serif; font-style: normal; background: var(--gold); border-radius: 8px; padding: 7px 10px 5px; box-shadow: 0 0 0 3px var(--ink); white-space: nowrap; }
.share-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }

/* ---------- The Dark Army theme ---------- */
html.lava-html { background: #0d0a10; }
body.lava { --parch: #1e1820; --cream: #f3e6da; --gold: #ffb02a; --brown: #ff8a2a; color: #f3e6da; min-height: 100vh;
  background: radial-gradient(ellipse 120% 420px at 50% 0, #5a1c14 0, #24101a 55%, rgba(13, 10, 16, 0) 100%) top / 100% 520px no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 26px, transparent 26px 52px), #0d0a10; }
body.lava a { color: #ff9a4a; }
.lava .logo-board span { background: repeating-linear-gradient(0deg, #2a2430 0 15px, #241f2a 15px 17px, #312a38 17px 31px, #1f1b24 31px 33px); color: #ff8a2a; box-shadow: 0 0 0 5px #000, 0 9px 0 5px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 90, 20, .35); -webkit-text-stroke: 7px #000; }
.lava .logo-board::before, .lava .logo-board::after { background: #3a3036; box-shadow: 0 0 0 3px #000; }
.lava .parchment { background: #1e1820; color: #f3e6da; box-shadow: 0 0 0 4px #000, 0 0 0 6px #4a1a14, 0 9px 0 6px rgba(0, 0, 0, .5); }
.lava .parchment h2 { color: #ffb02a; }
.lava .muted, .lava .hint, .lava .fine { color: #b9a69a; }
.lava .btn { background: linear-gradient(#ffb02a, #ff6a14); }
.lava .btn.secondary { background: #f3e6da; }
.lava .btn-oath small { color: #5a1608; }
.lava dialog { background: #1e1820; color: #f3e6da; box-shadow: 0 0 0 5px #000, 0 0 0 7px #7a1a12, 0 12px 0 7px rgba(0, 0, 0, .6); }
.lava .close { background: #f3e6da; }
.lava input[type=text], .lava input[type=email] { background: #fffaf3; }
.lava .paid-note { background: #2e2228; color: #f3e6da; border-color: #7a1a12; }
.lava .why div, .lava .up { background: #2a2228; color: #f3e6da; box-shadow: 0 0 0 3px #000, 0 0 0 5px #4a1a14; }
.lava .tier-h i { color: #ffb02a; }
.lava .h-ink { color: #ff8a2a; -webkit-text-stroke: 7px #000; }
.lava .tcard { box-shadow: 0 0 0 5px #000, 0 10px 0 5px rgba(0, 0, 0, .55), 0 0 40px rgba(255, 90, 20, .25); }
.lava .lead, .lava .under-btn, .lava .power-note { color: #f3e6da; }
.lava footer, .lava footer a { color: #b9a69a; }
.dark-hero { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 5px #000, 0 0 50px rgba(255, 90, 20, .35); }
.dark-hero .row { display: grid; grid-template-columns: repeat(3, 1fr); background: #120c12; }
.dark-hero .row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.dark-hero .title { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; }
.dark-hero h1 { font-size: clamp(40px, 11vw, 64px); }
.crack-crown { display: block; width: 74px; margin: 0 auto 10px; }
.lava a.btn { color: #1a0c08; } .lava a.btn.secondary { color: #1a0c08; }

/* ---------- glow: strong and golden for legendary, softer purple for epic ---------- */
.tcard.epic { box-shadow: 0 0 0 5px var(--ink), 0 10px 0 5px rgba(36, 23, 38, .45), 0 0 26px 6px rgba(180, 108, 240, .55); }
.tcard.legendary { box-shadow: 0 0 0 5px var(--ink), 0 10px 0 5px rgba(36, 23, 38, .45), 0 0 40px 12px rgba(255, 210, 60, .75); animation: legendGlow 2.4s ease-in-out infinite; }
@keyframes legendGlow { 50% { box-shadow: 0 0 0 5px var(--ink), 0 10px 0 5px rgba(36, 23, 38, .45), 0 0 70px 22px rgba(255, 190, 40, .95); } }
.lava .tcard.legendary { box-shadow: 0 0 0 5px #000, 0 0 44px 14px rgba(255, 140, 30, .8); animation: legendGlowDark 2.4s ease-in-out infinite; }
@keyframes legendGlowDark { 50% { box-shadow: 0 0 0 5px #000, 0 0 80px 26px rgba(255, 110, 20, 1); } }
.mini.epic { box-shadow: 0 0 0 4px var(--ink), 0 6px 0 4px rgba(36, 23, 38, .4), 0 0 18px 4px rgba(180, 108, 240, .6); }
.mini.legendary { box-shadow: 0 0 0 4px var(--ink), 0 6px 0 4px rgba(36, 23, 38, .4), 0 0 30px 8px rgba(255, 210, 60, .85); animation: miniGlow 2.4s ease-in-out infinite; }
@keyframes miniGlow { 50% { box-shadow: 0 0 0 4px var(--ink), 0 6px 0 4px rgba(36, 23, 38, .4), 0 0 46px 14px rgba(255, 190, 40, 1); } }
.mini.legendary::after { content: ""; position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%) -200% 0 / 200% 100% no-repeat; animation: miniShine 3s ease-in-out infinite; pointer-events: none; }
@keyframes miniShine { 60%, 100% { background-position: 200% 0; } }
.mini.claimed { filter: grayscale(.85) brightness(.75); cursor: default; animation: none; }
.mini.claimed:hover { transform: none; }
.mini.legendary em { background: #241726; color: #ffd84a; }
.mini.epic em { background: #6a2fa8; }
.mini.claimed em { background: #555; color: #fff; }
@media (prefers-reduced-motion: reduce) { .tcard.legendary, .mini.legendary, .mini.legendary::after { animation: none; } }
.perks { list-style: none; margin: -2px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.perks li { font: 600 12px/1.2 system-ui, sans-serif; background: rgba(255, 250, 240, .92); color: var(--ink); border-radius: 999px; padding: 4px 9px; box-shadow: 0 0 0 2px var(--ink); }
.tier-row.legendary .perks li { background: #ffe9a0; } .tier-row.epic .perks li { background: #ead8ff; }
.lava .perks li { background: #2a2228; color: #f3e6da; box-shadow: 0 0 0 2px #000; }
.lava .tier-row.legendary .perks li { background: #4a3010; color: #ffd27a; } .lava .tier-row.epic .perks li { background: #3a2250; color: #e2c8ff; }
.top-intro { text-align: center; color: var(--cream); font-weight: 600; margin: 4px 0 0; text-shadow: 0 1px 0 rgba(36, 23, 38, .55); }
.legends { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.legends div { text-align: center; background: linear-gradient(160deg, var(--leg), var(--leg2)); border-radius: 12px; box-shadow: 0 0 0 3px var(--ink), 0 0 24px 6px rgba(255, 210, 60, .6); padding: 6px; font: 15px/1.2 "Lilita One", sans-serif; }
.legends img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); display: block; margin-bottom: 5px; }
.legends i { display: block; font: 600 12px/1.2 system-ui, sans-serif; font-style: normal; }
.sky .top-intro { color: var(--ink); text-shadow: none; }

/* ---------- locked teaser + welcome offer ---------- */
.lock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.lock { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 3px var(--ink); }
.lock img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: blur(3px) brightness(.55) saturate(.6); transform: scale(1.08); }
.lock span { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 12px/1 "Lilita One", sans-serif; color: #fff; letter-spacing: 1px; }
.lock::before { content: "🔒"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; z-index: 1; }
.lock.rare span { color: #9ccaff; } .lock.epic span { color: #e0b8ff; } .lock.legendary span { color: #ffd84a; }
.offer { background: linear-gradient(160deg, #ffe066, #ffc21a); border-radius: 14px; box-shadow: var(--lift); padding: 18px 16px; margin: 26px 0; color: var(--ink); }
.offer h2 { font-size: 28px; margin: 0; }
.offer .timer { font: 18px/1 "Lilita One", sans-serif; background: var(--ink); color: var(--gold); border-radius: 8px; padding: 6px 10px 4px; display: inline-block; margin: 8px 0 12px; }
.offer .up i s { opacity: .55; font-size: 15px; margin-right: 4px; }
.lava .offer { background: linear-gradient(160deg, #ffb02a, #ff6a14); color: #1a0c08; box-shadow: 0 0 0 5px #000, 0 0 40px rgba(255, 120, 20, .5); }
.lava .offer .up { background: #fff2e4; color: #1a0c08; box-shadow: 0 0 0 3px #000; }
.lava .offer .muted { color: #4a1a08; }

/* ---------- live site additions ---------- */
.mini.soldout { filter: grayscale(.85) brightness(.75); cursor: default; animation: none; }
.mini.soldout:hover { transform: none; }
.mini.soldout em { background: #555; color: #fff; }
.mini .price { position: absolute; top: 10px; right: 10px; font: 14px/1 "Lilita One", sans-serif; background: var(--gold); color: var(--ink); border-radius: 6px; padding: 4px 6px 3px; box-shadow: 0 0 0 2px var(--ink); }
.mini.rare .price, .mini.epic .price, .mini.legendary .price { display: block; }
.mini.common .price { background: #8fd06a; }
.oath-price { font-size: 15px; margin: 8px 0 0; }
.tc-serial { position: absolute; z-index: 2; left: 0; right: 0; top: 52%; text-align: center; pointer-events: none; }
.plate.epic { box-shadow: 0 0 0 4px var(--ink), 0 7px 0 4px rgba(36, 23, 38, .45), 0 0 18px 4px rgba(180, 108, 240, .7); }
.plate.legendary { box-shadow: 0 0 0 4px var(--ink), 0 7px 0 4px rgba(36, 23, 38, .45), 0 0 26px 8px rgba(255, 210, 60, .9); }
.lava .plate { background: repeating-linear-gradient(0deg, #2a2430 0 15px, #241f2a 15px 17px, #312a38 17px 31px, #1f1b24 31px 33px); box-shadow: 0 0 0 4px #000, 0 7px 0 4px rgba(0, 0, 0, .5); }
.lava .plate .nick { color: #ff8a2a; -webkit-text-stroke: 5px #000; }
.lava .plate .n { -webkit-text-stroke: 3px #000; }
.lava .plate.founder { background: repeating-linear-gradient(0deg, #7a1a12 0 15px, #6a160f 15px 17px, #8a2216 17px 31px, #5a120c 31px 33px); }
.flash { background: #d8ffcc; border: 3px solid var(--ink); border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-weight: 600; }
.lava .flash { background: #2a3a1c; color: #e8ffd8; border-color: #000; }
.card-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }
.buy-dlg .tcard { width: 260px; }
button.up { width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; }
button.up.soldout { opacity: .6; cursor: default; }
button.up span { display: block; }

.lock-grid.three { grid-template-columns: repeat(3, 1fr); }
.lock-grid + .lock-grid { margin-top: 8px; }
.lock-grid.peek .lock img { filter: none; transform: none; }
.lock-grid.peek .lock::before { content: none; }
.lock-grid.peek .lock span { background: linear-gradient(transparent, rgba(20, 12, 20, .85) 35%); padding: 18px 4px 6px; bottom: 0; line-height: 1.2; }
.lock-grid.peek .lock.legendary { box-shadow: 0 0 0 3px var(--ink), 0 0 22px 6px rgba(255, 210, 60, .75); }
.lock-grid.peek .lock.epic { box-shadow: 0 0 0 3px var(--ink), 0 0 16px 4px rgba(180, 108, 240, .6); }
