/* XDS Global: activity player and the shared round UI. */
.play-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.play-card { min-height: 22rem; padding: clamp(1rem, 3vw, 1.8rem); }
.loading { display: flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 12rem; color: var(--ink-2); }
.spinner { width: 1.2rem; height: 1.2rem; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: xds-spin 0.8s linear infinite; }
@keyframes xds-spin { to { transform: rotate(360deg); } }
.notice { text-align: center; }

.round-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; color: var(--ink-2); font-size: 0.9rem; font-weight: 800; }
.round-bar { flex: 1; height: 0.7rem; overflow: hidden; border-radius: 99px; background: #ece8da; }
.round-bar span { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width 0.3s; }
.round-q { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; text-align: center; }
.round-prompt { max-width: 34ch; font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 800; line-height: 1.3; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; max-width: 40rem; margin: 0 auto; }
.choices.n1 { grid-template-columns: 1fr; } .choices.n5, .choices.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .choices, .choices.n5, .choices.n6 { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: center; gap: 0.7rem; min-height: 3.6rem; padding: 0.7rem 1rem; border: 3px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font: 700 1.1rem var(--font); text-align: left; cursor: pointer; transition: transform 0.1s, border-color 0.1s, background 0.1s; }
.choice:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-2px); }
.choice:disabled { cursor: default; }
.choice-key { display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.85rem; }
.choice.right { border-color: var(--ok); background: var(--ok-soft); } .choice.right .choice-key { background: var(--ok); color: #fff; }
.choice.wrong { border-color: var(--no); background: var(--no-soft); } .choice.wrong .choice-key { background: var(--no); color: #fff; }
.answer-form { display: flex; gap: 0.6rem; max-width: 28rem; margin: 0 auto; }
.answer-input { flex: 1; min-width: 0; min-height: 3.2rem; padding: 0.5rem 1rem; border: 3px solid var(--line); border-radius: 14px; font: 800 1.4rem var(--font); text-align: center; }
.answer-input:focus { border-color: var(--brand); outline: 0; }
.round-fb { max-width: 40rem; min-height: 3.2rem; margin: 1rem auto 0; font-size: 1.05rem; text-align: center; }
.round-fb .ok { color: var(--ok); } .round-fb .no { color: var(--no); }
.round-why { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.95rem; }
.round-hint { margin-top: 0.8rem; text-align: center; }
.hint-text { color: var(--ink-2); font-weight: 700; }
.round-nav { display: flex; justify-content: center; margin-top: 0.6rem; }
.round-done { padding: 1.5rem 0; text-align: center; }
.round-done h2 { margin: 0.4rem 0; font-size: 2.2rem; }
.stars { display: inline-flex; gap: 0.3rem; font-size: 3rem; line-height: 1; }
.star { color: #dcd8c8; } .star.on { color: #f5a000; animation: star-pop 0.5s both; }
.star.on:nth-child(2) { animation-delay: 0.12s; } .star.on:nth-child(3) { animation-delay: 0.24s; }
@keyframes star-pop { from { transform: scale(0.2) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.25); } to { transform: none; opacity: 1; } }
.best { color: var(--ok); font-weight: 800; }

/* shared activity widgets */
.objects { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; max-width: 28rem; font-size: 2.6rem; line-height: 1.1; }
.big-visual { display: grid; place-items: center; min-height: 8rem; }
.big-visual svg { width: min(11rem, 60vw); height: auto; }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1rem; }
.tool-row label { font-weight: 800; }
.tool-row select { padding: 0.4rem 0.7rem; border: 2px solid var(--line); border-radius: 10px; font: 700 0.95rem var(--font); background: #fff; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 760px) { .panel-grid { grid-template-columns: 1fr; } }
.big-letter { font-size: 6rem; font-weight: 800; line-height: 1; color: var(--brand-dark); }
.hello-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.hello-lang { color: var(--ink-3); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.hello-word { font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.clock-box svg { width: min(15rem, 70vw); }
.compare-bars { display: grid; gap: 0.8rem; width: min(24rem, 100%); }
.compare-bars strong { display: block; margin-bottom: 0.2rem; font-size: 1.2rem; }
.frac-bar { width: 100%; height: auto; }
.graph-canvas { display: block; width: 100%; max-width: 34rem; height: auto; aspect-ratio: 1; border: 3px solid var(--line); border-radius: 14px; background: #fff; }
.graph-eq { margin-bottom: 0.8rem; font-size: 2rem; font-weight: 800; color: var(--brand-dark); }
.slider-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; font-weight: 800; }
.slider-row input[type=range] { width: 100%; accent-color: var(--brand); }
.graph-side .btn { margin-top: 0.6rem; }
.flash { display: grid; justify-items: center; gap: 1rem; padding: 1rem 0; }
.flash-word { font-size: clamp(3.5rem, 14vw, 7rem); font-weight: 800; line-height: 1; color: var(--brand-dark); }
.spell-sentence { max-width: 30rem; padding: 0.8rem 1.1rem; border-radius: 14px; background: var(--brand-soft); font-size: 1.25rem; font-weight: 700; }
.passage { max-width: 46rem; margin: 0 auto 1.4rem; padding: 1.1rem 1.4rem; border-radius: 16px; background: #fffaf0; border: 2px solid #f0e3c0; }
.passage h3 { margin: 0 0 0.5rem; }
.passage p { font-size: 1.1rem; line-height: 1.75; }
.planet-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 0.6rem; margin: 1rem 0; }
.planet { display: grid; justify-items: center; gap: 0.3rem; min-width: 5.2rem; padding: 0.5rem; border: 2px solid transparent; border-radius: 14px; background: transparent; font: 700 0.9rem var(--font); cursor: pointer; }
.planet:hover, .planet:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.planet-dot { display: block; border-radius: 50%; box-shadow: inset -6px -6px 12px rgba(0, 0, 0, 0.25); }
.planet-detail { max-width: 34rem; margin: 0 auto; background: #f7f9ff; }
.planet-detail h3 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.planet-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0.6rem 0 0; }
.planet-facts dt { font-weight: 800; } .planet-facts dd { margin: 0; }
.ptable-wrap { overflow-x: auto; padding-bottom: 0.4rem; }
.ptable { display: grid; grid-template-columns: repeat(18, minmax(2.6rem, 1fr)); grid-template-rows: repeat(7, auto) 0.6rem repeat(2, auto); gap: 3px; min-width: 52rem; margin-top: 0.8rem; }
.el { display: grid; place-items: center; padding: 0.2rem 0; border: 2px solid transparent; border-radius: 6px; font-family: var(--font); color: #14213d; cursor: pointer; }
.el small { font-size: 0.62rem; font-weight: 700; opacity: 0.8; } .el strong { font-size: 1rem; }
.el:hover, .el:focus-visible { border-color: #14213d; }
.el.dimmed { opacity: 0.18; }
.cat-alkali { background: #ffb4a2; } .cat-alkaline { background: #ffd6a5; } .cat-transition { background: #fdf2a0; } .cat-post { background: #caffbf; }
.cat-metalloid { background: #9bf6d6; } .cat-nonmetal { background: #a0e7ff; } .cat-halogen { background: #bdb2ff; } .cat-noble { background: #ffc6ff; }
.cat-lanthanide { background: #e9d8fd; } .cat-actinide { background: #fbcfe8; } .cat-unknown { background: #e5e7eb; }
.chip-btn.cat-alkali, .chip-btn.cat-alkaline, .chip-btn.cat-transition, .chip-btn.cat-post, .chip-btn.cat-metalloid, .chip-btn.cat-nonmetal, .chip-btn.cat-halogen, .chip-btn.cat-noble, .chip-btn.cat-lanthanide, .chip-btn.cat-actinide, .chip-btn.cat-unknown { font-size: 0.8rem; color: #14213d; }
.chip-btn[aria-pressed="true"] { outline: 3px solid #14213d; }
.el-detail { display: flex; align-items: center; gap: 1.2rem; max-width: 36rem; margin: 1rem auto 0; }
.el-big { display: grid; place-items: center; width: 6rem; height: 6rem; flex: none; border-radius: 14px; color: #14213d; }
.el-big strong { font-size: 2.4rem; line-height: 1; } .el-detail h3 { margin: 0 0 0.2rem; }
.matter-canvas { display: block; width: 100%; max-width: 30rem; height: auto; border: 3px solid var(--line); border-radius: 14px; }
.matter-label { margin: 0.8rem 0; font-size: 1.15rem; font-weight: 800; }
.piano { position: relative; display: flex; height: 13rem; max-width: 40rem; margin: 1rem auto; user-select: none; touch-action: manipulation; }
.pkey { position: relative; padding: 0 0 0.6rem; border: 2px solid #14213d; font: 800 0.8rem var(--font); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.pkey.white { flex: 1; background: #fff; color: #44506b; border-radius: 0 0 10px 10px; }
.pkey.black { position: absolute; top: 0; z-index: 2; width: 2.8rem; height: 8rem; background: #14213d; color: #fff; border-radius: 0 0 8px 8px; }
.pkey.lit, .pkey:active { background: #ffc83d; color: #14213d; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.art-swatch { width: 2.2rem; height: 2.2rem; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.art-swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.art-canvas { display: block; width: 100%; height: auto; border: 3px solid var(--line); border-radius: 14px; background: #fff; touch-action: none; cursor: crosshair; }
.type-text { max-width: 44rem; margin: 0 auto 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: #fffaf0; border: 2px solid #f0e3c0; font: 600 1.35rem/1.8 ui-monospace, Consolas, monospace; }
.type-text .ok { color: var(--ok); } .type-text .bad { background: #fdd; color: var(--no); } .type-text .cur { border-bottom: 3px solid var(--brand); }
.type-input { display: block; width: 100%; max-width: 44rem; margin: 0 auto; padding: 0.8rem 1rem; border: 3px solid var(--line); border-radius: 14px; font: 600 1.2rem ui-monospace, Consolas, monospace; resize: none; }
.type-input:focus { border-color: var(--brand); outline: 0; }
.bee-board { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 3px; width: 100%; max-width: 26rem; padding: 6px; border-radius: 14px; background: #bde5a8; }
.bee-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: #e9f7dd; font-size: clamp(1.4rem, 5vw, 2.2rem); }
.bee-me { position: relative; } .bee-me small { position: absolute; right: -0.5rem; bottom: -0.4rem; font-size: 0.9rem; }
.bee-prog { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem; min-height: 4rem; margin-bottom: 0.8rem; padding: 0.6rem; border: 2px dashed var(--line); border-radius: 12px; }
.bee-chip { padding: 0.35rem 0.7rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; font: 700 0.9rem var(--font); cursor: pointer; }
.bee-chip:hover { border-color: var(--no); }
.bee-block { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; padding: 0.3rem; border: 2px solid #c9d4ff; border-radius: 12px; background: var(--brand-soft); }
.bee-block.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.25); }
.bee-x { border: 0; background: transparent; cursor: pointer; font-size: 0.9rem; }
