/* Optional: upload your licensed PartsList.otf to /assets/ to enable this face. */
@font-face { font-family: "PartsList"; src: url("PartsList.otf") format("opentype"); font-display: swap; }
:root { color-scheme: light; --ink:#202b29; --green:#22a884; --yellow:#fde725; --paper:#f4f3ec; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
h1,h2 { font-family:"PartsList", Georgia, serif; line-height:1.12; }
.splash { min-height:100vh; display:grid; place-items:center; padding:1.25rem; }
.splash-card { width:min(100%, 680px); text-align:center; }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; font-size:.75rem; }
h1 { font-size:clamp(2.2rem, 7vw, 4.5rem); margin:.3em 0; }
.machine-preview { display:block; width:min(100%, 480px); height:auto; margin:1rem auto; mix-blend-mode:multiply; }
.primary-button { display:inline-block; border:2px solid var(--ink); border-radius:.5rem; padding:.8rem 2rem; background:var(--yellow); color:var(--ink); font-weight:800; text-decoration:none; cursor:pointer; }
.primary-button:focus-visible,button:focus-visible { outline:3px solid var(--green); outline-offset:3px; }
.game-shell { width:min(100% - 2rem, 780px); margin:1rem auto 3rem; text-align:center; }
.timer {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);

    background-color: #fde725;
    color: #222;
    padding: 8px 24px;
    border-radius: 8px;

    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    pointer-events: none;
	font-variant-numeric:tabular-nums; font-size:2rem; font-weight:800; 
}
.machine-stage { position:relative; width:min(100%, 620px); margin:auto; }
.machine-stage img { display:block; width:100%; height:auto; }
.hotspot { position:absolute; width:clamp(44px, 9%, 64px); aspect-ratio:1; transform:translate(-50%,-50%); border:3px solid var(--ink); border-radius:50%; background:var(--yellow); font-weight:800; cursor:pointer; }
.hotspot[data-active="true"] {
    background-color: var(--green);
    opacity: 1;
}
.hotspot:disabled { opacity:.5; cursor:not-allowed; }
.hotspot[data-active="true"]:disabled {
    opacity: 1;
}
.component-panel { max-width:620px; margin:1rem auto; padding:1rem; border:2px solid var(--ink); border-radius:.5rem; background:white; }
.dice-row { display:flex; flex-wrap:wrap; justify-content:center; gap:.6rem; margin:1rem 0; }
.die-circle { width:3.25rem; height:3.25rem; border:2px solid var(--ink); border-radius:50%; background:white; font-size:1.3rem; cursor:pointer; }
.status { min-height:1.5em; }
/* Respect the hidden attribute on interactive elements */
[hidden] {
    display: none !important;
}
@media (max-width: 600px) {
    .timer {
        bottom: 25px;
        font-size: 1.5rem;
        padding: 5px 16px;
    }
}