/* Collection and journey screens; the home artwork and board layout are unchanged. */
#kdShell:has(.kdCollection){max-width:580px;padding:16px 16px 30px;background:radial-gradient(ellipse at 80% 0,#4b311525,transparent 50%)}
#kdShell:has(.kdCollection)>.kdTop{margin:0 0 16px;gap:12px}#kdShell:has(.kdCollection)>.kdTop .kdTitle{font-size:15px;letter-spacing:3px}#kdShell:has(.kdCollection)>.kdTop .kdBack{padding:6px 13px;font-size:25px;background:#17140f;border-color:#665033}
.kdCollection{--collection-gold:#edc77f;--collection-border:#695033;color:#f8eedc}.kdCollection button{font-family:inherit;cursor:pointer}.kdCollectionHero{position:relative;isolation:isolate;overflow:hidden;height:218px;border:1px solid #a3783d;border-radius:20px;background:#17130e;box-shadow:0 12px 35px #0006}
.kdShopCollection .kdShopHero{margin:0;padding:0;text-align:left}.kdHeroArt{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% 52%;z-index:-2}.kdHeroShade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#06090bec,#0a0b0b70 53%,#09090908),linear-gradient(0deg,#080908b0,transparent 65%)}
.kdHeroCopy{position:relative;padding:25px 22px;max-width:75%}.kdEyebrow{font-size:8px;font-weight:800;letter-spacing:1.8px;color:#d6b471}.kdHeroCopy h2{font-family:Georgia,serif;color:#f9dfac;font-size:34px;font-weight:400;line-height:1.08;letter-spacing:.6px;margin:12px 0 10px;text-shadow:0 2px 12px #0009}.kdHeroCopy p{font-size:12px;line-height:1.6;color:#d7c9b4;margin:0}.kdHeroSeal{position:absolute;right:17px;top:16px;color:#f5d18b;border:1px solid #b88a494d;border-radius:50%;width:31px;height:31px;text-align:center;line-height:29px;font-size:21px;background:#0b0b0a88}
.kdCollectionWallet{position:sticky;top:8px;z-index:4;display:flex;margin:13px 0;background:#17140ff5;border:1px solid #685031;border-radius:14px;box-shadow:0 6px 18px #0005;backdrop-filter:blur(12px)}.kdCollectionWallet>span{display:flex;align-items:center;justify-content:center;gap:10px;flex:1;padding:10px}.kdCollectionWallet>span+span{border-left:1px solid #65502f80}.kdCollectionWallet svg{width:30px;height:30px;fill:#ecc776;filter:drop-shadow(0 0 5px #e3b75f25)}.kdCollectionWallet b{display:block;font-size:19px;color:#f6d797;line-height:1.15}.kdCollectionWallet small{font-size:8px;letter-spacing:1.7px;color:#bfae94}
.kdCollectionTabs{display:flex;gap:6px;overflow:auto;scrollbar-width:none}.kdCollectionTabs button{flex:1;white-space:nowrap;border:1px solid #5d4930;border-radius:25px;padding:10px 7px;background:#17140f;color:#dac5a2;font-size:10px}.kdCollectionTabs button.active{background:#342718;border-color:#b58a4a;color:#ffe1a0}.kdPurchaseNotice{font-size:10px;min-height:15px;margin:11px 0 16px;text-align:center;color:#c6b89e}.kdStoreSection{scroll-margin-top:95px;margin:0 0 25px}.kdSectionHeading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 12px}.kdSectionHeading h3{font-family:Georgia,serif;font-weight:400;font-size:20px;margin:0;color:#f1d396}.kdSectionHeading>span{font-size:8px;color:#aa9a80;max-width:45%;text-align:right;line-height:1.5}
.kdPackGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.kdPackCard{position:relative;overflow:hidden;border:1px solid #755b37;border-radius:15px;padding:28px 8px 10px;background:linear-gradient(160deg,#292117,#100f0d);display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;box-shadow:inset 0 1px #ffffff0a}.kdPackFeatured{border-color:#d4a75e;box-shadow:0 0 16px #d19c3e16}.kdValueBadge{position:absolute;top:0;left:0;right:0;padding:5px 2px;background:#725025a0;color:#ffe5ae;font-size:8px;font-weight:800;letter-spacing:.3px}.kdSubtleBadge{background:#ffffff07;color:#baa789}.kdPackArt{display:block;width:100%;height:85px;flex-shrink:0}.kdPackCard>strong{font-size:11px;color:#f6dfb2;margin-top:3px}.kdPackCount{font-size:27px;color:#f4d798;margin:9px 0 1px;font-family:Georgia,serif;line-height:1}.kdPackCount small{display:block;font:9px system-ui;margin-top:4px;color:#c2b193}.kdPackCard p{font-size:8px;line-height:1.5;color:#a99c86;min-height:28px;margin:7px 0 11px}.kdPackCard button{margin-top:auto;width:100%;display:flex;align-items:center;justify-content:center;gap:4px;background:linear-gradient(120deg,#e7c17b,#b47a35);border:1px solid #edcf90;border-radius:9px;padding:9px 2px;color:#22170c;font-size:13px;font-weight:850;box-shadow:0 3px 8px #0005}.kdPackCard button svg{height:17px;width:17px;fill:#f8e0a5}.kdUnitPrice{font-size:7px;color:#a99a80;margin-top:8px}
.kdThemeGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kdThemeCard{overflow:hidden;background:#17140f;border:1px solid #54452f;border-radius:14px}.kdThemeCurrent{border-color:#e0b86f}.kdThemePreview{display:block;width:100%;height:auto;border-bottom:1px solid #66503160}.kdThemeInfo{padding:11px 10px}.kdThemeInfo>strong{display:block;color:#f0d5a3;font-size:12px}.kdThemeInfo>small{display:block;color:#a99a83;font-size:8px;line-height:1.5;margin-top:5px}.kdThemeBottom{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:12px}.kdThemeBottom>span{font-size:8px;color:#c6ac80}.kdThemeBottom>button{border:1px solid #a2814b;background:#332719;color:#f6daa3;border-radius:7px;font-size:8px;font-weight:800;padding:7px 8px}.kdThemeBottom>button:disabled{background:#222017;border-color:#70623f;color:#c6b283;cursor:default}
.kdDailyShopGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kdDailyShopCard{position:relative;text-align:center;padding:16px 11px 12px;background:radial-gradient(ellipse at 50% 0,#79552938,transparent 70%),#15120f;border:1px solid #7c5b31;border-radius:15px;display:flex;flex-direction:column;align-items:center}.kdDailyShopSymbol{font-family:Georgia,serif;color:#eec16e;font-size:43px;line-height:1.2;text-shadow:0 0 20px #e0a63750}.kdDailyShopCard .kdEyebrow{margin-top:8px;letter-spacing:1px;font-size:8px}.kdDailyShopCard strong{font-family:Georgia,serif;font-size:20px;color:#f2d49b;margin:9px 0 0;font-weight:400}.kdDailyShopCard p{font-size:10px;line-height:1.6;color:#bdae95;margin:9px 0 15px}.kdDailyShopCard button{margin-top:auto;width:100%;padding:10px 4px;border:1px solid #c19750;background:#44301a;border-radius:9px;color:#f5d59a;font-size:9px;font-weight:850}.kdDailyShopCard button:disabled{opacity:.5;cursor:default}.kdShopCollection .kdShopReturn{justify-content:center;font-size:12px;background:#211a12;border-color:#735b35;border-radius:12px}.kdShopCollection .kdShopNote{font-size:10px;line-height:1.7;color:#ac9d83;padding:0 10px}
.kdJourneyHero{height:200px}.kdJourneyHero .kdHeroArt{width:150%;max-width:none;left:-25%;object-position:38% 45%;filter:brightness(.85)}.kdJourneyHero .kdHeroCopy h2{font-size:35px}.kdJourneyMedal{position:absolute;bottom:23px;right:21px;width:77px;height:77px;border:1px solid #cda35e;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(#3e2e1690,#0c0d0eeb);box-shadow:0 0 0 5px #b791491a,0 0 25px #e2ae4b18}.kdJourneyMedal b{font:28px Georgia,serif;color:#f7d692}.kdJourneyMedal span{font-size:9px;color:#bba582;margin-top:3px}
.kdJourneyProgress{margin:17px 0}.kdJourneyProgress>div:first-child{display:flex;align-items:center;justify-content:space-between;color:#cdbb9a;font-size:10px}.kdJourneyProgress strong{color:#ebca87;font-size:13px}.kdJourneyTrack{height:7px;border:1px solid #71572f;border-radius:9px;overflow:hidden;background:#1b1813;margin:8px 0 11px}.kdJourneyTrack>span{display:block;height:100%;background:linear-gradient(90deg,#ad7e37,#ffe0a1);border-radius:8px}.kdJourneyMetrics{display:flex;justify-content:space-between;gap:5px;font-size:8px;color:#998b75}.kdJourneyMetrics b{color:#d8bd88;font-size:10px}
.kdContinueJourney{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:13px 17px;border:1px solid #e9c17c;border-radius:13px;color:#251a0d;background:linear-gradient(110deg,#f0d198,#ba873e);box-shadow:0 5px 15px #0006;margin-bottom:20px}.kdContinueJourney small{display:block;font-size:8px;letter-spacing:1.5px;font-weight:750}.kdContinueJourney strong{display:block;font:20px Georgia,serif;margin-top:4px}.kdContinueJourney>b{font-size:24px}
.kdChapterTabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#7e6137 #17140f;padding:0 0 7px;margin-bottom:15px}.kdChapterTabs button{flex:1 0 54px;background:linear-gradient(145deg,#221c14,#11100e);border:1px solid #5b4a30;border-radius:9px;color:#cfb582;padding:10px 4px;min-width:0}.kdChapterTabs button>span{display:block;font:18px Georgia,serif}.kdChapterTabs small{display:block;font-size:7px;white-space:nowrap;margin-top:5px}.kdChapterTabs button:first-child{border-color:#bd9651;color:#f4d69a;background:#382b19}
.kdLevelFilters{display:flex;gap:6px;margin-bottom:4px;overflow:auto;scrollbar-width:none}.kdLevelFilters button{border:1px solid #51452f;background:#17140f;color:#b2a188;border-radius:20px;padding:8px 10px;font-size:9px;white-space:nowrap}.kdLevelFilters button.active{background:#49351b;border-color:#bd9752;color:#ffe0a2}.kdFilterStatus{min-height:14px;margin:7px 0 10px;font-size:10px;color:#b7a17b}.kdChapterSection{scroll-margin-top:20px;margin-bottom:28px}.kdChapterHeading{display:flex;align-items:center;gap:10px;border-top:1px solid #745b303b;padding-top:15px}.kdChapterRoman{font:23px Georgia,serif;color:#b68d47;min-width:26px}.kdChapterHeading h3{font:22px Georgia,serif;color:#eed39d;font-weight:400;margin:0}.kdChapterHeading p{font-size:9px;color:#a0927a;margin:5px 0 0;line-height:1.5}.kdChapterRange{margin-left:auto;color:#bfa57a;font-size:9px;white-space:nowrap;border:1px solid #614c2b;padding:5px 7px;border-radius:6px}.kdChapterProgress{display:flex;justify-content:space-between;font-size:9px;color:#ae9671;margin:11px 0}
.kdJourneyGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}#kdShell .kdJourneyGrid .kdLevel{min-width:0;min-height:83px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #5b4b32;background:linear-gradient(145deg,#262018,#11100d);border-radius:11px;padding:8px 3px;color:#ecd3a2;box-shadow:inset 0 1px #ffffff06}#kdShell .kdJourneyGrid .kdLevel>b{font:23px Georgia,serif;font-weight:400;line-height:1}.kdJourneyGrid .kdPuzzleType{font-size:7px;color:#ab987a;min-height:0;line-height:1.35;display:block}.kdJourneyGrid .kdTileStars{display:flex;justify-content:center;gap:1px;font-size:11px;line-height:1;min-height:11px;color:#514a3d}.kdTileStars .earned{color:#edc76f;text-shadow:0 0 6px #dba63d50}#kdShell .kdJourneyGrid .kdLevel.done{border-color:#b18b49;background:linear-gradient(145deg,#34291a,#16120c)}#kdShell .kdJourneyGrid .kdLevelCurrent{border-color:#f2ce88!important;box-shadow:0 0 0 2px #b17c2b30,0 0 17px #d49b3728}#kdShell .kdJourneyGrid .kdLevel:disabled{opacity:.45;background:#121211;box-shadow:none;color:#9c9484}#kdShell .kdJourneyGrid .kdLevel[hidden],.kdChapterSection[hidden]{display:none!important}.kdJourneyEnd{font-size:10px;color:#998565;text-align:center;line-height:1.6;margin:35px 0 12px}
@media(min-width:530px){.kdCollectionHero{height:245px}.kdHeroCopy h2{font-size:40px}.kdPackArt{height:110px}.kdPackCard>strong{font-size:13px}.kdPackCard p{font-size:10px}.kdValueBadge{font-size:9px}.kdUnitPrice{font-size:8px}.kdThemeInfo>strong{font-size:14px}.kdThemeInfo>small,.kdThemeBottom>span{font-size:10px}#kdShell .kdJourneyGrid .kdLevel{min-height:97px}.kdJourneyGrid .kdPuzzleType{font-size:9px}#kdShell .kdJourneyGrid .kdLevel>b{font-size:27px}.kdJourneyGrid .kdTileStars{font-size:13px}}
@media(max-width:350px){#kdShell:has(.kdCollection){padding-left:12px;padding-right:12px}.kdHeroCopy{padding:22px 17px}.kdHeroCopy h2{font-size:30px}.kdPackGrid{gap:5px}.kdPackCard{padding-left:5px;padding-right:5px}.kdPackCard>strong{font-size:10px}.kdPackCard p{font-size:7px}.kdThemeBottom{align-items:stretch;flex-direction:column;gap:7px}.kdJourneyGrid{gap:5px}#kdShell .kdJourneyGrid .kdLevel{min-height:80px}.kdJourneyGrid .kdPuzzleType{font-size:6px}.kdLevelFilters button{padding:8px;font-size:8px}.kdJourneyMetrics{font-size:7px}.kdChapterHeading h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){.kdCollection *{scroll-behavior:auto!important;transition:none!important}}

/* Mechanic mastery uses existing normal results and stays collapsed until requested. */
.kdMechanicMastery{margin:0 0 18px;border:1px solid #78603a;border-radius:15px;background:radial-gradient(ellipse at 100% 0,#8b682027,transparent 70%),#111615;overflow:hidden}
.kdMechanicMastery>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;cursor:pointer}
.kdMechanicMastery>summary::-webkit-details-marker{display:none}
.kdMechanicMastery>summary>span:first-child{flex:1;min-width:0}
.kdMechanicMastery>summary strong{display:block;font:23px/1.15 Georgia,serif;color:#edcf91;margin:7px 0}
.kdMechanicMastery>summary small{font-size:8px;letter-spacing:1px;color:#c3a970}
.kdMechanicMastery>summary>span:first-child>span{display:block;font-size:10px;line-height:1.4;color:#aaa795}
.kdMechanicCount{flex:none;text-align:center;min-width:60px}
.kdMechanicCount>b{display:block;font:24px Georgia,serif;color:#f0ce81}
.kdMechanicCount>small{display:block;max-width:90px;font-size:7px!important;overflow-wrap:anywhere;letter-spacing:0!important}
.kdMechanicCount>i{display:block;font-style:normal;color:#ceb778;font-size:18px;line-height:1;margin-top:5px}
.kdMechanicMastery[open] .kdMechanicCount>i{transform:rotate(180deg)}
.kdMechanicBody{padding:0 12px 13px}.kdMechanicBody>p{font-size:10px;line-height:1.5;color:#b2b1a1;margin:0 0 12px}
.kdMechanicTotals{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;padding-top:10px;border-top:1px solid #8d764333;font-size:10px;color:#c2b594}.kdMechanicTotals>b{font-size:14px;color:#ebca85}
.kdMechanicGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#kdShell .kdMechanicCard{min-width:0;min-height:148px;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:10px;margin:0;padding:11px;border:1px solid #55513b;border-radius:11px;background:linear-gradient(145deg,#22261d,#111817);color:#d7d1b8;text-align:start}
#kdShell .kdMechanicCard[aria-pressed="true"]{border-color:#e3bd6e;background:linear-gradient(145deg,#4c3d20,#171c17)}
.kdMechanicCard>strong{font-size:10px;line-height:1.4;overflow-wrap:anywhere;color:#ecd294}
.kdMechanicStats{display:flex;flex-wrap:wrap;gap:7px;justify-content:space-between;align-items:end}
.kdMechanicStats b{display:block;font-size:11px;white-space:nowrap}.kdMechanicStats small{display:block;font-size:8px;color:#a2aa98;margin-top:3px}
.kdMechanicTrack{display:block;height:4px;border-radius:5px;background:#060b0d;overflow:hidden}.kdMechanicTrack>i{display:block;height:100%;background:linear-gradient(90deg,#9c7737,#f0d18c);border-radius:inherit}
.kdMechanicAction{display:block;font-size:8px;color:#bfaf88}
.kdMechanicFilter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;margin:12px 0}
.kdMechanicFilter>label{grid-column:1/-1;font-size:10px;color:#c2b18a}
.kdMechanicFilter>select{min-width:0;width:100%;min-height:40px;padding:8px;border:1px solid #77613c;border-radius:9px;background:#151a1b;color:#ead2a1;font:12px system-ui,Arial,sans-serif}
#kdShell .kdMechanicFilter>button{max-width:120px;min-width:0;min-height:40px;padding:7px 9px;border:1px solid #68563b;border-radius:9px;background:#1e1d15;color:#d0bc92;font-size:9px;line-height:1.4;overflow-wrap:anywhere}
.kdMechanicRule{margin:0 0 12px;padding:10px 12px;border-inline-start:2px solid #b79759;border-radius:0 8px 8px 0;background:#a6853520;color:#dfc28a;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.kdMechanicFilter>[hidden],.kdMechanicRule[hidden]{display:none!important}
.kdMechanicMastery>summary:focus-visible,.kdMechanicCard:focus-visible,.kdMechanicFilter>select:focus-visible,.kdMechanicFilter>button:focus-visible{outline:2px solid #f3d48f;outline-offset:2px}
@media(min-width:530px){.kdMechanicGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:350px){.kdMechanicMastery>summary{padding:12px;gap:8px}.kdMechanicMastery>summary strong{font-size:21px}.kdMechanicBody{padding:0 9px 10px}.kdMechanicGrid{gap:6px}#kdShell .kdMechanicCard{padding:9px;min-height:150px}.kdMechanicCard>strong{font-size:9px}.kdMechanicFilter>button{max-width:96px}}

@media(max-width:529px){.kdMechanicGrid>.kdMechanicCard:last-child:nth-child(odd){grid-column:1/-1}}
