/* --- START OF FILE css/activity.css ---
 * Activity kit: shared look for the games themselves (frame, buttons, feedback,
 * results). Used in the app preview AND bundled into downloaded activities,
 * so it must not depend on Tailwind or on the app shell (css/app.css).
 * Everything is scoped under .t2k.
 */

.t2k {
    --k-bg: #FFFFFF;
    --k-surface: #F8FAFF;
    --k-soft: #F1F5FD;
    --k-border: #DBE5F7;
    --k-line: #EEF2FB;
    --k-dash: #CBD5E1;
    --k-text: #0F172A;
    --k-muted: #475569;
    --k-faint: #64748B;
    --k-primary: #2563EB;
    --k-primary-deep: #1E3A8A;
    --k-primary-soft: #DBEAFE;
    --k-primary-text: #1D4ED8;
    --k-cta: #F59E0B;
    --k-cta-hover: #FBBF24;
    --k-cta-shadow: #B45309;
    --k-right: #16A34A;
    --k-right-soft: #DCFCE7;
    --k-right-text: #14532D;
    --k-wrong: #DC2626;
    --k-wrong-soft: #FEE2E2;
    --k-wrong-text: #991B1B;
    --k-warm-soft: #FFF7ED;
    --k-warm-border: #FED7AA;
    --k-warm-text: #7C2D12;
    --k-amber-soft: #FEF3C7;
    --k-amber-text: #78350F;
    --k-track: #E2E8F0;
    --k-focus: #2563EB;

    --k-tone-1-bg: #DBEAFE; --k-tone-1-fg: #1E3A8A; --k-tone-1-solid: #2563EB;
    --k-tone-2-bg: #FEF3C7; --k-tone-2-fg: #78350F; --k-tone-2-solid: #B45309;
    --k-tone-3-bg: #FCE7F3; --k-tone-3-fg: #831843; --k-tone-3-solid: #BE185D;
    --k-tone-4-bg: #EDE9FE; --k-tone-4-fg: #4C1D95; --k-tone-4-solid: #7C3AED;
    --k-tone-5-bg: #DCFCE7; --k-tone-5-fg: #14532D; --k-tone-5-solid: #15803D;

    --k-display: 'Baloo 2', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --k-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    background: var(--k-bg);
    color: var(--k-text);
    border: 2px solid var(--k-border);
    border-radius: 28px;
    box-shadow: 0 8px 0 var(--k-border);
    overflow: hidden;
    font-family: var(--k-body);
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
}

.dark .t2k {
    --k-bg: #111A2E;
    --k-surface: #16213A;
    --k-soft: #1A2540;
    --k-border: #26324D;
    --k-line: #1F2A44;
    --k-dash: #3A4A6B;
    --k-text: #E5ECF8;
    --k-muted: #A9B6CC;
    --k-faint: #94A3B8;
    --k-primary-soft: #1E2F55;
    --k-primary-text: #93C5FD;
    --k-right-soft: #12301F;
    --k-right-text: #86EFAC;
    --k-wrong-soft: #3A1518;
    --k-wrong-text: #FCA5A5;
    --k-warm-soft: #2A1C10;
    --k-warm-border: #7C4A1E;
    --k-warm-text: #FDBA74;
    --k-amber-soft: #3A2A0E;
    --k-amber-text: #FCD34D;
    --k-track: #26324D;
    --k-focus: #60A5FA;

    --k-tone-1-bg: #1E2F55; --k-tone-1-fg: #BFDBFE;
    --k-tone-2-bg: #3A2A0E; --k-tone-2-fg: #FDE68A;
    --k-tone-3-bg: #3B1830; --k-tone-3-fg: #FBCFE8;
    --k-tone-4-bg: #2A2150; --k-tone-4-fg: #DDD6FE;
    --k-tone-5-bg: #12301F; --k-tone-5-fg: #BBF7D0;
}

.t2k *, .t2k *::before, .t2k *::after { box-sizing: border-box; }
.t2k button { font-family: inherit; cursor: pointer; margin: 0; }
.t2k :focus-visible { outline: 3px solid var(--k-focus); outline-offset: 3px; }
.t2k [hidden] { display: none !important; }
.t2k svg { display: block; flex: none; }
.t2k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* --- Frame --- */
.t2k-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 2px solid var(--k-line);
}
.t2k-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t2k-icon {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 50px; height: 50px; border-radius: 16px;
    background: var(--k-tone-1-bg); color: var(--k-tone-1-solid);
}
.t2k-icon[data-tone="2"] { background: var(--k-tone-2-bg); color: var(--k-tone-2-solid); }
.t2k-icon[data-tone="5"] { background: var(--k-tone-5-bg); color: var(--k-tone-5-solid); }
.t2k-icon[data-tone="3"] { background: var(--k-tone-3-bg); color: var(--k-tone-3-solid); }
.t2k-icon[data-tone="4"] { background: var(--k-tone-4-bg); color: var(--k-tone-4-solid); }
.dark .t2k-icon { color: var(--k-tone-1-fg); }
.dark .t2k-icon[data-tone="2"] { color: var(--k-tone-2-fg); }
.dark .t2k-icon[data-tone="5"] { color: var(--k-tone-5-fg); }
.dark .t2k-icon[data-tone="3"] { color: var(--k-tone-3-fg); }
.dark .t2k-icon[data-tone="4"] { color: var(--k-tone-4-fg); }
.t2k-title { margin: 0; font-family: var(--k-display); font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--k-text); }
.t2k-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.t2k-pill {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 0 14px; border-radius: 999px;
    background: var(--k-soft); color: var(--k-text);
    font-size: 15px; font-weight: 800; white-space: nowrap;
}
.t2k-pill-right { background: var(--k-right-soft); color: var(--k-right-text); }
.t2k-pill-amber { background: var(--k-amber-soft); color: var(--k-amber-text); }
.t2k-iconbtn {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px;
    background: var(--k-soft); color: var(--k-muted);
    transition: background-color .15s ease, color .15s ease;
}
.t2k-iconbtn:hover { background: var(--k-primary-soft); color: var(--k-text); }
.t2k-iconbtn .t2k-on, .t2k-iconbtn[aria-pressed="true"] .t2k-off { display: block; }
.t2k-iconbtn .t2k-off, .t2k-iconbtn[aria-pressed="true"] .t2k-on { display: none; }

