/* Game Lab: Cargo Collector. Uses Train Track Race's spinner and setup styles (lab-board.css) plus these pieces. */
@font-face { font-family: 'DX Letters'; src: url('../../assets/fonts/dx-letters-bold.woff2') format('woff2'); font-weight: 700; font-display: block; }
.lc { --bar: rgba(255,255,255,.85); --txt: #1c2b3d; --panel: rgba(255,255,255,.9);
	position: relative; overflow: hidden; border-radius: 26px; max-width: 1180px; margin: 0 auto; padding: 0 0 76px; isolation: isolate;
	font-family: var(--dx-font-heading, 'Lexend', system-ui, sans-serif); color: var(--txt); box-shadow: 0 10px 30px rgba(28,43,61,.18); user-select: none; -webkit-user-select: none; }
.lc--night { --bar: rgba(20,26,50,.6); --txt: #fff; }
.lc:fullscreen { max-width: none; border-radius: 0; overflow: auto; }
.lc-scene { position: absolute; inset: 0; z-index: -1; } .lc-scene svg { width: 100%; height: 100%; display: block; }
.lc-scene::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.25); } .lc--night .lc-scene::after { background: none; }
.lc-top { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .75rem; padding: .6rem .9rem; margin: .75rem; border-radius: 18px; background: var(--bar); backdrop-filter: blur(4px); }
.lc-turn { color: #fff; font-weight: 800; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; font-size: clamp(.95rem, .8rem + .6vw, 1.2rem); transition: background .3s; }
.lc-status { text-align: center; font-size: clamp(.92rem, .8rem + .6vw, 1.2rem); font-weight: 800; }
.lc-status--warn { color: #c23b3b; } .lc--night .lc-status--warn { color: #ffb4a8; } .lc-status--good { color: #1f7a4a; } .lc--night .lc-status--good { color: #9ff0c4; }
.lc-play { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .9rem; margin: 0 .9rem; align-items: start; }
.lc-board { position: relative; border-radius: 20px; background: var(--panel); box-shadow: 0 6px 20px rgba(28,43,61,.1); padding: .4rem; }
.lc-svg { width: 100%; height: auto; display: block; max-width: none; } .lc-svg text { font-family: 'DX Letters', 'Andika', sans-serif; }
.lc-center { position: absolute; left: 22%; right: 22%; top: 24%; bottom: 24%; display: grid; place-items: center; align-content: center; gap: .4rem; }
.lc-spinner { width: min(150px, 100%); padding: .4rem .4rem .3rem; border-radius: 20px; border: 3px solid #26324a; background: #fff; box-shadow: 0 5px 0 #26324a; cursor: pointer; display: grid; justify-items: center; gap: .1rem; font: inherit; }
.lc-spinner svg { width: min(110px, 22vw); height: auto; max-width: none; }
.lc-spinner__label { font-weight: 800; color: #17706f; font-size: .9rem; }
.lc-spinner:disabled { cursor: default; opacity: .7; box-shadow: 0 3px 0 #26324a; }
.lc-spinner:not(:disabled) { animation: lt-glow 1.6s ease-in-out infinite; }
.lc-spinner:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #17706f; }
.lc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .1rem 0 .3rem; font-size: .8rem; font-weight: 800; color: #3d4a62; }
.lc-legend span { padding: .1rem .5rem; border-radius: 999px; background: #fff; border: 2px solid var(--c); }
.lc-train { position: absolute; width: 9%; transform: translate(-50%, -50%); transition: left .28s ease-in-out, top .28s ease-in-out; z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.lc-train svg { width: 100%; height: auto; display: block; max-width: none; }
/* word tickets */
.lc-tickets { display: grid; gap: .7rem; }
.lc-ticket { background: #fffdf6; color: #1c2b3d; border: 3px solid #e3e8ef; border-radius: 18px; padding: .55rem .7rem .6rem; transition: border-color .3s, box-shadow .3s; }
.lc-ticket.is-turn { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent), 0 6px 16px rgba(0,0,0,.1); }
.lc-ticket__head { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.lc-ticket__train svg { width: 40px; height: auto; display: block; max-width: none; }
.lc-ticket__who { flex: 1; font-weight: 900; color: var(--c); }
.lc-ticket__score { font-weight: 900; color: #1f7a4a; background: #e7f6ee; border-radius: 999px; padding: .05rem .6rem; }
.lc-frames { display: flex; flex-wrap: wrap; gap: .4rem; }
.lc-frame { display: inline-flex; align-items: center; gap: .08em; padding: .2rem .5rem; border-radius: 12px; border: 2px solid #d9e0ea; background: #fff; font-family: 'DX Letters', 'Andika', sans-serif; font-weight: 700; font-size: clamp(1.15rem, .9rem + .9vw, 1.6rem); color: #1c2b3d; cursor: default; }
.lc-frame:disabled { opacity: 1; }
.lc-frame.is-target { cursor: pointer; border-color: #f2b01e; background: #fff4d6; animation: lc-pulse 1s ease-in-out infinite; }
.lc-frame.is-done { background: #e9fbf1; border-color: #2fa36b; }
.lc-slot { display: inline-grid; place-items: center; min-width: 1.15em; height: 1.25em; padding: 0 .12em; border-radius: 8px; border: 2.5px dashed var(--c); background: color-mix(in srgb, var(--c) 12%, white); line-height: 1; }
.lc-slot.is-filled { border-style: solid; background: var(--c); color: #fff; }
.lc-car { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .5rem; padding-top: .45rem; border-top: 2px dashed #e3e8ef; }
.lc-car__label { font-size: .78rem; font-weight: 800; color: #566273; margin-right: .2rem; }
.lc-tile { min-width: 2.3em; height: 2.3em; padding: 0 .35em; border-radius: 10px; border: 0; background: linear-gradient(180deg, var(--c), var(--d)); box-shadow: 0 3px 0 var(--d); color: #fff; font-family: 'DX Letters', 'Andika', sans-serif; font-weight: 700; font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); cursor: pointer; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.lc-tile:disabled { cursor: default; opacity: .85; }
.lc-tile.is-picked { outline: 3px solid #f2b01e; outline-offset: 2px; transform: translateY(-3px); }
.lc-tile.is-extra { box-shadow: 0 0 0 3px #d64545; }
.lc-tile--empty { display: inline-block; background: #f1f4f8; box-shadow: inset 0 0 0 2px #dfe5ec; cursor: default; }
.lc-tile:focus-visible, .lc-frame:focus-visible { outline: 3px solid #17706f; outline-offset: 2px; }
.lc-drop { margin-left: auto; font: inherit; font-weight: 800; font-size: .85rem; padding: .35rem .7rem; border-radius: 999px; border: 2px solid #c23b3b; background: #fff; color: #c23b3b; cursor: pointer; }
/* pop-ups */
.lc-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(28,43,61,.32); backdrop-filter: blur(2px); padding: 1rem; overflow: auto; } .lc-overlay[hidden] { display: none; }
.lc-read { background: #fffdf6; color: #1c2b3d; border: 4px solid var(--c); border-radius: 24px; box-shadow: 0 8px 0 var(--c), 0 18px 40px rgba(0,0,0,.25); padding: 1.2rem 1.6rem; text-align: center; max-width: 480px; width: 100%; animation: lt-pop .4s cubic-bezier(.34,1.56,.64,1); }
.lc-read__kicker { margin: 0; font-weight: 900; color: var(--c); font-size: 1.1rem; }
.lc-read__word { margin: .3rem 0; font-family: 'DX Letters', 'Andika', sans-serif; font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 4.6rem); line-height: 1.1; color: #1c2b3d; }
.lc-read__note { margin: 0 0 .4rem; color: #3b4a5c; font-weight: 700; }
.lc-pick__tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem; }
.lc-pick__tiles .lc-tile { min-width: 2.8em; height: 2.8em; font-size: 1.5rem; }
.lc-card { background: #fff; color: #1c2b3d; border: 4px solid #26324a; border-radius: 26px; box-shadow: 0 8px 0 #26324a, 0 18px 40px rgba(0,0,0,.25); padding: 1.3rem 1.6rem; text-align: center; max-width: 560px; width: 100%; animation: lt-pop .45s cubic-bezier(.34,1.56,.64,1); }
.lc-card__kicker { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c0475a; }
.lc-card__title { margin: .3rem 0 .4rem; font-size: 1.45rem; } .lc-card__text { margin: 0 0 .8rem; color: #3b4a5c; font-family: var(--dx-font-body, inherit); }
.lc-card__train svg { width: 100px; height: auto; max-width: none; }
.lc-card__words { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; text-align: left; }
.lc-card__col { border: 3px solid var(--c); border-radius: 14px; padding: .5rem .7rem; display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-content: flex-start; }
.lc-card__who { width: 100%; margin: 0 0 .2rem; font-weight: 900; color: var(--c); }
.lc-card__word { font-family: 'DX Letters', 'Andika', sans-serif; font-weight: 700; font-size: 1.35rem; }
.lc-card__none { color: #566273; }
.lc-btn { font: inherit; font-weight: 800; font-size: 1.2rem; margin-top: 1rem; padding: .65rem 2.2rem; border-radius: 999px; border: 3px solid #26324a; background: #2fa36b; color: #fff; cursor: pointer; box-shadow: 0 5px 0 #1f6f48; }
.lc-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; } .lc-spacer { flex: 1; }
.lc-done { font: inherit; font-weight: 900; font-size: 1.15rem; padding: .55rem 2rem; border-radius: 999px; border: 3px solid #26324a; background: #2fa36b; color: #fff; cursor: pointer; box-shadow: 0 4px 0 #1f6f48; }
.lc-done:disabled { background: #b8c2cf; box-shadow: 0 4px 0 #8a96a6; cursor: default; }
.lc-done[hidden] { display: none; }
.lc-ctl { width: 48px; height: 48px; border-radius: 14px; border: 3px solid #26324a; background: rgba(255,255,255,.92); font-size: 1.35rem; cursor: pointer; box-shadow: 0 3px 0 #26324a; }
.lc-btn:focus-visible, .lc-ctl:focus-visible, .lc-done:focus-visible { outline: 3px solid #fff; box-shadow: 0 0 0 6px #17706f; }
.lc-confetti { position: absolute; top: 0; z-index: 7; border-radius: 2px; pointer-events: none; }
@keyframes lc-pulse { 50% { box-shadow: 0 0 0 5px rgba(242,176,30,.35); } }
@media (max-width: 860px) { .lc-play { grid-template-columns: 1fr; margin: 0 .4rem; } .lc-top { margin: .6rem .5rem; grid-template-columns: 1fr; justify-items: center; gap: .3rem; } .lc-card__words { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lc *, .lc { animation: none !important; transition: none !important; } }
