/* Toy cards: the All toys page and "You might also like" on every toy page. Uses each page's own colour tokens. */
.toy-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.toy-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 4px 16px; padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.toy-card:hover { transform: translateY(-3px); }
.toy-card .tc-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--c); color: var(--ci, #fff); }
.toy-card b { font: 800 22px/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.toy-card .tc-line { color: var(--muted); font-size: 15px; line-height: 1.45; }
.toy-card .tc-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.toy-card .tc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line); color: var(--ink); }
.toy-card .tc-go { font-size: 14px; font-weight: 600; color: var(--ink); }
.toy-card .tc-go::after { content: " \2192"; }
.toy-card a.tc-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; } /* the whole card is the link */
.toy-card a.tc-link:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; }
.toy-card .pc-want { position: relative; z-index: 2; color: var(--ink); } /* the heart sits above the card link */
.toy-card.open .tc-tag, .toy-card.open .pc-want { display: none; }
.toy-card:not(.fresh) .tc-new { display: none; }
.toy-card .tc-new { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--accent, #FFD23F); color: #131417; }
.related { padding: 72px 0 0; }
.related h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 24px; }
@media (max-width: 860px) { .toy-cards { grid-template-columns: 1fr; } .related { padding-top: 48px; } }
@media (prefers-reduced-motion: reduce) { .toy-card { transition: none; } }
.toy-card[data-opens]:not(.open) .tc-go { display: none; }
/* The toy box on /toys/: every toy as a little scene, tiles of different sizes */
.box { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.box-tile { position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.box-tile:hover { transform: translateY(-4px); }
.box-tile.s4 { grid-column: span 4; } .box-tile.s5 { grid-column: span 5; } .box-tile.s7 { grid-column: span 7; } .box-tile.s8 { grid-column: span 8; }
.box-tile .scene { position: relative; flex: 1; min-height: 210px; display: grid; place-items: center; overflow: hidden; }
.box-tile .scene > *:not(.tc-tag) { transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.box-tile:hover .scene > *:not(.tc-tag) { transform: scale(1.05); }
.box-tile .scene .tc-tag { position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(19, 20, 23, .1); color: #131417; }
.box-tile .scene { padding: 52px 20px 24px; } /* room for the date label, so it never sits on the picture */
.box-tile .scene.sc-garden { padding-bottom: 0; }
.box-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 22px 20px; }
.box-body h2 { font: 800 26px/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; }
.box-body p { margin-top: 4px; color: var(--muted); font-size: 15px; max-width: 38ch; }
.box-foot { flex: none; display: flex; align-items: center; gap: 8px; }
.box-foot .pc-want { position: relative; z-index: 2; white-space: nowrap; }
.box-tile[data-opens]:not(.open) .tc-go, .box-tile:not(.fresh) .tc-new, .box-tile.open .pc-want, .box-tile.open .tc-tag { display: none; }
.box-tile .tc-new { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--accent, #FFD23F); color: #131417; }
.box-tile .tc-go { font-size: 15px; font-weight: 600; white-space: nowrap; }
.box-tile .tc-go::after { content: " \2192"; }
.box-idea { justify-content: center; align-items: center; text-align: center; padding: 28px; background: transparent; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 14%, transparent); }
.box-idea b { display: block; font: 800 26px/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; }
.box-idea span span { display: block; margin-top: 8px; color: var(--muted); }
.box-idea .tc-go { margin-top: 14px; color: var(--ink); }
/* the scenes */
.sc-flip { background: #131417; }
.flipmini { display: flex; gap: 8px; }
.flipmini span { position: relative; width: clamp(54px, 6vw, 74px); aspect-ratio: 74 / 96; border-radius: 12px; background: linear-gradient(#26272C 50%, #1D1E22 50%); color: #F1F1EF; font: 800 clamp(44px, 5vw, 64px)/1 "Bricolage Grotesque", sans-serif; display: grid; place-items: center; }
.flipmini span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #0B0B0D; }
.flipmini em { align-self: center; font: 800 52px/1 "Bricolage Grotesque", sans-serif; font-style: normal; color: #FFD23F; }
.sc-keys { background: #FFD23F; }
.sc-keys .caps { display: flex; gap: 10px; }
.sc-keys .caps span { width: clamp(48px, 5vw, 64px); aspect-ratio: 64 / 66; border-radius: 14px; background: #FFFDF5; color: #131417; display: grid; place-items: center; font: 700 26px "Bricolage Grotesque", sans-serif; box-shadow: 0 6px 0 #D9CFA8; }
.sc-keys .caps span:nth-child(2) { transform: translateY(5px); box-shadow: 0 1px 0 #D9CFA8; }
.sc-trail { background: #131417; }
.sc-trail .trail { position: absolute; inset: 0; }
.sc-trail .trail i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: var(--c); }
.sc-trail .trail b { position: absolute; left: 80%; top: 26%; color: #fff; font-size: 34px; font-weight: 400; }
.sc-garden { background: linear-gradient(180deg, #EAF6EF, #F6F8F4); place-items: end center; }
.sc-garden .pot { width: 120px; height: auto; margin-bottom: -2px; }
.sc-garden .pt { fill: #131417; } .sc-garden .lf { fill: #19B37A; } .sc-garden .stem { fill: none; stroke: #19B37A; stroke-width: 6; stroke-linecap: round; }
.sc-song { background: #131417; }
.box-tile .scene.sc-song .tc-tag, .box-tile .scene.sc-flip .tc-tag, .box-tile .scene.sc-trail .tc-tag { background: rgba(255, 255, 255, .14); color: #fff; } /* light label on the dark scenes */
.sc-song .letters { display: flex; font: 800 clamp(48px, 5vw, 68px)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.sc-song .letters span { color: var(--c); transform: translateY(var(--y)); }
.sc-harm { background: #FFF4CC; }
.box .mini, .story-cover .mini { width: min(80%, 420px); padding: 12px 12px 14px; border-radius: 20px; background: linear-gradient(180deg, #8A5532, #5E3519); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .18); }
.box .mini-grille, .story-cover .mini-grille { height: 10px; margin-bottom: 8px; border-radius: 5px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .45) 0 3px, rgba(255, 255, 255, .06) 3px 8px); }
.box .mini-keys, .story-cover .mini-keys { position: relative; display: flex; gap: 3px; height: 110px; }
.box .mini-keys .w, .story-cover .mini-keys .w { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #EFE9DA, #FFFDF5 18%); box-shadow: 0 3px 0 #C9BFA8; font: 600 10px/1 "Geist", sans-serif; color: #6B5A45; }
.box .mini-keys .w.on, .story-cover .mini-keys .w.on { background: linear-gradient(180deg, #FFE9A3, #FFD23F); color: #3A2414; }
.box .mini-keys .b, .story-cover .mini-keys .b { position: absolute; top: 0; width: 4.2%; height: 60%; border-radius: 0 0 5px 5px; background: linear-gradient(180deg, #2B2C31, #1D1E22); box-shadow: 0 2px 0 #000; }
@media (prefers-color-scheme: dark) { .sc-garden { background: linear-gradient(180deg, #14221A, #18191C); } .sc-garden .pt { fill: #F1F1EF; } .sc-harm { background: #2A2414; } .box-tile .scene .tc-tag { background: rgba(255, 255, 255, .14); color: #F1F1EF; } }
@media (max-width: 960px) { .box { grid-template-columns: 1fr 1fr; } .box-tile.s4, .box-tile.s5, .box-tile.s7, .box-tile.s8 { grid-column: auto; } .box-tile.s7, .box-tile.s8 { grid-column: 1 / -1; } }
@media (max-width: 640px) { .box { grid-template-columns: 1fr; } .box-tile .scene { min-height: 180px; } .box-body { flex-direction: column; align-items: flex-start; } .box .mini-keys .w { font-size: 0; } }
@media (prefers-reduced-motion: reduce) { .box-tile, .box-tile .scene > * { transition: none; } }
