.tools-directory {
    --tools-ink: #483c3a;
    --tools-muted: #7e6c68;
    --tools-coral: var(--kawaii-pink-600, #db5a47);
    --tools-blue: var(--kawaii-blue-600, #0284c7);
    color: var(--tools-ink);
    background: #fffaf7;
}
.tools-directory a:focus-visible { outline: 3px solid var(--tools-blue); outline-offset: 5px; }
.tools-directory-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 0 20%, #ffe5d7 0, transparent 53%), radial-gradient(ellipse at 100% 80%, #d9f1ff 0, transparent 48%), #fffbf8; border-bottom: 1px solid #f4e4da; }
.tools-directory-hero-inner { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: center; gap: 64px; max-width: 1200px; margin: auto; padding: 32px 32px 48px; }
.tools-home-link { margin-bottom: 24px; font-size: 12px; color: var(--tools-muted); }
.tools-home-link a { display: inline-flex; gap: 7px; align-items: center; }
.tools-directory-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #f3c9b9; border-radius: 999px; background: #ffffffb8; color: #a74a35; font-size: 12px; font-weight: 700; }
.tools-directory-eyebrow i { color: var(--tools-blue); }
.tools-directory-hero h1 { margin: 17px 0; max-width: 670px; font-size: clamp(34px,4.2vw,54px); font-weight: 900; line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
.tools-hero-copy > p { max-width: 540px; color: var(--tools-muted); font-size: 15px; line-height: 1.85; }
.tools-benefits { display: flex; flex-wrap: wrap; gap: 11px 20px; margin-top: 23px; color: #725c54; font-size: 12px; font-weight: 600; }
.tools-benefits li { display: inline-flex; align-items: center; gap: 7px; }
.tools-benefits i { color: var(--tools-coral); font-size: 11px; }
.tools-hero-board { display: flex; flex-direction: column; align-items: center; position: relative; padding: 28px 24px 24px; border: 1px solid #fff; border-radius: 32px; background: #ffffffc9; box-shadow: 0 16px 46px #ba806720, 0 0 0 7px #ffffff50; text-align: center; transform: rotate(2deg); }
.tools-hero-board::before, .tools-hero-board::after { position: absolute; content: '✦'; top: 49px; left: 13px; color: #e8a06e; font-size: 28px; }
.tools-hero-board::after { content: '♡'; top: auto; bottom: 56px; left: auto; right: 16px; color: #52b4de; }
.tools-hero-board-label { color: #aa624c; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.tools-hero-portraits { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 27px 0 24px; }
.tools-hero-friend { display: block; position: relative; width: 30%; max-width: 110px; padding: 6px; border: 1px solid #f2ddd2; border-radius: 20px; background: white; box-shadow: 0 6px 16px #a8674c13; transform: rotate(-9deg); }
.tools-hero-friend:nth-child(2) { transform: translateY(-9px) rotate(1deg); }
.tools-hero-friend:nth-child(3) { transform: rotate(9deg); }
.tools-hero-friend img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.tools-hero-friend b { position: absolute; bottom: -10px; right: -5px; display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid white; border-radius: 50%; background: #ffdbcf; color: #a8422b; font-size: 13px; font-weight: 900; }
.tools-hero-friend:first-child b { background: #ffefbf; color: #885f13; }
.tools-hero-board > strong { font-size: 20px; font-weight: 800; line-height: 1.5; }
.tools-hero-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; padding: 10px 17px; border-radius: 12px; background: var(--kawaii-gradient-pink); box-shadow: var(--kawaii-shadow-soft); color: white; font-size: 12px; font-weight: 800; }
.tools-directory-stage { padding: 42px 24px 56px; background: radial-gradient(ellipse at 100% 100%, #edf8ff, transparent 48%), #fffaf7; }
.tools-directory-wrap { max-width: 1136px; margin: auto; }
.tools-collection-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 23px; }
.tools-collection-heading h2 { font-size: 25px; font-weight: 850; letter-spacing: -.03em; }
.tools-collection-heading > span { color: var(--tools-muted); font-size: 12px; }
.tools-collection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.tool-discovery-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #f1ded4; border-radius: 26px; background: #fff; box-shadow: 0 6px 24px #ba80670d; color: inherit; transition: transform .22s, box-shadow .22s, border-color .22s; }
.tool-discovery-card-tier { --tool-accent: #b74f36; --tool-soft: #ffe9de; --tool-tag: #fff3eb; }
.tool-discovery-card-profile { --tool-accent: #a65677; --tool-soft: #fce6ed; --tool-tag: #fff2f6; }
.tool-discovery-card-personality { --tool-accent: #087aa8; --tool-soft: #e0f3ff; --tool-tag: #eff8ff; }
.tool-discovery-card-birthday { --tool-accent: #8b692b; --tool-soft: #fff0c8; --tool-tag: #fff8e8; }
.tool-discovery-art { position: relative; height: 240px; overflow: hidden; isolation: isolate; background: linear-gradient(135deg,var(--tool-soft),#fffaf5); }
.tool-discovery-art::before { position: absolute; z-index: -1; inset: 0; content: ''; opacity: .6; background-image: radial-gradient(#fff 1.5px,transparent 1.5px); background-size: 20px 20px; }
.tool-art-label { position: absolute; z-index: 4; top: 16px; left: 18px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 36px); padding: 5px 10px; border-radius: 999px; background: #ffffffd9; color: var(--tool-accent); font-size: 10px; font-weight: 800; }
.tool-art-sparkle { position: absolute; color: var(--tool-accent); font-size: 35px; opacity: .35; }
.tool-art-sparkle-one { top: 53px; right: 30px; transform: rotate(12deg); }
.tool-art-sparkle-two { bottom: 19px; left: 26px; transform: rotate(-17deg); }
.tool-art-sticker { position: absolute; z-index: 3; right: 20px; bottom: 15px; max-width: 75%; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 2px solid white; border-radius: 10px; background: #fffffff2; box-shadow: 0 3px 12px #593b2c12; color: var(--tool-accent); font-size: 11px; font-weight: 750; transform: rotate(-4deg); }
.tool-profile-back, .tool-profile-front { position: absolute; width: 55%; height: auto; border-radius: 14px; box-shadow: 0 8px 20px #74405120; transition: transform .25s; }
.tool-profile-back { top: 44px; left: 30px; transform: rotate(-10deg); }
.tool-profile-front { top: 63px; right: 30px; transform: rotate(7deg); }
.tool-test-preview { position: absolute; width: 39%; height: auto; border-radius: 14px; box-shadow: 0 9px 25px #368eb026; transition: transform .25s; }
.tool-test-back { top: 25px; left: 12%; transform: rotate(-9deg); }
.tool-test-front { z-index: 1; top: 45px; right: 12%; transform: rotate(7deg); }
.tool-favorites-preview { position: absolute; height: auto; border-radius: 12px; box-shadow: 0 10px 28px #b6674224; transition: transform .25s; }
.tool-favorites-back { top: 24px; left: 6%; width: 54%; transform: rotate(-8deg); }
.tool-favorites-front { z-index: 1; top: 40px; right: 5%; width: 52%; transform: rotate(6deg); }
.tool-birthday-calendar { position: absolute; top: 26px; left: 50%; width: 228px; overflow: hidden; border: 3px solid white; border-radius: 18px; background: white; box-shadow: 0 8px 24px #a67c3020; transform: translateX(-50%) rotate(-5deg); transition: transform .25s; }
.tool-birthday-calendar-title { display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 43px; padding: 7px 12px; background: #ffe2ac; color: #886027; font-size: 13px; font-weight: 800; }
.tool-birthday-calendar-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; padding: 12px; text-align: center; }
.tool-birthday-calendar-days > span { display: grid; place-items: center; min-height: 24px; border-radius: 6px; color: #9e8a70; font-size: 11px; }
.tool-birthday-calendar-days > .is-birthday { background: #ffe2d5; color: #cf7357; font-size: 22px; line-height: 1; }
.tool-birthday-friend { position: absolute; z-index: 2; bottom: 17px; width: 70px; height: 70px; padding: 3px; border: 2px solid white; border-radius: 50%; background: white; object-fit: cover; box-shadow: 0 4px 15px #a67c301a; }
.tool-birthday-friend-one { left: 40px; transform: rotate(-10deg); }
.tool-birthday-friend-two { right: 40px; bottom: 38px; transform: rotate(10deg); }
.tool-discovery-content { display: flex; flex-direction: column; flex: 1; padding: 23px 26px 20px; }
.tool-discovery-title { display: flex; align-items: flex-start; gap: 10px; }
.tool-icon { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--tool-soft); color: var(--tool-accent); font-size: 14px; }
.tool-discovery-title h3 { padding-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.4; text-wrap: balance; }
.tool-discovery-content > p { margin-top: 12px; color: var(--tools-muted); font-size: 13px; line-height: 1.85; }
.tool-discovery-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 20px; }
.tool-discovery-tags li { padding: 4px 9px; border-radius: 7px; background: var(--tool-tag); color: var(--tool-accent); font-size: 10px; line-height: 1.5; font-weight: 650; }
.tool-discovery-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid #f3e6df; color: var(--tool-accent); font-size: 13px; font-weight: 750; }
.tool-discovery-arrow { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--tool-soft); transition: transform .2s; }
.tools-directory-note { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 31px; color: var(--tools-muted); font-size: 12px; line-height: 1.8; text-align: center; }
.tools-directory-note i { color: var(--tools-coral); }
@media(hover:hover) {
    .tools-hero-board:hover { transform: rotate(0) translateY(-3px); }
    .tool-discovery-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px #ba80671c; border-color: #e9c5b4; }
    .tool-discovery-card:hover .tool-discovery-arrow { transform: translateX(3px); }
    .tool-discovery-card:hover .tool-favorites-back { transform: translateY(-3px) rotate(-10deg); }
    .tool-discovery-card:hover .tool-favorites-front { transform: translateY(-4px) rotate(3deg); }
    .tool-discovery-card:hover .tool-test-back { transform: translateY(-3px) rotate(-11deg); }
    .tool-discovery-card:hover .tool-test-front { transform: translateY(-4px) rotate(4deg); }
    .tool-discovery-card:hover .tool-profile-front { transform: translateY(-4px) rotate(4deg); }
    .tool-discovery-card:hover .tool-birthday-calendar { transform: translateX(-50%) rotate(-1deg); }
}
@media(max-width:900px) {
    .tools-directory-hero-inner { gap: 30px; padding: 26px 24px 36px; }
    .tools-hero-board { padding: 24px 16px; }
    .tools-hero-board > strong { font-size: 17px; }
    .tools-hero-action { font-size: 11px; padding: 9px 12px; }
    .tools-collection-grid { gap: 22px; }
    .tool-discovery-content { padding: 21px 20px 18px; }
    .tool-discovery-title h3 { font-size: 20px; }
    .tool-favorites-back { top: 34px; left: 5%; width: 64%; }
    .tool-favorites-front { top: 70px; right: 4%; width: 62%; }
    .tool-birthday-friend-one { left: 14px; }
    .tool-birthday-friend-two { right: 14px; }
}
@media(max-width:640px) {
    .tools-directory-hero-inner { grid-template-columns: minmax(0,1fr); gap: 31px; padding: 18px 20px 32px; }
    .tools-home-link { margin-bottom: 18px; }
    .tools-directory-eyebrow { font-size: 11px; }
    .tools-directory-hero h1 { font-size: 37px; max-width: 480px; }
    .tools-hero-copy > p { font-size: 14px; }
    .tools-benefits { gap: 9px 16px; margin-top: 19px; font-size: 11px; }
    .tools-hero-board { width: calc(100% - 16px); max-width: 400px; margin: auto; padding: 23px 20px; border-radius: 26px; }
    .tools-hero-portraits { gap: 13px; margin: 24px 0 22px; }
    .tools-directory-stage { padding: 28px 16px 38px; }
    .tools-collection-heading h2 { font-size: 23px; }
    .tools-collection-heading > span { font-size: 11px; }
    .tools-collection-grid { grid-template-columns: minmax(0,1fr); gap: 23px; }
    .tool-discovery-art { height: 224px; }
    .tool-discovery-title h3 { font-size: 21px; }
    .tool-profile-back { left: 19px; width: 61%; }
    .tool-profile-front { right: 20px; width: 61%; }
    .tool-favorites-back { top: 27px; }
    .tool-favorites-front { top: 65px; }
    .tool-test-preview { width: 44%; }
    .tool-test-back { left: 9%; }
    .tool-test-front { top: 52px; right: 9%; }
    .tools-directory-note { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { .tools-directory *, .tools-directory *::before { transition: none !important; } }

/* Memory puzzle entry and the final guide card on the five-tool directory. */
.tool-discovery-card-puzzle { --tool-accent: #39826f; --tool-soft: #e4f3ea; --tool-tag: #f0f9f3; }
.tool-puzzle-cover { position: absolute; top: 50%; left: 50%; width: 65%; height: auto; border: 5px solid white; border-radius: 16px; box-shadow: 0 9px 25px #426b5524; transform: translate(-50%,-50%) rotate(-5deg); transition: transform .25s; }
@media(hover:hover) { .tool-discovery-card:hover .tool-puzzle-cover { transform: translate(-50%,-50%) rotate(-2deg); } }
@media(min-width:641px) {
    .tool-discovery-card-birthday { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
    .tool-art-birthday { height: auto; min-height: 245px; }
}
@media(max-width:640px) { .tool-puzzle-cover { width: 76%; } }