.t2k-progress { height: 10px; margin: 14px 20px 0; border-radius: 999px; background: var(--k-track); overflow: hidden; }
.t2k-progress > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--k-primary); transition: width .3s ease-out; }
.t2k-segments { display: flex; gap: 6px; margin: 14px 20px 0; }
.t2k-segments > span { flex: 1; height: 10px; border-radius: 999px; background: var(--k-track); transition: background-color .2s ease; }
.t2k-segments > .is-current { background: var(--k-primary); }
.t2k-segments > .is-right { background: #22C55E; }
.t2k-segments > .is-wrong { background: #F87171; }

.t2k-body { display: flex; flex-direction: column; gap: 18px; padding: 24px clamp(16px, 3cqi, 28px) 26px; }
.t2k-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 20px; background: var(--k-surface); border-top: 2px solid var(--k-line);
}
.t2k-foot-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.t2k-hint { margin: 0; font-size: 16px; font-weight: 700; color: var(--k-muted); }

/* --- Buttons --- */
.t2k-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 16px;
    border: 2px solid transparent; border-radius: 14px;
    background: var(--k-soft); color: var(--k-text);
    font-size: 15px; font-weight: 800; line-height: 1.1; white-space: nowrap;
    transition: background-color .15s ease, transform .12s ease-out, box-shadow .12s ease-out;
}
.t2k-btn:hover:not(:disabled) { background: var(--k-primary-soft); }
.t2k-btn:disabled { opacity: .5; cursor: not-allowed; }
.t2k-btn-lg { min-height: 56px; padding: 0 24px; border-radius: 18px; font-family: var(--k-display); font-size: 20px; }
.t2k-btn-outline { background: var(--k-bg); border-color: var(--k-border); }
.t2k-btn-ghost { background: transparent; color: var(--k-muted); }
.t2k-btn-ghost:hover:not(:disabled) { background: var(--k-soft); color: var(--k-text); }
.t2k-btn-cta { background: var(--k-cta); color: #0F172A; box-shadow: 0 4px 0 var(--k-cta-shadow); }
.t2k-btn-cta:hover:not(:disabled) { background: var(--k-cta-hover); }
.t2k-btn-primary { background: var(--k-primary); color: #FFFFFF; box-shadow: 0 4px 0 var(--k-primary-deep); }
.t2k-btn-primary:hover:not(:disabled) { background: #1D4ED8; }
.t2k-btn-cta:active:not(:disabled), .t2k-btn-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--k-cta-shadow); }
.t2k-btn-right { background: var(--k-right-soft); color: var(--k-right-text); }
.t2k-btn-right:hover:not(:disabled) { background: var(--k-right-soft); filter: brightness(.97); }
.t2k-btn-amber { background: var(--k-amber-soft); color: var(--k-amber-text); }
.t2k-btn-amber:hover:not(:disabled) { background: var(--k-amber-soft); filter: brightness(.97); }
.t2k-btn-square { width: 56px; padding: 0; }

/* --- Feedback banner --- */
.t2k-feedback {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 14px 14px 18px; border-radius: 22px;
    background: var(--k-warm-soft); border: 2px solid var(--k-warm-border);
}
.t2k-feedback.is-right { background: var(--k-right-soft); border-color: #86EFAC; }
.dark .t2k-feedback.is-right { border-color: #166534; }
.t2k-feedback-msg { display: flex; align-items: center; gap: 12px; }
.t2k-feedback-icon {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--k-wrong); color: #FFFFFF;
}
.t2k-feedback.is-right .t2k-feedback-icon { background: var(--k-right); }
.t2k-feedback-title { display: block; font-family: var(--k-display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.t2k-feedback-text { display: block; font-size: 15px; color: var(--k-warm-text); }
.t2k-feedback.is-right .t2k-feedback-text { color: var(--k-right-text); }

/* --- Quiz --- */
.t2k-question-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 6px; }
.t2k-label {
    display: inline-flex; padding: 4px 14px; border-radius: 999px;
    background: var(--k-primary-soft); color: var(--k-primary-text);
    font-size: 14px; font-weight: 800;
}
.t2k-question {
    margin: 0; max-width: 860px;
    font-family: var(--k-display); font-size: clamp(26px, 4.2cqi, 46px); line-height: 1.12; font-weight: 800;
    overflow-wrap: anywhere;
}
.t2k-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.t2k-answer {
    --tone-bg: var(--k-tone-1-bg); --tone-solid: var(--k-tone-1-solid);
    display: flex; align-items: center; gap: 14px;
    min-height: 84px; padding: 12px 18px;
    border: 3px solid var(--tone-bg); border-radius: 22px;
    background: var(--k-bg); color: var(--k-text);
    text-align: left;
    transition: transform .15s ease-out, background-color .15s ease, border-color .15s ease, opacity .2s ease;
}
.t2k-answer:nth-child(4n + 2) { --tone-bg: var(--k-tone-2-bg); --tone-solid: var(--k-tone-2-solid); }
.t2k-answer:nth-child(4n + 3) { --tone-bg: var(--k-tone-3-bg); --tone-solid: var(--k-tone-3-solid); }
.t2k-answer:nth-child(4n + 4) { --tone-bg: var(--k-tone-4-bg); --tone-solid: var(--k-tone-4-solid); }
.t2k-answer:hover:not(:disabled) { transform: translateY(-2px); background: var(--tone-bg); }
.t2k-answer:disabled { cursor: default; }
.t2k-answer-key {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--tone-solid); color: #FFFFFF;
    font-family: var(--k-display); font-size: 23px; font-weight: 800;
}
.t2k-answer-text { flex: 1; min-width: 0; font-family: var(--k-display); font-size: clamp(19px, 2.4cqi, 26px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.t2k-answer-tag {
    flex: none; padding: 4px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 800; background: var(--k-right); color: #FFFFFF;
}
.t2k-answer.is-right { border-color: var(--k-right); background: var(--k-right-soft); box-shadow: 0 5px 0 #15803D; }
.t2k-answer.is-right .t2k-answer-key { background: var(--k-right); }
.t2k-answer.is-wrong { border-color: var(--k-wrong); background: var(--k-wrong-soft); }
.t2k-answer.is-wrong .t2k-answer-key { background: var(--k-wrong); }
.t2k-answer.is-wrong .t2k-answer-tag { background: var(--k-bg); color: var(--k-wrong-text); border: 2px solid #FCA5A5; }
.t2k-answer.is-dim { opacity: .5; }
.t2k-answer.is-picked { border-color: var(--k-primary); background: var(--k-primary-soft); }

.t2k-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.t2k-dot {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 6px; border: 0; border-radius: 12px;
    background: var(--k-soft); color: var(--k-muted); font-weight: 800; font-size: 15px;
}
.t2k-dot.is-current { background: var(--k-primary); color: #FFFFFF; }
.t2k-dot.is-right { background: var(--k-right-soft); color: var(--k-right-text); }
.t2k-dot.is-wrong { background: var(--k-wrong-soft); color: var(--k-wrong-text); }

.t2k-qlist { display: flex; flex-direction: column; gap: 18px; }
.t2k-qblock { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: var(--k-surface); border: 2px solid var(--k-line); }
.t2k-qblock-title { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-family: var(--k-display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.t2k-qblock .t2k-answer { min-height: 60px; }
.t2k-qblock .t2k-answer-key { width: 38px; height: 38px; font-size: 19px; border-radius: 12px; }
.t2k-qblock .t2k-answer-text { font-size: 19px; }
.t2k-num {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 32px; height: 32px; border-radius: 10px;
    background: var(--k-primary-soft); color: var(--k-primary-text);
    font-family: var(--k-display); font-size: 17px; font-weight: 800;
}

/* --- Match Up --- */
.t2k-bank {
    display: flex; flex-wrap: wrap; gap: 10px;
    min-height: 76px; padding: 14px; border-radius: 20px;
    background: var(--k-surface); border: 2px dashed var(--k-dash);
    transition: border-color .15s ease, background-color .15s ease;
}
.t2k-bank.is-target { border-color: var(--k-primary); background: var(--k-primary-soft); }
.t2k-bank-empty { align-self: center; color: var(--k-faint); font-weight: 700; }
.t2k-chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; max-width: 100%; padding: 8px 16px;
    border: 2px solid var(--k-border); border-radius: 16px;
    background: var(--k-bg); color: var(--k-text);
    box-shadow: 0 4px 0 var(--k-border);
    font-size: 17px; font-weight: 700; line-height: 1.25; text-align: left;
    cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
    transition: transform .12s ease-out, box-shadow .12s ease-out, border-color .12s ease;
}
.t2k-chip-grip { color: var(--k-faint); }
.t2k-chip.is-selected { border: 3px solid var(--k-primary); box-shadow: 0 8px 18px rgba(37, 99, 235, .25); transform: translateY(-2px); }
.t2k-chip.is-lifted { opacity: .35; }
.t2k.t2k-ghost-host {
    position: fixed; inset: 0; z-index: 10000; pointer-events: none;
    border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible;
}
.t2k-chip-ghost {
    position: fixed; z-index: 10000; pointer-events: none; margin: 0;
    border: 3px solid var(--k-primary); box-shadow: 0 14px 28px rgba(15, 23, 42, .25);
    transform: rotate(-2.5deg); cursor: grabbing;
}
.t2k-pairs { display: flex; flex-direction: column; gap: 12px; }
.t2k-pair { display: grid; grid-template-columns: minmax(0, 0.85fr) 32px minmax(0, 1.6fr); align-items: center; gap: 10px; }
.t2k-term {
    display: flex; align-items: center; min-height: 60px; padding: 8px 18px; border-radius: 18px;
    background: var(--k-tone-1-bg); color: var(--k-tone-1-fg);
    font-family: var(--k-display); font-size: clamp(19px, 2.3cqi, 23px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere;
}
.t2k-pair:nth-child(5n + 2) .t2k-term { background: var(--k-tone-2-bg); color: var(--k-tone-2-fg); }
.t2k-pair:nth-child(5n + 3) .t2k-term { background: var(--k-tone-3-bg); color: var(--k-tone-3-fg); }
.t2k-pair:nth-child(5n + 4) .t2k-term { background: var(--k-tone-5-bg); color: var(--k-tone-5-fg); }
.t2k-pair:nth-child(5n + 5) .t2k-term { background: var(--k-tone-4-bg); color: var(--k-tone-4-fg); }
.t2k-arrow { color: var(--k-dash); }
.t2k-slot {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 60px; padding: 6px; border-radius: 18px;
    border: 3px dashed var(--k-dash); background: var(--k-surface); color: var(--k-primary-text);
    font-size: 15px; font-weight: 800; text-align: left;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.t2k-slot-empty { padding-left: 12px; color: var(--k-faint); font-weight: 700; }
.t2k-slot .t2k-chip { box-shadow: none; border-color: transparent; background: transparent; padding: 6px 12px; }
.t2k-slot.is-filled { border-style: solid; border-color: var(--k-border); background: var(--k-bg); }
.t2k-slot.is-target { border-color: var(--k-primary); border-style: dashed; background: var(--k-primary-soft); box-shadow: 0 0 0 6px rgba(37, 99, 235, .14); }
.t2k-slot.is-target .t2k-slot-empty { color: var(--k-primary-text); }
.t2k-slot.is-right { border: 3px solid var(--k-right); background: var(--k-right-soft); }
.t2k-slot.is-wrong { border: 3px solid var(--k-wrong); background: var(--k-wrong-soft); }
.t2k-slot-tag {
    display: inline-flex; align-items: center; gap: 6px; flex: none; margin-right: 6px;
    padding: 4px 10px; border-radius: 999px; color: #FFFFFF; font-size: 13px; font-weight: 800;
}
.t2k-slot.is-right .t2k-slot-tag { background: var(--k-right); }
.t2k-slot.is-wrong .t2k-slot-tag { background: var(--k-wrong); }
.t2k-tapnote { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--k-primary-soft); color: var(--k-primary-text); font-size: 15px; font-weight: 700; }

/* --- Flash cards --- */
.t2k-deck { position: relative; width: min(600px, 100%); aspect-ratio: 16 / 10; margin: 8px auto 0; perspective: 1400px; }
.t2k-deck::before, .t2k-deck::after { content: ''; position: absolute; inset: 0; border-radius: 30px; }
.t2k-deck::before { background: var(--k-primary-soft); transform: rotate(3.5deg) translate(12px, 10px); opacity: .7; }
.t2k-deck::after { background: var(--k-soft); border: 2px solid var(--k-border); transform: rotate(-2.5deg) translate(-8px, 6px); }
.t2k-card { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: transparent; color: inherit; }
.t2k-card-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.t2k-card.is-flipped .t2k-card-inner { transform: rotateY(180deg); }
.t2k-face {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: 56px 28px 28px; border-radius: 30px;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    background: var(--k-bg); border: 3px solid var(--k-border); box-shadow: 0 10px 0 var(--k-border);
}
.t2k-face-back { transform: rotateY(180deg); background: var(--k-primary); border-color: var(--k-primary); color: #FFFFFF; box-shadow: 0 10px 0 var(--k-primary-deep); }
.t2k-face-label { position: absolute; top: 18px; left: 22px; padding: 4px 12px; border-radius: 999px; background: var(--k-soft); color: var(--k-muted); font-size: 13px; font-weight: 800; }
.t2k-face-back .t2k-face-label { background: rgba(255, 255, 255, .18); color: #FFFFFF; }
.t2k-face-count { position: absolute; top: 18px; right: 22px; font-size: 14px; font-weight: 800; color: var(--k-faint); }
.t2k-face-back .t2k-face-count { color: #DBEAFE; }
.t2k-face-text { font-family: var(--k-display); font-size: clamp(26px, 5.4cqi, 54px); line-height: 1.08; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.t2k-face-hint { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--k-faint); }
.t2k-face-back .t2k-face-hint { color: #DBEAFE; }
.t2k-card-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding-top: 18px; }
.t2k-deckdots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.t2k-deckdot { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 999px; background: var(--k-track); transition: width .2s ease, background-color .2s ease; }
.t2k-deckdot.is-known { background: #22C55E; }
.t2k-deckdot.is-learning { background: var(--k-cta); }
.t2k-deckdot.is-current { width: 32px; background: var(--k-primary); }
.t2k-shortcuts { font-size: 14px; font-weight: 700; color: var(--k-muted); }

/* --- Results --- */
.t2k-results { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 24px 32px; text-align: center; position: relative; }
.t2k-stars { display: flex; align-items: flex-end; gap: 6px; color: var(--k-cta); }
.t2k-stars .is-off { color: var(--k-track); }
.t2k-results-title { margin: 0; font-family: var(--k-display); font-size: clamp(36px, 6cqi, 54px); line-height: 1; font-weight: 800; }
.t2k-results-sub { margin: 0; font-size: 19px; font-weight: 700; color: var(--k-muted); }
.t2k-results-sub strong { color: var(--k-text); }
.t2k-results-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.t2k-ring {
    --pct: 0;
    display: flex; align-items: center; justify-content: center;
    width: 150px; height: 150px; border-radius: 50%;
    background: conic-gradient(#22C55E calc(var(--pct) * 1%), var(--k-track) 0);
}
.t2k-ring-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 112px; height: 112px; border-radius: 50%; background: var(--k-bg); }
.t2k-ring-value { font-family: var(--k-display); font-size: 38px; font-weight: 800; line-height: 1; }
.t2k-ring-label { font-size: 13px; font-weight: 800; color: var(--k-faint); }
.t2k-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.t2k-stat { display: flex; flex-direction: column; gap: 2px; min-width: 104px; padding: 14px 16px; border-radius: 20px; background: var(--k-soft); text-align: left; }
.t2k-stat-value { font-family: var(--k-display); font-size: 32px; font-weight: 800; line-height: 1; }
.t2k-stat-label { font-size: 14px; font-weight: 800; color: var(--k-muted); }
.t2k-stat.is-right { background: var(--k-right-soft); color: var(--k-right-text); }
.t2k-stat.is-right .t2k-stat-label { color: var(--k-right-text); }
.t2k-stat.is-wrong { background: var(--k-wrong-soft); color: var(--k-wrong-text); }
.t2k-stat.is-wrong .t2k-stat-label { color: var(--k-wrong-text); }
.t2k-stat.is-amber { background: var(--k-amber-soft); color: var(--k-amber-text); }
.t2k-stat.is-amber .t2k-stat-label { color: var(--k-amber-text); }
.t2k-review { width: 100%; max-width: 660px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.t2k-review-title { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--k-faint); }
.t2k-review-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--k-warm-soft); border: 2px solid var(--k-warm-border); }
.t2k-review-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t2k-review-q { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.t2k-review-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.t2k-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.t2k-tag-wrong { background: var(--k-wrong-soft); color: var(--k-wrong-text); }
.t2k-tag-right { background: var(--k-right-soft); color: var(--k-right-text); }
.t2k-results-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Confetti burst (skipped when reduced motion is on) */
.t2k-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.t2k-confetti i {
    position: absolute; top: -16px; width: 12px; height: 12px; border-radius: 3px;
    animation: t2k-fall 1.6s cubic-bezier(.3, .6, .4, 1) forwards;
}
@keyframes t2k-fall {
    0% { transform: translate(0, 0) rotate(0); opacity: 1; }
    100% { transform: translate(var(--dx, 0), 420px) rotate(var(--rot, 360deg)); opacity: 0; }
}

/* --- Shared bits for the other games --- */
.t2k-tone-1 { --tone-bg: var(--k-tone-1-bg); --tone-fg: var(--k-tone-1-fg); --tone-solid: var(--k-tone-1-solid); }
.t2k-tone-2 { --tone-bg: var(--k-tone-2-bg); --tone-fg: var(--k-tone-2-fg); --tone-solid: var(--k-tone-2-solid); }
.t2k-tone-3 { --tone-bg: var(--k-tone-3-bg); --tone-fg: var(--k-tone-3-fg); --tone-solid: var(--k-tone-3-solid); }
.t2k-tone-4 { --tone-bg: var(--k-tone-4-bg); --tone-fg: var(--k-tone-4-fg); --tone-solid: var(--k-tone-4-solid); }
.t2k-tone-5 { --tone-bg: var(--k-tone-5-bg); --tone-fg: var(--k-tone-5-fg); --tone-solid: var(--k-tone-5-solid); }

.t2k-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 24px; text-align: center; }
.t2k-intro-icon { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 30px; background: var(--k-amber-soft); color: var(--k-cta-shadow); box-shadow: 0 6px 0 var(--k-border); }
.dark .t2k-intro-icon { color: var(--k-amber-text); }
.t2k-intro-title { margin: 0; font-family: var(--k-display); font-size: clamp(30px, 5cqi, 44px); font-weight: 800; line-height: 1.05; }

.t2k-pill-timer { background: var(--k-amber-soft); color: var(--k-amber-text); font-family: var(--k-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.t2k-pill-timer.is-low { background: var(--k-wrong); color: #FFFFFF; }

@keyframes t2k-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.t2k-shake { animation: t2k-shake .4s ease-in-out; }
@keyframes t2k-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(0); opacity: 0; } }

/* In-frame panel (Open the Box, Spin the Wheel) */
.t2k-panel-layer { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .55); }
.t2k-panel {
    width: min(640px, 100%); max-height: 100%; overflow: auto;
    display: flex; flex-direction: column; gap: 18px; padding: 24px;
    border-radius: 26px; background: var(--k-bg); border: 2px solid var(--k-border); box-shadow: 0 18px 40px rgba(15, 23, 42, .3);
}
.t2k-panel:focus { outline: none; }
.t2k-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t2k-panel-text { margin: 0; font-family: var(--k-display); font-size: clamp(24px, 3.6cqi, 34px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.t2k-panel-answer { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 18px; background: var(--k-right-soft); color: var(--k-right-text); }
.t2k-panel-answer strong { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.t2k-panel-answer span { font-family: var(--k-display); font-size: 26px; font-weight: 800; color: var(--k-text); overflow-wrap: anywhere; }
.t2k-panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Gameshow: filled answer tiles and a time bar */
.t2k-answers.is-bold .t2k-answer { border-color: transparent; background: var(--tone-bg); box-shadow: 0 5px 0 var(--tone-solid); }
.t2k-answers.is-bold .t2k-answer:hover:not(:disabled) { filter: brightness(1.03); }
.t2k-answers.is-bold .t2k-answer.is-right { background: var(--k-right-soft); border-color: var(--k-right); box-shadow: 0 5px 0 #15803D; }
.t2k-answers.is-bold .t2k-answer.is-wrong { background: var(--k-wrong-soft); border-color: var(--k-wrong); box-shadow: 0 5px 0 #991B1B; }
.t2k-timebar { height: 12px; border-radius: 999px; background: var(--k-track); overflow: hidden; }
.t2k-timebar > span { display: block; height: 100%; border-radius: 999px; background: var(--k-cta); transition: width 1s linear; }
.t2k-timebar.is-low > span { background: var(--k-wrong); }

/* Open the Box */
.t2k-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.t2k-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    aspect-ratio: 1 / 0.85; padding: 10px; border: 0; border-radius: 22px;
    background: var(--tone-bg); color: var(--tone-fg); box-shadow: 0 6px 0 var(--tone-solid);
    font-family: var(--k-display); font-size: clamp(30px, 5cqi, 44px); font-weight: 800; line-height: 1;
    transition: transform .15s ease-out;
}
.t2k-box:hover:not(:disabled) { transform: translateY(-3px) rotate(-1deg); }
.t2k-box svg { opacity: .7; }
.t2k-box.is-opened { background: var(--k-soft); color: var(--k-faint); box-shadow: 0 4px 0 var(--k-border); }
.t2k-box.is-opened svg.t2k-gift { color: var(--k-faint); filter: none; }

/* Flying Answers */
.t2k-sky {
    position: relative; overflow: hidden; height: clamp(320px, 52cqi, 520px);
    border-radius: 24px; background: var(--k-primary-soft); border: 2px solid var(--k-border);
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .7) 0 40px, transparent 41px), radial-gradient(circle at 75% 65%, rgba(255, 255, 255, .55) 0 60px, transparent 61px);
}
.dark .t2k-sky { background-image: none; }
.t2k-flyer {
    position: absolute; left: 0; top: 0; will-change: transform;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 54px; min-width: 72px; max-width: 46%; padding: 8px 18px; border: 0; border-radius: 999px;
    background: var(--tone-bg); color: var(--tone-fg); box-shadow: 0 5px 0 var(--tone-solid);
    font-family: var(--k-display); font-size: clamp(17px, 2.4cqi, 22px); font-weight: 800; line-height: 1.15; text-align: center;
}
.t2k-flyer.is-hit { background: var(--k-right); color: #FFFFFF; animation: t2k-pop .5s ease-out forwards; }
.t2k-flyer.is-miss { background: var(--k-wrong); color: #FFFFFF; }

/* Group Sort */
.t2k-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.t2k-group { display: flex; flex-direction: column; min-height: 170px; border-radius: 22px; background: var(--k-surface); border: 3px dashed var(--k-dash); overflow: hidden; transition: border-color .15s ease, background-color .15s ease; }
.t2k-group-head { padding: 12px 16px; background: var(--tone-bg); color: var(--tone-fg); font-family: var(--k-display); font-size: 21px; font-weight: 800; line-height: 1.15; }
.t2k-group-body { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 12px; }
.t2k-group.is-target { border-color: var(--k-primary); background: var(--k-primary-soft); }
.t2k-chip.is-right { border-color: var(--k-right); background: var(--k-right-soft); box-shadow: none; }
.t2k-chip.is-wrong { border-color: var(--k-wrong); background: var(--k-wrong-soft); box-shadow: none; }

/* Sequence rows (Anagram, Unjumble) */
.t2k-seqs { display: flex; flex-direction: column; gap: 12px; }
.t2k-seq { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: var(--k-surface); border: 2px solid var(--k-line); }
.t2k-seq:focus-visible { outline: 3px solid var(--k-focus); outline-offset: 2px; }
.t2k-seq.is-right { background: var(--k-right-soft); border-color: #86EFAC; }
.t2k-seq.is-wrong { background: var(--k-wrong-soft); border-color: #FCA5A5; }
.dark .t2k-seq.is-right { border-color: #166534; }
.dark .t2k-seq.is-wrong { border-color: #7F1D1D; }
.t2k-seq-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t2k-seq-answer { display: flex; flex-wrap: wrap; gap: 8px; min-height: 54px; padding: 6px 6px 8px; border-bottom: 3px solid var(--k-dash); }
.t2k-seq-pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; }
.t2k-seq-side { display: flex; align-items: center; gap: 6px; }
.t2k-seq-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #FFFFFF; background: var(--k-right); }
.t2k-seq.is-wrong .t2k-seq-mark { background: var(--k-wrong); }
.t2k-piece {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 6px 14px; border: 2px solid var(--k-border); border-radius: 14px;
    background: var(--k-bg); color: var(--k-text); box-shadow: 0 4px 0 var(--k-border);
    font-family: var(--k-display); font-size: 20px; font-weight: 800; line-height: 1.1;
    transition: transform .12s ease-out;
}
.t2k-piece:hover:not(:disabled) { transform: translateY(-2px); }
.t2k-piece:disabled { cursor: default; }
.t2k-piece-letter { width: 48px; padding: 0; font-size: 24px; text-transform: uppercase; }
.t2k-seq-answer .t2k-piece { background: var(--k-primary-soft); border-color: var(--k-primary-soft); color: var(--k-primary-text); box-shadow: none; }
.t2k-piece-slot { width: 48px; height: 46px; border-radius: 14px; border: 2px dashed var(--k-dash); }

/* Complete the Sentence */
.t2k-sentences { display: flex; flex-direction: column; gap: 12px; }
.t2k-sentence { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--k-surface); border: 2px solid var(--k-line); }
.t2k-sentence-text { flex: 1; font-size: clamp(18px, 2.4cqi, 22px); font-weight: 700; line-height: 2.1; overflow-wrap: anywhere; }
.t2k-blank {
    display: inline-block; min-width: 6ch; margin: 0 4px; padding: 2px 10px;
    border: 0; border-bottom: 3px solid var(--k-primary); border-radius: 10px 10px 4px 4px;
    background: var(--k-primary-soft); color: var(--k-text);
    font: inherit; font-family: var(--k-display); font-weight: 800; line-height: 1.4; text-align: center;
}
.t2k-blank:focus { outline: none; box-shadow: 0 0 0 3px var(--k-focus); }
.t2k-blank.is-right { background: var(--k-right-soft); border-color: var(--k-right); color: var(--k-right-text); }
.t2k-blank.is-wrong { background: var(--k-wrong-soft); border-color: var(--k-wrong); color: var(--k-wrong-text); }
.t2k-wordbank { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--k-surface); border: 2px dashed var(--k-dash); }
.t2k-wordbank-label { font-size: 14px; font-weight: 800; color: var(--k-faint); margin-right: 4px; }
.t2k-wordbank .t2k-piece { min-height: 40px; font-size: 17px; }
.t2k-wordbank .t2k-piece.is-used { opacity: .4; }

/* Flip tiles & memory cards */
.t2k-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.t2k-flip { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; background: transparent; color: inherit; perspective: 900px; }
.t2k-flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.t2k-flip.is-up .t2k-flip-inner { transform: rotateY(180deg); }
.t2k-flip-face {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px;
    border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    font-family: var(--k-display); font-size: clamp(17px, 2.2cqi, 22px); font-weight: 800; line-height: 1.15; text-align: center; overflow-wrap: anywhere;
}
.t2k-flip-front { background: var(--tone-bg); color: var(--tone-fg); box-shadow: 0 5px 0 var(--tone-solid); }
.t2k-flip-back { transform: rotateY(180deg); background: var(--k-bg); color: var(--k-text); border: 3px solid var(--tone-solid); box-shadow: 0 5px 0 var(--k-border); }
.t2k-flip-num { position: absolute; top: 10px; left: 14px; font-size: 13px; font-weight: 800; opacity: .7; font-family: var(--k-body); }
.t2k-memory { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.t2k-memory .t2k-flip { aspect-ratio: 1 / 1; }
.t2k-memory .t2k-flip-front { background: var(--k-primary); color: #FFFFFF; box-shadow: 0 5px 0 var(--k-primary-deep); background-image: radial-gradient(rgba(255, 255, 255, .18) 2px, transparent 2px); background-size: 16px 16px; }
.t2k-memory .t2k-flip-back { border-color: var(--k-border); }
.t2k-memory .t2k-flip.is-matched .t2k-flip-back { background: var(--k-right-soft); border-color: var(--k-right); color: var(--k-right-text); }
.t2k-memory .t2k-flip.is-miss .t2k-flip-back { border-color: var(--k-wrong); background: var(--k-wrong-soft); }

/* Speaking cards */
.t2k-prompt {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    width: min(680px, 100%); min-height: 300px; margin: 6px auto 0; padding: 48px 28px 32px;
    border-radius: 30px; background: var(--tone-bg); color: var(--tone-fg); box-shadow: 0 10px 0 var(--tone-solid); text-align: center;
}
.t2k-prompt-label { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.t2k-prompt-text { margin: 0; font-family: var(--k-display); font-size: clamp(26px, 4.6cqi, 46px); line-height: 1.12; font-weight: 800; overflow-wrap: anywhere; }
.t2k-prompt-count { position: absolute; top: 18px; right: 22px; font-size: 14px; font-weight: 800; opacity: .8; }
.t2k-prompt.is-empty { background: var(--k-soft); color: var(--k-muted); box-shadow: 0 10px 0 var(--k-border); }

/* Find the Match */
.t2k-fm { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.t2k-fm-tile {
    display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 10px 12px;
    border: 3px solid transparent; border-radius: 20px; background: var(--tone-bg); color: var(--tone-fg); box-shadow: 0 5px 0 var(--tone-solid);
    font-family: var(--k-display); font-size: clamp(17px, 2.2cqi, 21px); font-weight: 800; line-height: 1.15; text-align: center; overflow-wrap: anywhere;
    transition: transform .12s ease-out;
}
.t2k-fm-tile:hover:not(:disabled) { transform: translateY(-2px); }
.t2k-fm-tile.is-selected { border-color: var(--k-primary); background: var(--k-bg); color: var(--k-text); box-shadow: 0 8px 18px rgba(37, 99, 235, .25); }
.t2k-fm-tile.is-miss { border-color: var(--k-wrong); background: var(--k-wrong-soft); color: var(--k-wrong-text); }
.t2k-fm-tile.is-cleared { animation: t2k-pop .45s ease-out forwards; pointer-events: none; }
.t2k-fm-tile.is-gone { visibility: hidden; }

/* Crossword */
.t2k-xw { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: center; }
.t2k-xw-grid { --cell: clamp(32px, 6.2cqi, 52px); display: grid; gap: 3px; padding: 10px; border-radius: 18px; background: var(--k-soft); max-width: 100%; overflow-x: auto; }
.t2k-xw-cell { position: relative; width: var(--cell); height: var(--cell); }
.t2k-xw-cell input {
    width: 100%; height: 100%; padding: 0; border: 2px solid var(--k-border); border-radius: 8px;
    background: var(--k-bg); color: var(--k-text); text-align: center; text-transform: uppercase; caret-color: var(--k-primary);
    font-family: var(--k-display); font-size: calc(var(--cell) * 0.55); font-weight: 800; line-height: 1;
}
.t2k-xw-cell input:focus { outline: none; border-color: var(--k-primary); background: var(--k-primary-soft); }
.t2k-xw-cell.is-word input { background: #FEF9C3; border-color: #FACC15; }
.dark .t2k-xw-cell.is-word input { background: #3A3210; border-color: #A16207; }
.t2k-xw-cell.is-right input { background: var(--k-right-soft); border-color: var(--k-right); color: var(--k-right-text); }
.t2k-xw-cell.is-wrong input { background: var(--k-wrong-soft); border-color: var(--k-wrong); color: var(--k-wrong-text); }
.t2k-xw-num { position: absolute; top: 2px; left: 4px; z-index: 1; font-size: calc(var(--cell) * 0.24); font-weight: 800; color: var(--k-faint); pointer-events: none; line-height: 1; }
.t2k-clues { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.t2k-clues h4 { margin: 0 0 6px; font-family: var(--k-display); font-size: 21px; font-weight: 800; color: var(--k-primary-text); }
.t2k-clue {
    display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px;
    background: transparent; color: var(--k-text); font-size: 16px; font-weight: 600; text-align: left; line-height: 1.4;
}
.t2k-clue:hover { background: var(--k-soft); }
.t2k-clue.is-active { background: #FEF9C3; }
.dark .t2k-clue.is-active { background: #3A3210; }
.t2k-clue.is-solved { color: var(--k-right-text); }
.t2k-clue-num { flex: none; min-width: 24px; font-family: var(--k-display); font-weight: 800; }
.t2k-clue-len { color: var(--k-faint); font-size: 14px; white-space: nowrap; }

/* Wordsearch */
.t2k-ws { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: center; }
.t2k-ws-grid {
    --cell: clamp(26px, 4.4cqi, 42px);
    display: grid; gap: 2px; padding: 10px; border-radius: 18px; background: var(--k-soft);
    touch-action: none; user-select: none; -webkit-user-select: none; max-width: 100%;
}
.t2k-ws-cell {
    display: flex; align-items: center; justify-content: center; width: var(--cell); height: var(--cell);
    border-radius: 9px; background: var(--k-bg); color: var(--k-text);
    font-family: var(--k-display); font-size: calc(var(--cell) * 0.55); font-weight: 800; cursor: pointer;
}
.t2k-ws-cell.is-found { background: var(--found-bg, var(--k-right-soft)); color: var(--found-fg, var(--k-right-text)); }
.t2k-ws-cell.is-sel { background: var(--k-primary); color: #FFFFFF; }
.t2k-ws-cell.is-reveal { box-shadow: inset 0 0 0 3px var(--k-cta); }
.t2k-ws-words { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.t2k-ws-words h4 { margin: 0; font-family: var(--k-display); font-size: 21px; font-weight: 800; }
.t2k-ws-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.t2k-ws-word { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--k-soft); font-weight: 800; letter-spacing: .04em; }
.t2k-ws-word.is-found { background: var(--found-bg, var(--k-right-soft)); color: var(--found-fg, var(--k-right-text)); text-decoration: line-through; }

/* Spin the Wheel */
.t2k-wheel-area { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.t2k-wheel-wrap { position: relative; width: min(440px, 100%); aspect-ratio: 1 / 1; }
.t2k-wheel-svg { width: 100%; height: 100%; display: block; transition: transform 4.2s cubic-bezier(.12, .7, .1, 1); filter: drop-shadow(0 8px 0 var(--k-border)); }
.t2k-wheel-svg text { font-family: var(--k-display); font-weight: 800; }
.t2k-wheel-pointer { position: absolute; top: -6px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--k-text); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .15)); z-index: 2; }
.t2k-wheel-hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 26%; aspect-ratio: 1 / 1; border-radius: 50%; border: 6px solid var(--k-bg);
    background: var(--k-cta); color: #0F172A; box-shadow: 0 5px 0 var(--k-cta-shadow);
    font-family: var(--k-display); font-size: clamp(16px, 3cqi, 24px); font-weight: 800;
}
.t2k-wheel-hub:disabled { opacity: 1; cursor: progress; }
.t2k-wheel-items { flex: 1 1 220px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.t2k-wheel-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--tone-bg); color: var(--tone-fg); font-weight: 800; }
.t2k-wheel-item.is-removed { background: var(--k-soft); color: var(--k-faint); text-decoration: line-through; }
.t2k-winner { margin: 0; font-family: var(--k-display); font-size: clamp(32px, 6cqi, 56px); font-weight: 800; line-height: 1.05; text-align: center; overflow-wrap: anywhere; color: var(--k-text); }

/* --- Fullscreen & narrow layouts --- */
.t2k:fullscreen { border-radius: 0; border: 0; box-shadow: none; overflow: auto; justify-content: flex-start; }
.t2k:fullscreen .t2k-body { flex: 1; justify-content: center; max-width: 1200px; width: 100%; margin: 0 auto; }

@container (max-width: 620px) {
    .t2k-bar { padding: 12px 14px; }
    .t2k-title { font-size: 21px; }
    .t2k-icon { width: 42px; height: 42px; border-radius: 13px; }
    .t2k-answers { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .t2k-answer { min-height: 64px; }
    .t2k-pair { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px; border-radius: 18px; background: var(--k-surface); }
    .t2k-arrow { display: none; }
    .t2k-term { min-height: 0; padding: 4px 6px; background: transparent !important; }
    .t2k-foot { padding: 12px 14px; }
    .t2k-deck { aspect-ratio: 4 / 3; }
    .t2k-stat { min-width: 90px; }
    .t2k-seq { grid-template-columns: minmax(0, 1fr) auto; }
    .t2k-seq > .t2k-num { display: none; }
    .t2k-piece-letter, .t2k-piece-slot { width: 40px; }
    .t2k-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .t2k-memory { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .t2k-fm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .t2k-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .t2k-flyer { max-width: 70%; }
}

/* --- Decorative art: mascot, clay stars, card backs, sky, gift boxes (all aria-hidden) --- */
.t2k-mascot { display: block; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.t2k-results-hero { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.t2k-results-mascot { width: clamp(120px, 20cqi, 170px); margin: -16px 0 -14px; }
.t2k-star-on { display: block; width: var(--size); height: var(--size); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cellipse cx='60' cy='108' rx='33' ry='6' fill='%23000' opacity='.14'/%3E%3Cpath d='M60 13q4 0 6 5l10 21 23 3q10 2 3 9L85 67l4 23q2 10-7 5L60 84 39 95q-9 5-7-5l4-23-17-16q-7-7 3-9l23-3 10-21q2-5 5-5z' fill='%23B45309'/%3E%3Cpath d='M60 9q4 0 6 5l10 21 23 3q10 2 3 9L85 63l4 23q2 10-7 5L60 80 39 91q-9 5-7-5l4-23-17-16q-7-7 3-9l23-3 10-21q2-5 5-5z' fill='%23F59E0B'/%3E%3Cpath d='M54 18q3-3 5 2l8 17-19 2-9 9-2-5 13-13z' fill='%23FCD34D'/%3E%3C/svg%3E") center / contain no-repeat; }
.t2k-intro-art { position: relative; display: inline-flex; }
.t2k-intro-mascot { width: clamp(130px, 22cqi, 180px); }
.t2k-intro-art:has(.t2k-intro-mascot) .t2k-intro-icon { position: absolute; right: -10px; bottom: 8px; width: 58px; height: 58px; border-radius: 18px; box-shadow: 0 4px 0 var(--k-border); }
.t2k-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.t2k-empty-mascot { width: 128px; }
.t2k-memory .t2k-flip-front { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23fff' opacity='.22'%3E%3Ccircle cx='0' cy='0' r='2.6'/%3E%3Ccircle cx='64' cy='0' r='2.6'/%3E%3Ccircle cx='0' cy='64' r='2.6'/%3E%3Ccircle cx='64' cy='64' r='2.6'/%3E%3Ccircle cx='9' cy='32' r='1.4'/%3E%3Ccircle cx='55' cy='32' r='1.4'/%3E%3Cpath d='M32 16c1.2 0 1.7 1 2.2 2.1l2.6 5.3 5.9.9c2.6.4 3.2 2.5 1.3 4.3l-4.3 4.2 1 5.9c.4 2.6-1.4 3.7-3.7 2.5L32 36.4l-5.2 2.8c-2.3 1.2-4.1.1-3.7-2.5l1-5.9-4.3-4.2c-1.9-1.8-1.3-3.9 1.3-4.3l5.9-.9 2.6-5.3c.5-1.1 1-2.1 2.4-2.1z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 44px 44px; background-position: center; }
.t2k-sky { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='sky' x2='0' y2='1'%3E%3Cstop stop-color='%23DBEAFE'/%3E%3Cstop offset='1' stop-color='%23F5F3FF'/%3E%3C/linearGradient%3E%3ClinearGradient id='cloud' x2='0' y2='1'%3E%3Cstop stop-color='%23fff'/%3E%3Cstop offset='.72' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23E2E8F0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23sky)' d='M0 0h1200v600H0z'/%3E%3Cg fill='url(%23cloud)'%3E%3Ccircle cx='180' cy='190' r='44'/%3E%3Ccircle cx='226' cy='166' r='58'/%3E%3Ccircle cx='280' cy='192' r='42'/%3E%3Crect x='174' y='190' width='148' height='42' rx='21'/%3E%3Ccircle cx='535' cy='115' r='34'/%3E%3Ccircle cx='576' cy='96' r='48'/%3E%3Ccircle cx='621' cy='117' r='33'/%3E%3Crect x='529' y='117' width='125' height='34' rx='17'/%3E%3Ccircle cx='930' cy='210' r='40'/%3E%3Ccircle cx='977' cy='185' r='55'/%3E%3Ccircle cx='1032' cy='211' r='39'/%3E%3Crect x='924' y='209' width='147' height='39' rx='20'/%3E%3Ccircle cx='352' cy='550' r='45'/%3E%3Ccircle cx='404' cy='526' r='59'/%3E%3Ccircle cx='461' cy='551' r='43'/%3E%3Crect x='346' y='550' width='160' height='50' rx='25'/%3E%3Ccircle cx='830' cy='557' r='43'/%3E%3Ccircle cx='880' cy='531' r='58'/%3E%3Ccircle cx='938' cy='556' r='42'/%3E%3Crect x='824' y='555' width='158' height='50' rx='25'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.9'%3E%3Ccircle cx='82' cy='102' r='3'/%3E%3Ccircle cx='405' cy='255' r='2.5'/%3E%3Ccircle cx='744' cy='75' r='3'/%3E%3Ccircle cx='1120' cy='140' r='2.5'/%3E%3Ccircle cx='700' cy='310' r='2'/%3E%3Ccircle cx='110' cy='392' r='2.5'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat, var(--k-primary-soft); }
.dark .t2k-sky { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='night' x2='0' y2='1'%3E%3Cstop stop-color='%231E1B4B'/%3E%3Cstop offset='1' stop-color='%23312E81'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23night)' d='M0 0h1200v600H0z'/%3E%3Cg fill='%23475569' opacity='.45'%3E%3Ccircle cx='180' cy='190' r='44'/%3E%3Ccircle cx='226' cy='166' r='58'/%3E%3Ccircle cx='280' cy='192' r='42'/%3E%3Crect x='174' y='190' width='148' height='42' rx='21'/%3E%3Ccircle cx='535' cy='115' r='34'/%3E%3Ccircle cx='576' cy='96' r='48'/%3E%3Ccircle cx='621' cy='117' r='33'/%3E%3Crect x='529' y='117' width='125' height='34' rx='17'/%3E%3Ccircle cx='930' cy='210' r='40'/%3E%3Ccircle cx='977' cy='185' r='55'/%3E%3Ccircle cx='1032' cy='211' r='39'/%3E%3Crect x='924' y='209' width='147' height='39' rx='20'/%3E%3Ccircle cx='352' cy='550' r='45'/%3E%3Ccircle cx='404' cy='526' r='59'/%3E%3Ccircle cx='461' cy='551' r='43'/%3E%3Crect x='346' y='550' width='160' height='50' rx='25'/%3E%3Ccircle cx='830' cy='557' r='43'/%3E%3Ccircle cx='880' cy='531' r='58'/%3E%3Ccircle cx='938' cy='556' r='42'/%3E%3Crect x='824' y='555' width='158' height='50' rx='25'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Ccircle cx='82' cy='102' r='2.5' opacity='.8'/%3E%3Ccircle cx='405' cy='255' r='2' opacity='.6'/%3E%3Ccircle cx='744' cy='75' r='3' opacity='.9'/%3E%3Ccircle cx='1120' cy='140' r='2.5' opacity='.7'/%3E%3Ccircle cx='700' cy='310' r='2' opacity='.8'/%3E%3Ccircle cx='110' cy='392' r='2.5' opacity='.6'/%3E%3Ccircle cx='345' cy='70' r='2' opacity='.9'/%3E%3Ccircle cx='490' cy='390' r='3' opacity='.7'/%3E%3Ccircle cx='865' cy='325' r='2' opacity='.8'/%3E%3Ccircle cx='1080' cy='430' r='2.5' opacity='.9'/%3E%3Ccircle cx='235' cy='330' r='2' opacity='.6'/%3E%3Ccircle cx='650' cy='205' r='2.5' opacity='.8'/%3E%3Ccircle cx='1010' cy='75' r='2' opacity='.7'/%3E%3Ccircle cx='560' cy='290' r='2' opacity='.9'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat, #1E1B4B; }
.t2k-box svg.t2k-gift { width: clamp(56px, 10cqi, 84px); height: auto; opacity: 1; color: var(--tone-solid); filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .35)); }
@media (prefers-reduced-motion: no-preference) {
    .t2k-intro-mascot { animation: t2k-bob 2.6s ease-in-out infinite; }
    .t2k-results-mascot { animation: t2k-pop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
}
@keyframes t2k-bob { 50% { transform: translateY(-8px); } }
@keyframes t2k-pop { from { transform: scale(.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .t2k *, .t2k *::before, .t2k *::after { transition: none !important; animation: none !important; }
    .t2k-confetti { display: none; }
}

/* Standalone (downloaded) page */
body.t2k-page { margin: 0; min-height: 100vh; padding: clamp(12px, 3vw, 32px); box-sizing: border-box; background: #EFF6FF; }
.dark body.t2k-page { background: #0B1220; color-scheme: dark; }
.t2k-page-main { max-width: 1120px; margin: 0 auto; }

/* --- rank-order --- */

/* Rank Order */
.t2k-ro-prompt { font-size: clamp(22px, 3.4cqi, 36px); }
.t2k-ro-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.t2k-ro-item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
    min-height: 64px; padding: 8px 8px 8px 6px;
    border: 2px solid var(--k-border); border-radius: 18px;
    background: var(--k-bg); color: var(--k-text);
    box-shadow: 0 4px 0 var(--k-border);
    cursor: grab; user-select: none; -webkit-user-select: none;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.t2k-ro-item:hover:not(.is-locked) { border-color: var(--k-primary); }
.t2k-ro-item.is-locked { cursor: default; }
.t2k-ro-handle {
    display: flex; align-items: center; gap: 4px;
    min-width: 44px; min-height: 44px; padding: 0 4px 0 6px;
    color: var(--k-faint); touch-action: none; cursor: grab;
}
.t2k-ro-item.is-locked .t2k-ro-handle { cursor: default; touch-action: auto; }
.t2k-ro-text { font-size: 18px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.t2k-ro-mark {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; color: #FFFFFF;
}
.t2k-ro-moves { display: flex; gap: 6px; }
.t2k-ro-moves .t2k-iconbtn:disabled { opacity: .35; cursor: default; background: var(--k-soft); color: var(--k-muted); }
.t2k-ro-item.is-locked .t2k-ro-moves { display: none; }
.t2k-ro-item.is-right { border-color: var(--k-right); background: var(--k-right-soft); box-shadow: 0 4px 0 var(--k-right); }
.t2k-ro-item.is-right .t2k-ro-mark { background: var(--k-right); }
.t2k-ro-item.is-right .t2k-num { background: var(--k-right); color: #FFFFFF; }
.t2k-ro-item.is-wrong { border-color: var(--k-wrong); background: var(--k-wrong-soft); box-shadow: 0 4px 0 var(--k-wrong); }
.t2k-ro-item.is-wrong .t2k-ro-mark { background: var(--k-wrong); }
.t2k-ro-item.is-placeholder {
    border: 2px dashed var(--k-dash); background: var(--k-surface); box-shadow: none;
}
.t2k-ro-item.is-placeholder > * { visibility: hidden; }
.t2k-ro-ghost {
    position: fixed; z-index: 10000; margin: 0; pointer-events: none; list-style: none;
    border: 3px solid var(--k-primary); box-shadow: 0 14px 28px rgba(15, 23, 42, .25);
    transform: rotate(-1.5deg); cursor: grabbing;
}
.t2k-ro-ghost .t2k-ro-moves { visibility: hidden; }
.t2k-ro-keys { margin: 0; text-align: center; }

@container (max-width: 620px) {
    .t2k-ro-list { gap: 8px; }
    .t2k-ro-item { gap: 8px; padding: 6px 6px 6px 4px; border-radius: 16px; }
    .t2k-ro-text { font-size: 16px; }
    .t2k-ro-mark { width: 26px; height: 26px; }
    .t2k-ro-moves { flex-direction: column; gap: 4px; }
    .t2k-ro-handle .t2k-chip-grip { display: none; }
    .t2k-ro-keys { display: none; }
}

/* --- true-false --- */

/* True or False */
.t2k-tf-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    width: min(820px, 100%); min-height: 220px; margin: 0 auto; padding: 32px 28px;
    border: 2px solid var(--k-border); border-radius: 28px;
    background: var(--k-surface); box-shadow: 0 8px 0 var(--k-border);
    text-align: center;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.t2k-tf-card.is-right { border-color: var(--k-right); background: var(--k-right-soft); box-shadow: 0 8px 0 var(--k-right); }
.t2k-tf-card.is-wrong { border-color: var(--k-wrong); background: var(--k-wrong-soft); box-shadow: 0 8px 0 var(--k-wrong); }
.t2k-tf-statement {
    margin: 0; max-width: 760px;
    font-family: var(--k-display); font-size: clamp(24px, 4cqi, 42px); font-weight: 800; line-height: 1.15;
    overflow-wrap: anywhere;
}
.t2k-tf-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(820px, 100%); margin: 0 auto; }
.t2k .t2k-answer.t2k-tf-true { --tone-bg: var(--k-tone-5-bg); --tone-solid: var(--k-tone-5-solid); }
.t2k .t2k-answer.t2k-tf-false { --tone-bg: var(--k-tone-3-bg); --tone-solid: var(--k-tone-3-solid); }
.t2k .t2k-tf-choices .t2k-answer {
    flex-direction: column; justify-content: center; gap: 10px;
    min-height: 120px; text-align: center;
    border-color: transparent; background: var(--tone-bg); box-shadow: 0 6px 0 var(--tone-solid);
}
.t2k .t2k-tf-choices .t2k-answer:hover:not(:disabled) { filter: brightness(1.03); }
.t2k .t2k-tf-choices .t2k-answer-key { width: 56px; height: 56px; border-radius: 18px; }
.t2k .t2k-tf-choices .t2k-answer-text { flex: none; font-size: clamp(24px, 3.4cqi, 32px); font-weight: 800; }
.t2k .t2k-tf-choices .t2k-answer.is-right { background: var(--k-right-soft); border-color: var(--k-right); box-shadow: 0 6px 0 #15803D; }
.t2k .t2k-tf-choices .t2k-answer.is-wrong { background: var(--k-wrong-soft); border-color: var(--k-wrong); box-shadow: 0 6px 0 #991B1B; }
.t2k-tf-explain { margin-top: 4px; font-weight: 700; color: var(--k-text) !important; }
.t2k-tf-keys { margin: 0; text-align: center; }
.t2k-tf-pace { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.t2k-tf-pace-label { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--k-muted); }
.t2k-tf-pace-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.t2k-tf-pace-btn[aria-pressed="true"] { border-color: var(--k-primary); background: var(--k-primary-soft); color: var(--k-primary-text); }

@container (max-width: 620px) {
    .t2k-tf-card { min-height: 170px; padding: 24px 18px; border-radius: 24px; }
    .t2k-tf-choices { gap: 10px; }
    .t2k .t2k-tf-choices .t2k-answer { min-height: 96px; padding: 10px; }
    .t2k .t2k-tf-choices .t2k-answer-key { width: 46px; height: 46px; border-radius: 14px; }
    .t2k-tf-keys { display: none; }
}

/* --- type-answer --- */

/* --- Type the Answer --- */
.t2k-ta-form { display: flex; align-items: stretch; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; }
.t2k-ta-field { flex: 1; min-width: 0; display: flex; }
.t2k-ta-input {
    width: 100%; min-height: 60px; padding: 0 18px;
    border: 2px solid var(--k-border); border-radius: 18px;
    background: var(--k-bg); color: var(--k-text);
    font-family: var(--k-display); font-size: clamp(20px, 3cqi, 28px); font-weight: 800; text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
}
.t2k-ta-input::placeholder { color: var(--k-faint); font-weight: 700; }
.t2k-ta-input:focus { outline: none; border-color: var(--k-primary); box-shadow: 0 0 0 3px var(--k-focus); }
.t2k-ta-input.is-right { background: var(--k-right-soft); border-color: var(--k-right); color: var(--k-right-text); }
.t2k-ta-input.is-wrong { background: var(--k-wrong-soft); border-color: var(--k-wrong); color: var(--k-wrong-text); }
.t2k-ta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.t2k-ta-mask { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px; }
.t2k-ta-letter {
    display: inline-flex; align-items: flex-end; justify-content: center;
    width: 1.5em; height: 1.7em; padding-bottom: 2px;
    border-bottom: 3px solid var(--k-dash);
    font-family: var(--k-display); font-size: clamp(20px, 3cqi, 28px); font-weight: 800; line-height: 1;
}
.t2k-ta-letter.is-shown { border-bottom-color: var(--k-cta); color: var(--k-amber-text); }
.t2k-ta-gap { width: 1em; }
.t2k-ta-mark { font-family: var(--k-display); font-size: clamp(20px, 3cqi, 28px); font-weight: 800; line-height: 1.7; }
.t2k-ta-tag { margin-top: 6px; background: var(--k-amber-soft); color: var(--k-amber-text); }

@container (max-width: 620px) {
    .t2k-ta-form { flex-direction: column; }
    .t2k-ta-form .t2k-btn-lg { width: 100%; }
    .t2k-ta-letter { width: 1.25em; }
}

/* --- dictation --- */

/* --- Listen & Spell (dictation) --- */
.t2k-dc-listen { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.t2k-dc-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.t2k-dc-play {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    width: 128px; height: 128px; border: 0; border-radius: 50%;
    background: var(--k-primary); color: #FFFFFF; box-shadow: 0 6px 0 var(--k-primary-deep);
    font-family: var(--k-display); font-size: 18px; font-weight: 800;
    transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .15s ease;
}
.t2k-dc-play:hover:not(:disabled) { background: #1D4ED8; }
.t2k-dc-play:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--k-primary-deep); }
.t2k-dc-play:disabled, .t2k-dc-slow:disabled { opacity: .45; cursor: not-allowed; }
.t2k-dc-play.is-speaking { box-shadow: 0 6px 0 var(--k-primary-deep), 0 0 0 8px var(--k-primary-soft); }
.t2k-dc-slow.is-speaking { border-color: var(--k-primary); background: var(--k-primary-soft); color: var(--k-primary-text); }
.t2k-dc-seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--k-soft); }
.t2k-dc-seg-label { padding: 0 8px 0 10px; font-size: 14px; font-weight: 800; color: var(--k-muted); }
.t2k-dc-seg button {
    min-width: 56px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px;
    background: transparent; color: var(--k-text); font-size: 15px; font-weight: 800;
}
.t2k-dc-seg button[aria-pressed="true"] { background: var(--k-primary); color: #FFFFFF; }
.t2k-dc-hintline { margin: 0; font-size: 18px; font-weight: 700; color: var(--k-muted); overflow-wrap: anywhere; }
.t2k-dc-flash {
    margin: 0; padding: 12px 22px; border-radius: 18px;
    background: var(--k-amber-soft); color: var(--k-amber-text);
    font-family: var(--k-display); font-size: clamp(24px, 4cqi, 36px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere;
}
.t2k-dc-nospeech { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.t2k-dc-nospeech .t2k-tapnote { flex: 1 1 280px; }
.t2k-dc-form { display: flex; align-items: stretch; gap: 12px; width: 100%; max-width: 860px; margin: 0 auto; }
.t2k-dc-field { flex: 1; min-width: 0; display: flex; }
.t2k-dc-input {
    width: 100%; min-height: 60px; padding: 0 18px;
    border: 2px solid var(--k-border); border-radius: 18px;
    background: var(--k-bg); color: var(--k-text);
    font-family: var(--k-display); font-size: clamp(20px, 3cqi, 26px); font-weight: 800;
    transition: border-color .15s ease, background-color .15s ease;
}
.t2k-dc-input::placeholder { color: var(--k-faint); font-weight: 700; }
.t2k-dc-input:focus { outline: none; border-color: var(--k-primary); box-shadow: 0 0 0 3px var(--k-focus); }
.t2k-dc-input.is-right { background: var(--k-right-soft); border-color: var(--k-right); color: var(--k-right-text); }
.t2k-dc-input.is-wrong { background: var(--k-wrong-soft); border-color: var(--k-wrong); color: var(--k-wrong-text); }
.t2k-dc-diff { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; background: var(--k-surface); border: 2px solid var(--k-line); }
.t2k-dc-diff-label { font-size: 14px; font-weight: 800; color: var(--k-muted); }
.t2k-dc-diff-line { font-family: var(--k-display); font-size: clamp(20px, 3cqi, 26px); font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.t2k-dc-diff.is-letters .t2k-dc-diff-line { letter-spacing: .06em; }
.t2k-dc-tok { border-radius: 6px; }
.t2k-dc-tok.is-ok { color: var(--k-right-text); }
.t2k-dc-tok.is-bad { padding: 0 3px; background: var(--k-wrong-soft); color: var(--k-wrong-text); text-decoration: line-through; text-decoration-thickness: 2px; }
.t2k-dc-tok.is-miss { padding: 0 3px; background: var(--k-amber-soft); color: var(--k-amber-text); border-bottom: 3px solid var(--k-cta); }
.t2k-dc-tok.is-gap { display: inline-block; min-width: 1.6em; height: 1em; border-bottom: 3px solid var(--k-cta); vertical-align: baseline; }
.t2k-dc-diff.is-letters .t2k-dc-tok.is-gap { min-width: .8em; }
.t2k-dc-tip { text-align: center; font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
    .t2k-dc-play.is-speaking { animation: t2k-dc-pulse 1.1s ease-in-out infinite; }
}
@keyframes t2k-dc-pulse { 50% { box-shadow: 0 6px 0 var(--k-primary-deep), 0 0 0 14px var(--k-primary-soft); } }

@container (max-width: 620px) {
    .t2k-dc-play { width: 108px; height: 108px; }
    .t2k-dc-form { flex-direction: column; }
    .t2k-dc-form .t2k-btn-lg { width: 100%; }
    .t2k-dc-tip { display: none; }
}

/* --- word-balloons --- */

/* Word Balloons: balloons + basket, letter slots, A–Z keyboard */
.t2k-hm { align-items: stretch; }
.t2k-hm-top { display: grid; grid-template-columns: minmax(170px, 260px) minmax(0, 1fr); align-items: center; gap: clamp(16px, 4cqi, 40px); }
.t2k-hm-art { display: flex; justify-content: center; }
.t2k-hm-picture { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.t2k-hm-skin { fill: var(--hm-fill); }
.t2k-hm-string { fill: none; stroke: var(--k-faint); stroke-width: 1.5; }
.t2k-hm-rope { fill: none; stroke: var(--k-tone-2-solid); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.t2k-hm-wicker { fill: var(--k-tone-2-solid); }
.t2k-hm-weave { fill: none; stroke: var(--k-amber-soft); stroke-width: 2; opacity: .55; }
.t2k-hm-ground { fill: var(--k-track); }
.t2k-hm-balloon { transform-box: fill-box; transform-origin: center; }
.t2k-hm-basket { transform-box: fill-box; transform-origin: center bottom; }
.t2k-hm-balloon.is-popped, .t2k-hm-balloon.is-popping { opacity: 0; transform: scale(0); }
.t2k-hm-basket.is-down, .t2k-hm-basket.is-dropping { transform: translateY(12px) rotate(-6deg); }

.t2k-hm-main { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; }
.t2k-hm-clue { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.t2k-hm-clue-text { margin: 0; max-width: 640px; font-family: var(--k-display); font-size: clamp(20px, 3.2cqi, 30px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.t2k-hm-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; max-width: 100%; }
.t2k-hm-word { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.t2k-hm-slot, .t2k-hm-mark {
    display: inline-flex; align-items: flex-end; justify-content: center;
    width: clamp(28px, 5.4cqi, 46px); height: clamp(38px, 7cqi, 58px); padding-bottom: 2px;
    font-family: var(--k-display); font-size: clamp(22px, 4.2cqi, 36px); font-weight: 800; line-height: 1; color: var(--k-text);
}
.t2k-hm-slot { border-bottom: 4px solid var(--k-primary); border-radius: 4px; }
.t2k-hm-slot.is-known { color: var(--k-primary-text); }
.t2k-hm-slot.is-missed { color: var(--k-wrong-text); border-color: var(--k-wrong); }
.t2k-hm-mark { width: auto; min-width: 14px; color: var(--k-muted); }

.t2k-hm-keys { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 780px; margin: 0 auto; }
.t2k-hm-key {
    min-height: 50px; padding: 0; border: 2px solid var(--k-border); border-radius: 12px;
    background: var(--k-bg); color: var(--k-text); box-shadow: 0 3px 0 var(--k-border);
    font-family: var(--k-display); font-size: 21px; font-weight: 800; line-height: 1;
    transition: transform .12s ease-out, background-color .15s ease;
}
.t2k-hm-key:hover:not(:disabled) { transform: translateY(-2px); background: var(--k-primary-soft); }
.t2k-hm-key:disabled { cursor: default; box-shadow: none; }
.t2k-hm-key:disabled:not(.is-right):not(.is-wrong) { opacity: .5; }
.t2k-hm-key.is-right { background: var(--k-right-soft); border-color: var(--k-right); color: var(--k-right-text); }
.t2k-hm-key.is-wrong { background: var(--k-wrong-soft); border-color: var(--k-wrong-soft); color: var(--k-wrong-text); text-decoration: line-through; opacity: .7; }
.t2k-hm-keynote { font-size: 14px; }

@container (max-width: 620px) {
    .t2k-hm-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .t2k-hm-picture { max-width: 170px; }
    .t2k-hm-keys { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
    .t2k-hm-keynote { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .t2k-hm-balloon.is-popping { animation: t2k-hm-pop .45s ease-out both; }
    .t2k-hm-basket.is-dropping { animation: t2k-hm-drop .9s cubic-bezier(.4, 0, .6, 1.4) both; }
    .t2k-hm-balloon:not(.is-popped):not(.is-popping):nth-of-type(odd) { animation: t2k-hm-sway 3.4s ease-in-out infinite; }
}
@keyframes t2k-hm-pop { 0% { opacity: 1; transform: scale(1); } 35% { opacity: 1; transform: scale(1.28); } 100% { opacity: 0; transform: scale(.15); } }
@keyframes t2k-hm-drop { from { transform: none; } }
@keyframes t2k-hm-sway { 50% { transform: translateY(-3px); } }

/* --- word-table --- */

/* Word Table: a table with boxes to fill from the bank or by typing */
.t2k-wt-bank { min-height: 64px; }
.t2k-wt-scroll { overflow-x: auto; border-radius: 20px; border: 2px solid var(--k-line); background: var(--k-bg); -webkit-overflow-scrolling: touch; }
.t2k-wt-table { width: 100%; min-width: calc(var(--wt-cols, 3) * 140px); border-collapse: separate; border-spacing: 0; font-size: clamp(16px, 2.2cqi, 20px); }
.t2k-wt-table th, .t2k-wt-table td { padding: 8px 10px; border-bottom: 2px solid var(--k-line); text-align: left; vertical-align: middle; }
.t2k-wt-table tbody tr:last-child > * { border-bottom: 0; }
.t2k-wt-head { background: var(--k-tone-5-bg); color: var(--k-tone-5-fg); font-family: var(--k-display); font-size: clamp(15px, 2cqi, 18px); font-weight: 800; line-height: 1.2; }
.t2k-wt-table tbody th { font-family: var(--k-display); font-weight: 800; color: var(--k-text); }
.t2k-wt-cell { font-weight: 700; overflow-wrap: anywhere; }
/* The first column stays in view while the table scrolls sideways. */
.t2k-wt-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--k-surface); border-right: 2px solid var(--k-line); }
.t2k-wt-table thead tr > :first-child { background: var(--k-tone-5-bg); z-index: 2; }
.t2k-wt-cell.is-blank { transition: background-color .15s ease; }
.t2k-wt-cell.is-target { background: var(--k-primary-soft); }
.t2k-wt-input { display: block; width: 100%; min-width: 7ch; min-height: 44px; margin: 0; font-size: inherit; text-align: left; }

@container (max-width: 620px) {
    .t2k-wt-table { min-width: calc(var(--wt-cols, 3) * 118px); }
    .t2k-wt-table th, .t2k-wt-table td { padding: 6px 8px; }
}

/* --- category-board --- */

/* --- Category Board --- */
.t2k-cb-setup { display: flex; flex-direction: column; gap: 14px; width: min(560px, 100%); text-align: left; }
.t2k-cb-field { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.t2k-cb-field-label { font-size: 16px; font-weight: 800; color: var(--k-muted); }
.t2k-cb-counts { display: inline-flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--k-soft); }
.t2k-cb-count {
    min-width: 52px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px;
    background: transparent; color: var(--k-muted);
    font-family: var(--k-display); font-size: 21px; font-weight: 800;
}
.t2k-cb-count[aria-pressed="true"] { background: var(--k-primary); color: #FFFFFF; box-shadow: 0 3px 0 var(--k-primary-deep); }
.t2k-cb-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.t2k-cb-name {
    display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 8px 6px 6px;
    border-radius: 18px; background: var(--tone-bg); color: var(--tone-fg);
}
.t2k-cb-swatch {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 42px; height: 42px; border-radius: 13px; background: var(--tone-solid); color: #FFFFFF;
    font-family: var(--k-display); font-size: 20px; font-weight: 800;
}
.t2k-cb-name input {
    flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 2px solid transparent; border-radius: 12px;
    background: var(--k-bg); color: var(--k-text); font: inherit; font-size: 17px; font-weight: 700;
}
.t2k-cb-name input::placeholder { color: var(--k-faint); }
.t2k-cb-name input:focus { outline: none; border-color: var(--k-focus); }
.t2k-cb-toggle {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 16px;
    border: 2px solid var(--k-border); border-radius: 18px; background: var(--k-bg); color: var(--k-text); text-align: left;
}
.t2k-cb-switch {
    position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--k-track);
    transition: background-color .15s ease;
}
.t2k-cb-switch::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
    background: #FFFFFF; box-shadow: 0 2px 4px rgba(15, 23, 42, .25); transition: transform .15s ease;
}
.t2k-cb-toggle[aria-checked="true"] .t2k-cb-switch { background: var(--k-right); }
.t2k-cb-toggle[aria-checked="true"] .t2k-cb-switch::after { transform: translateX(22px); }
.t2k-cb-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.t2k-cb-toggle-text strong { font-size: 17px; font-weight: 800; }
.t2k-cb-toggle-text small { font-size: 14px; font-weight: 600; color: var(--k-muted); }

/* Scoreboard */
.t2k-cb-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.t2k-cb-team {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px;
    padding: 10px 12px 12px; border: 3px solid transparent; border-radius: 22px;
    background: var(--tone-bg); color: var(--tone-fg); box-shadow: 0 5px 0 var(--tone-solid);
    transition: border-color .15s ease, transform .15s ease;
}
.t2k-cb-team.is-turn { border-color: var(--tone-solid); transform: translateY(-3px); }
.t2k-cb-team-name {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
    border: 0; border-radius: 12px; background: transparent; color: inherit; text-align: left;
    font-family: var(--k-display); font-size: 20px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere;
}
.t2k-cb-team-name > span:first-child { min-width: 0; }
.t2k-cb-turn-tag {
    display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--tone-solid); color: #FFFFFF;
    font-family: var(--k-body); font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.t2k-cb-score {
    padding: 0 4px; font-family: var(--k-display); font-size: clamp(36px, 5.5cqi, 56px); font-weight: 800; line-height: 1;
    color: var(--k-text); font-variant-numeric: tabular-nums;
}
.t2k-cb-team.is-flash .t2k-cb-score { animation: t2k-cb-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes t2k-cb-pop { 40% { transform: scale(1.25); } }
.t2k-cb-adjust { display: flex; gap: 6px; }
.t2k-cb-adjust .t2k-iconbtn { background: var(--k-bg); color: var(--tone-fg); }

/* Board */
.t2k-cb-board { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 12px; }
.t2k-cb-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t2k-cb-head {
    display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 8px 10px;
    border-radius: 18px; background: var(--tone-solid); color: #FFFFFF; text-align: center;
    font-family: var(--k-display); font-size: clamp(17px, 2.2cqi, 23px); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere;
}
.t2k-cb-cell {
    display: flex; align-items: center; justify-content: center; min-height: clamp(60px, 9cqi, 92px);
    border: 0; border-radius: 18px; background: var(--tone-bg); color: var(--tone-fg); box-shadow: 0 5px 0 var(--tone-solid);
    font-family: var(--k-display); font-size: clamp(28px, 4.4cqi, 46px); font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.t2k-cb-cell:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 0 var(--tone-solid); }
.t2k-cb-cell.is-opened { background: var(--k-soft); color: var(--k-faint); box-shadow: 0 3px 0 var(--k-border); cursor: default; }

/* Panel */
.t2k-cb-panel { width: min(720px, 100%); }
.t2k-cb-panel-tools { display: flex; align-items: center; gap: 8px; }
.t2k-cb-qtools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.t2k-cb-award { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 2px solid var(--k-line); }
.t2k-cb-award-label { font-size: 15px; font-weight: 800; color: var(--k-muted); }
.t2k-cb-award-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.t2k-cb-award-btn { flex: 1 1 150px; background: var(--tone-bg); color: var(--tone-fg); box-shadow: 0 4px 0 var(--tone-solid); white-space: normal; }
.t2k-cb-award-btn:hover:not(:disabled) { background: var(--tone-bg); filter: brightness(.96); }
.t2k-cb-award-btn > span { overflow-wrap: anywhere; }
.t2k-cb-award-score { font-family: var(--k-body); font-size: 14px; font-weight: 800; opacity: .8; }
.t2k-cb-badge {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
    background: var(--k-amber-soft); color: var(--k-amber-text); font-size: 14px; font-weight: 800;
}
.t2k-cb-surprise {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px; border-radius: 22px; text-align: center;
    background: var(--k-amber-soft); color: var(--k-amber-text);
}
.t2k-cb-surprise.is-steal { background: var(--k-tone-3-bg); color: var(--k-tone-3-fg); }
.t2k-cb-surprise.is-gift { background: var(--k-right-soft); color: var(--k-right-text); }
.t2k-cb-surprise-icon {
    display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 28px;
    background: var(--k-bg); box-shadow: 0 6px 0 rgba(15, 23, 42, .12);
}
.t2k-cb-surprise-title { margin: 0; font-family: var(--k-display); font-size: clamp(28px, 4.6cqi, 42px); font-weight: 800; line-height: 1.1; color: var(--k-text); overflow-wrap: anywhere; }
.t2k-cb-surprise-text { margin: 0; font-size: 18px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
    .t2k-cb-surprise-icon { animation: t2k-cb-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
}

/* Ranking */
.t2k-cb-podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; width: min(640px, 100%); }
.t2k-cb-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; }
.t2k-cb-crown { color: var(--k-cta); }
.t2k-cb-step-name { max-width: 100%; font-family: var(--k-display); font-size: clamp(17px, 2.4cqi, 22px); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.t2k-cb-step-score { font-family: var(--k-display); font-size: clamp(26px, 4cqi, 38px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.t2k-cb-step-block {
    display: flex; align-items: flex-start; justify-content: center; width: 100%; height: 70px; padding-top: 10px;
    border-radius: 18px 18px 6px 6px; background: var(--tone-bg); color: var(--tone-fg); box-shadow: inset 0 -6px 0 var(--tone-solid);
    font-family: var(--k-display); font-size: 30px; font-weight: 800;
}
.t2k-cb-step.is-rank-1 .t2k-cb-step-block { height: 150px; background: var(--tone-solid); color: #FFFFFF; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18); }
.t2k-cb-step.is-rank-2 .t2k-cb-step-block { height: 112px; }
.t2k-cb-step.is-rank-3 .t2k-cb-step-block { height: 84px; }
@media (prefers-reduced-motion: no-preference) {
    .t2k-cb-step-block { animation: t2k-cb-rise .6s cubic-bezier(.3, 1.3, .5, 1) both; transform-origin: bottom; }
}
@keyframes t2k-cb-rise { from { transform: scaleY(.2); opacity: 0; } }

@container (max-width: 620px) {
    .t2k-cb-names { grid-template-columns: minmax(0, 1fr); }
    .t2k-cb-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .t2k-cb-team { padding: 6px 8px 8px; border-radius: 18px; }
    .t2k-cb-team-name { font-size: 17px; }
    .t2k-cb-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .t2k-cb-head { min-height: 52px; }
    .t2k-cb-step-block { height: 54px; font-size: 24px; }
    .t2k-cb-step.is-rank-1 .t2k-cb-step-block { height: 110px; }
    .t2k-cb-step.is-rank-2 .t2k-cb-step-block { height: 84px; }
    .t2k-cb-step.is-rank-3 .t2k-cb-step-block { height: 66px; }
}
@container (max-width: 380px) {
    .t2k-cb-teams { grid-template-columns: minmax(0, 1fr); }
    .t2k-cb-podium { gap: 6px; }
}

/* --- escape-room --- */

/* --- Escape Room --- */
.t2k-er-times { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(560px, 100%); }
.t2k-er-times-label { font-size: 16px; font-weight: 800; color: var(--k-muted); }
.t2k-er-time-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px; border-radius: 16px; background: var(--k-soft); }
.t2k-er-time {
    min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px;
    background: transparent; color: var(--k-muted); font-size: 16px; font-weight: 800;
}
.t2k-er-time[aria-pressed="true"] { background: var(--k-primary); color: #FFFFFF; box-shadow: 0 3px 0 var(--k-primary-deep); }

/* Lock path */
.t2k-er-path { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.t2k-er-step {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    width: 58px; padding: 6px 4px 4px; border-radius: 16px; color: var(--k-dash);
    transition: background-color .2s ease;
}
.t2k-er-step.is-current { background: var(--k-primary-soft); color: var(--k-primary); }
.t2k-er-step.is-open { color: var(--k-right); }
.t2k-er-step-num { font-size: 13px; font-weight: 800; color: var(--k-faint); }
.t2k-er-step.is-current .t2k-er-step-num { color: var(--k-primary-text); }
.t2k-er-step.is-open .t2k-er-step-num { color: var(--k-right-text); }
.t2k-er-lock { width: 44px; height: 44px; overflow: visible; }
.t2k-er-shackle { transform-box: view-box; transform-origin: 33px 23px; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.t2k-er-step.is-open .t2k-er-shackle { transform: translateY(-5px) rotate(28deg); }
.t2k-er-step.is-opening .t2k-er-shackle { animation: t2k-er-unlock .55s cubic-bezier(.3, 1.5, .5, 1); }
.t2k-er-step.is-opening .t2k-er-lock { animation: t2k-er-wiggle .55s ease-out; }
@keyframes t2k-er-unlock { from { transform: none; } }
@keyframes t2k-er-wiggle { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(1.1) rotate(4deg); } }

/* Question card */
.t2k-er-card {
    display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(820px, 100%); margin: 0 auto;
    padding: 22px clamp(14px, 3cqi, 28px); border-radius: 26px; background: var(--k-surface); border: 2px solid var(--k-line);
    text-align: center;
}
.t2k-er-question { font-size: clamp(24px, 3.8cqi, 40px); }
.t2k-er-hint {
    display: inline-flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 14px;
    background: var(--k-amber-soft); color: var(--k-amber-text); font-size: 16px; font-weight: 700; text-align: left; overflow-wrap: anywhere;
}
.t2k-er-hint svg { margin-top: 2px; }
.t2k-er-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.t2k-er-input {
    flex: 1 1 260px; min-width: 0; max-width: 520px; min-height: 56px; padding: 0 18px;
    border: 3px solid var(--k-border); border-radius: 18px; background: var(--k-bg); color: var(--k-text);
    font: inherit; font-family: var(--k-display); font-size: 22px; font-weight: 700; text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
}
.t2k-er-input::placeholder { color: var(--k-faint); font-weight: 600; }
.t2k-er-input:focus { outline: none; border-color: var(--k-focus); box-shadow: 0 0 0 4px var(--k-primary-soft); }
.t2k-er-input.is-wrong { border-color: var(--k-wrong); background: var(--k-wrong-soft); }
.t2k-er-input.is-right { border-color: var(--k-right); background: var(--k-right-soft); color: var(--k-right-text); }
.t2k-er-note { margin: 0; min-height: 1.45em; font-size: 16px; font-weight: 800; color: var(--k-muted); }
.t2k-er-note:empty { min-height: 0; }
.t2k-er-note.is-wrong { color: var(--k-wrong-text); }
.t2k-er-note.is-right { color: var(--k-right-text); }

/* Escaped */
.t2k-er-final { align-items: center; text-align: center; }
.t2k-er-chest { width: clamp(170px, 30cqi, 240px); }
.t2k-er-chest-svg { width: 100%; height: auto; overflow: visible; }
.t2k-er-lid { transform-box: view-box; transform-origin: 26px 66px; transform: translateY(-14px) rotate(-18deg); }
.t2k-er-coins, .t2k-er-rays { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .t2k-er-lid { animation: t2k-er-lid .7s .25s cubic-bezier(.3, 1.4, .5, 1) both; }
    .t2k-er-coins { animation: t2k-er-show .4s .55s ease-out both; }
    .t2k-er-rays { animation: t2k-er-show .5s .6s ease-out both, t2k-er-glow 2.4s 1.1s ease-in-out infinite; }
}
@keyframes t2k-er-lid { from { transform: none; } }
@keyframes t2k-er-show { from { opacity: 0; transform: translateY(10px); } }
@keyframes t2k-er-glow { 50% { opacity: .55; } }

@container (max-width: 620px) {
    .t2k-er-step { width: 48px; padding: 4px 2px 2px; }
    .t2k-er-lock { width: 36px; height: 36px; }
    .t2k-er-card { padding: 16px 12px; border-radius: 20px; }
    .t2k-er-row .t2k-btn { flex: 1 1 100%; }
    .t2k-er-input { flex-basis: 100%; max-width: none; font-size: 20px; }
}

/* --- END OF FILE css/activity.css --- */
