:root {
    --ttt-bg-a: #f7f4ee;
    --ttt-bg-b: #e8eff6;
    --ttt-ink: #0f172a;
    --ttt-muted: #526075;
    --ttt-line: rgba(148, 163, 184, 0.28);
    --ttt-card: rgba(255, 255, 255, 0.94);
    --ttt-accent: #0f6cbd;
    --ttt-accent-strong: #0b4f8a;
    --ttt-accent-soft: #e0f2fe;
    --ttt-gold-soft: #fff7d6;
    --ttt-gold-ink: #9a6700;
}

.tips-trick-test-page {
    position: relative;
    overflow: clip;
    padding-bottom: 48px;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 153, 0.45), transparent 32%),
        radial-gradient(circle at top right, rgba(147, 197, 253, 0.28), transparent 28%),
        linear-gradient(135deg, var(--ttt-bg-a), var(--ttt-bg-b));
}

.tips-trick-test-page::before,
.tips-trick-test-page::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.72;
}

.tips-trick-test-page::before {
    width: 260px;
    height: 260px;
    top: 84px;
    left: -90px;
    background: rgba(251, 191, 36, 0.18);
}

.tips-trick-test-page::after {
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: 48px;
    background: rgba(59, 130, 246, 0.12);
}

.tips-trick-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px 0;
}

.tips-trick-hero {
    text-align: center;
    margin-bottom: 24px;
}

.tips-trick-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--ttt-accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tips-trick-title {
    margin: 16px auto 10px;
    max-width: 760px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--ttt-ink);
}

.tips-trick-title span {
    display: inline-block;
    background: linear-gradient(135deg, #0b1f3a, #0f6cbd 72%, #1d4ed8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tips-trick-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--ttt-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.tips-trick-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
    margin-top: 28px;
}

.tips-trick-card {
    position: relative;
    width: min(100%, 560px);
    min-height: 700px;
    padding: 24px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.96)),
        var(--ttt-card);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 32px 70px -38px rgba(15, 23, 42, 0.42),
        0 12px 24px -18px rgba(15, 108, 189, 0.2);
    overflow: hidden;
}

.tips-trick-card[data-theme="speed"] {
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(255, 245, 233, 0.94)),
        var(--ttt-card);
}

.tips-trick-card[data-theme="logic"] {
    background:
        linear-gradient(180deg, rgba(243, 248, 255, 0.99), rgba(238, 245, 255, 0.95)),
        var(--ttt-card);
}

.tips-trick-card[data-theme="focus"] {
    background:
        linear-gradient(180deg, rgba(244, 251, 246, 0.98), rgba(237, 248, 241, 0.94)),
        var(--ttt-card);
}

.tips-trick-card::before {
    content: "";
    position: absolute;
    inset: -20% auto auto 68%;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
    pointer-events: none;
}

.tips-trick-card-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tips-trick-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.tips-trick-badge,
.tips-trick-counter {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.tips-trick-badge {
    padding: 8px 12px;
    color: var(--ttt-accent-strong);
    background: var(--ttt-accent-soft);
}

.tips-trick-counter {
    padding: 8px 11px;
    color: #41556f;
    background: rgba(241, 245, 249, 0.92);
}

.tips-trick-card-title {
    margin: 0 0 10px;
    color: var(--ttt-ink);
    font-size: 1.65rem;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.tips-trick-question {
    margin: 0 0 22px;
    color: #17263c;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.65;
}

.tips-trick-options {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.tips-trick-option {
    position: relative;
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid var(--ttt-line);
    background: rgba(255, 255, 255, 0.72);
    color: #18283b;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tips-trick-option::after {
    content: "";
    position: absolute;
    inset: auto 16px 12px auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: transparent;
    transition: transform 0.18s ease, background 0.18s ease;
}

.tips-trick-option:hover,
.tips-trick-option:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(15, 108, 189, 0.4);
    background: rgba(247, 251, 255, 0.96);
    box-shadow: 0 12px 24px -22px rgba(15, 108, 189, 0.55);
    outline: none;
}

.tips-trick-option.is-selected {
    border-color: rgba(15, 108, 189, 0.58);
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.94), rgba(239, 246, 255, 0.96));
}

.tips-trick-option.is-selected::after {
    background: linear-gradient(135deg, #0f6cbd, #2563eb);
    transform: scale(1.25);
}

.tips-trick-option.is-correct {
    border-color: rgba(22, 163, 74, 0.45);
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 252, 231, 0.96));
    box-shadow: 0 16px 28px -24px rgba(22, 163, 74, 0.55);
}

.tips-trick-option.is-correct .tips-trick-option-key {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

.tips-trick-option.is-wrong {
    border-color: rgba(220, 38, 38, 0.35);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(254, 226, 226, 0.96));
}

.tips-trick-option.is-wrong .tips-trick-option-key {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
}

.tips-trick-option-key {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(226, 232, 240, 0.95);
    color: #1e293b;
    font-weight: 800;
}

.tips-trick-option.is-selected .tips-trick-option-key {
    background: linear-gradient(135deg, var(--ttt-accent), #2563eb);
    color: #fff;
}

.tips-trick-option-label {
    display: block;
    line-height: 1.55;
    font-weight: 600;
}

.tips-trick-insight {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 250, 220, 0.95), rgba(255, 247, 210, 0.92));
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.tips-trick-insight-label {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--ttt-gold-ink);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tips-trick-insight-text,
.tips-trick-hint {
    color: #7c5200;
    line-height: 1.65;
}

