/* The game tile and the card share one shadow. The portrait doesn't cast a second one. */
.it { --home-tile-shadow:drop-shadow(0 6px 5px rgba(60,40,20,.18)); }
.it.home-card-tile { aspect-ratio:640/504; }
.hc-surface { position:relative;width:100%;height:100%;perspective:750px;filter:var(--home-tile-shadow); }
.hc-inner { position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .32s cubic-bezier(.2,.75,.3,1); }
.hc-flipped .hc-inner { transform:rotateY(180deg); }
.hc-face { container-type:inline-size;position:absolute;inset:6% 1%;overflow:hidden;backface-visibility:hidden;background:#fff;border:2px solid #0b0b0b;box-shadow:inset 0 0 0 3px #fff;isolation:isolate; }
.hc-face::after { content:"";position:absolute;inset:3px;border:2px dashed #0b0b0b;pointer-events:none;z-index:-1; }
.hc-face .dots { position:absolute;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none;opacity:.76; }
.hc-back { transform:rotateY(180deg); }
.hc-ident,.hc-head { position:absolute;top:9%;left:7%;right:7%;display:flex;align-items:baseline;justify-content:space-between;gap:5px;font:800 clamp(6px,3.2cqw,12px)/1.2 ui-monospace,Menlo,monospace;letter-spacing:.12em; }
.hc-ident b,.hc-head span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.hc-ident span { flex-shrink:0; }
.home-card-tile .hc-face .hc-portrait { position:absolute;top:auto;left:auto;bottom:7%;right:4%;width:34%;height:80%;object-fit:contain;object-position:center bottom;opacity:1;transform:none;filter:none;animation:none!important;pointer-events:none; }
.hc-welcome { position:absolute;left:7%;top:27%;width:60%;height:49%;padding:.5%;box-sizing:border-box;overflow:visible;color:var(--home-score-ink,#0b0b0b); }
.hc-flip-mark { position:absolute;right:6%;bottom:6%;font-size:clamp(13px,7cqw,23px);line-height:1;color:#0b0b0b; }
.hc-flip { position:absolute;inset:0;border:0;background:transparent;cursor:pointer;border-radius:0; }
.hc-flip:focus-visible,.hc-open:focus-visible { outline:2px dashed #0b0b0b;outline-offset:3px; }
.hc-head { font-size:clamp(7px,4.2cqw,15px); }
.hc-head span { font-size:clamp(6px,3.1cqw,10px);color:#444; }
.hc-metrics { position:absolute;top:32%;left:7%;right:7%;display:grid;grid-template-columns:1fr 1fr 1fr;gap:5%; }
.hc-metrics b,.hc-metrics span { display:block;font:800 clamp(10px,7.5cqw,28px)/1.05 ui-monospace,Menlo,monospace;font-variant-numeric:tabular-nums; }
.hc-metrics span { margin-top:4px;font-size:clamp(6px,2.55cqw,10px); }
.hc-open { position:absolute;top:65%;bottom:8%;left:7%;height:auto;width:auto;z-index:3;pointer-events:auto;padding:0 5%;border:0;background:#0b0b0b;color:#fff;font:800 clamp(6px,3.2cqw,11px)/1.1 ui-monospace,Menlo,monospace;letter-spacing:.05em;cursor:pointer; }
.hc-flipped .hc-surface { z-index:2;pointer-events:none; }
.hc-back[inert] .hc-open { pointer-events:none; }
.home-card-tile:not(.hc-flipped) .hc-open { visibility:hidden; }
.it .home-reel-card-ghost { position:absolute;inset:0;pointer-events:none; }
@media (prefers-reduced-motion:reduce) { .hc-inner { transition:none; } }
.it.home-world-tile { aspect-ratio:640/504; }
.hc-world-face { container-type:inline-size;position:absolute;inset:6% 1%;overflow:hidden;isolation:isolate;color:#fff;background:#171720;filter:var(--home-tile-shadow);border:2px solid #0b0b0b; }
.hc-world-face::before { content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 57% 62%,color-mix(in srgb,var(--world-accent) 26%,#171720),transparent 68%); }
.hc-world-face::after { content:"";position:absolute;inset:5px;border:1px dashed color-mix(in srgb,var(--world-accent) 78%,transparent);pointer-events:none; }
.hc-world-top,.hc-world-note { position:absolute;left:0;right:0;text-align:center;letter-spacing:.15em; }
.hc-world-top { top:12%;font:700 clamp(8px,3.2cqw,12px)/1 ui-monospace,Menlo,monospace; }
.hc-world-note { bottom:13%;font:700 clamp(10px,4cqw,15px)/1.1 system-ui,sans-serif;letter-spacing:0; }
.hc-world-title { position:absolute;left:12%;top:28%;width:76%;height:41%;color:var(--world-accent); }
.it .home-reel-card-ghost.hc-world-face { inset:6% 1%; }