.tips-trick-hint {
    margin-top: 10px;
    font-size: 0.95rem;
}

.tips-trick-solution-wrap {
    margin-top: 14px;
}

.tips-trick-btn-solution {
    width: 100%;
    min-width: 0;
    background: linear-gradient(135deg, #fff1cb, #ffe6a7 70%, #fff5d8);
    color: #7c5200;
    border: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: 0 18px 36px -28px rgba(245, 158, 11, 0.45);
}

.tips-trick-btn-audio {
    width: 100%;
    min-width: 0;
    margin-top: 10px;
    background: linear-gradient(135deg, #e0f2fe, #eff6ff 68%, #f8fbff);
    color: #0f4fa8;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 18px 36px -28px rgba(59, 130, 246, 0.38);
}

.tips-trick-solution {
    margin-top: 12px;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(255, 255, 255, 0.96) 35%, rgba(245, 158, 11, 0.08)),
        #fff;
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 40px -30px rgba(15, 23, 42, 0.28);
}

.tips-trick-solution-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tips-trick-solution-badge,
.tips-trick-solution-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.tips-trick-solution-badge {
    padding: 8px 12px;
    color: #155e75;
    background: rgba(207, 250, 254, 0.95);
}

.tips-trick-solution-status {
    padding: 8px 11px;
    color: #7c2d12;
    background: rgba(255, 237, 213, 0.96);
}

.tips-trick-solution-body {
    color: #334155;
    line-height: 1.75;
    font-size: 0.98rem;
}

.tips-trick-solution-body ol {
    margin: 0;
    padding-left: 1.2rem;
}

.tips-trick-solution-body li + li {
    margin-top: 0.45rem;
}

.tips-trick-solution-body p {
    margin: 0;
}

.tips-trick-audio-panel {
    margin-top: 12px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.5), rgba(255, 255, 255, 0.98) 36%, rgba(255, 247, 210, 0.45));
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 42px -30px rgba(15, 23, 42, 0.28);
}

.tips-trick-audio-state {
    margin-bottom: 12px;
}

.tips-trick-audio-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
}

.tips-trick-audio-pill.is-playing {
    background: #dcfce7;
    color: #166534;
}

.tips-trick-audio-pill.is-error {
    background: #fee2e2;
    color: #b91c1c;
}

.tips-trick-audio-block + .tips-trick-audio-block {
    margin-top: 12px;
}

.tips-trick-audio-block {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.tips-trick-audio-label {
    margin-bottom: 8px;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tips-trick-audio-question,
.tips-trick-audio-copy {
    color: #334155;
    line-height: 1.7;
}

.tips-trick-audio-options {
    display: grid;
    gap: 10px;
}

.tips-trick-audio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #334155;
}

.tips-trick-audio-option.is-correct {
    border-color: #86efac;
    background: #f0fdf4;
}

.tips-trick-audio-option-key {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
    flex: 0 0 auto;
}

.tips-trick-audio-option.is-correct .tips-trick-audio-option-key {
    background: #16a34a;
    color: #ffffff;
}

.tips-trick-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.tips-trick-feedback {
    min-height: 24px;
    color: #0f766e;
    font-size: 0.92rem;
    font-weight: 700;
}

.tips-trick-feedback.is-correct {
    color: #15803d;
}

.tips-trick-feedback.is-wrong {
    color: #b91c1c;
}

.tips-trick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tips-trick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.94rem;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tips-trick-btn:hover,
.tips-trick-btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.tips-trick-btn[disabled] {
    opacity: 0.46;
    cursor: not-allowed;
    transform: none;
}

.tips-trick-btn-secondary {
    background: rgba(241, 245, 249, 0.95);
    color: #1f2d3d;
}

.tips-trick-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0b1f3a, #0f6cbd);
    box-shadow: 0 18px 36px -24px rgba(15, 108, 189, 0.7);
}

.tips-trick-progress {
    display: flex;
    gap: 9px;
    justify-content: center;
    flex-wrap: wrap;
}

.tips-trick-progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.56);
    transition: width 0.2s ease, background 0.2s ease;
}

.tips-trick-progress-dot.is-active {
    width: 28px;
    background: linear-gradient(135deg, #0f6cbd, #2563eb);
}

.tips-trick-empty {
    width: min(100%, 680px);
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.95);
    text-align: center;
    box-shadow: 0 26px 64px -42px rgba(15, 23, 42, 0.35);
}

.tips-trick-empty h2 {
    margin: 0 0 10px;
    color: var(--ttt-ink);
}

.tips-trick-empty p {
    margin: 0;
    color: var(--ttt-muted);
    line-height: 1.7;
}

@media (max-width: 767px) {
    .tips-trick-shell {
        padding: 18px 14px 0;
    }

    .tips-trick-title {
        font-size: 2.2rem;
    }

    .tips-trick-subtitle {
        font-size: 0.96rem;
    }

    .tips-trick-card {
        min-height: 0;
        padding: 18px;
        border-radius: 28px;
    }

    .tips-trick-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .tips-trick-card-title {
        font-size: 1.42rem;
    }

    .tips-trick-question {
        font-size: 1.06rem;
    }

    .tips-trick-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tips-trick-actions {
        width: 100%;
    }

    .tips-trick-btn {
        flex: 1 1 0;
    }

    .tips-trick-solution-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
