* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
}

:root {
    --primary: #c62828;
    --secondary: #ffd54f;
    --accent: #1565c0;
    --light: #fff9c4;
    --dark: #1a237e;
    --text: #333;
    --text-light: #666;
}

body {
    /*background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);*/
    background: linear-gradient(135deg, #2380dd, #8824e6, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff8a00, #da1b60);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #da1b60, #ff8a00);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #ff8a00, #da1b60, #ff8a00);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    color: #FFD700;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.2rem;
    color: #FFEBCD;
    margin-bottom: 10px;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.search-box {
    display: flex;
    width: 80%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 1.2rem;
    background: transparent;
}

.search-box button {
    padding: 15px 25px;
    background: linear-gradient(to right, #ff8a00, #da1b60);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box button:hover {
    background: linear-gradient(to right, #da1b60, #ff8a00);
    transform: scale(1.05);
}

.feature-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.feature-btn.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
}

.stats {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #FFEBCD;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.idiom-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.idiom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #ff8a00, #da1b60);
}

.idiom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.idiom-text {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.pinyin {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #FFEBCD;
    line-height: 1.8;
}

.meaning {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #E6E6FA;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.source {
    font-size: 0.9rem;
    color: #D3D3D3;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.example {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: #F0E68C;
}

.loading {
    text-align: center;
    font-size: 1.5rem;
    margin: 50px 0;
    display: none;
}

.no-results {
    text-align: center;
    font-size: 1.5rem;
    margin: 50px 0;
    display: none;
    color: #FFB6C1;
}

.data-status {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
    color: #FFEBCD;
}

.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 15px 30px;
    background: linear-gradient(to right, #ff8a00, #da1b60);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.load-more-btn:hover {
    background: linear-gradient(to right, #da1b60, #ff8a00);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.load-more-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #D3D3D3;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box {
        width: 95%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .idiom-card {
        padding: 20px;
    }

    .idiom-text {
        font-size: 1.8rem;
    }

    .feature-buttons {
        gap: 10px;
    }

    .feature-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

.modal-idiom-text {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.modal-pinyin {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #FFEBCD;
}

.modal-meaning {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #E6E6FA;
    margin-bottom: 20px;
}

.modal-source {
    font-size: 1rem;
    color: #D3D3D3;
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-example {
    font-size: 1.1rem;
    color: #F0E68C;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* 拼音高亮 */
.pinyin-highlight {
    color: #FFD700;
    font-weight: bold;
}

/* 加载进度条 */
.progress-container {
    width: 80%;
    max-width: 600px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #ff8a00, #da1b60);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

/* 随机成语特殊样式 */
.random-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.random-title {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 10px;
    text-align: center;
}

/* 成语接龙样式 */
.chain-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chain-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700;
}

.chain-rules {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center; /* 使容器内的行内/行内块元素、文本居中 */
}

.chain-game {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.chain-status {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: 10px;
}

.chain-score, .chain-round {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
}

.chain-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.chain-current {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 10px;
}

.chain-prompt {
    font-size: 1.2rem;
    color: #FFEBCD;
}

.chain-input-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    gap: 10px;
}

.chain-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
}

.chain-submit {
    padding: 15px 25px;
    background: linear-gradient(to right, #ff8a00, #da1b60);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chain-submit:hover {
    background: linear-gradient(to right, #da1b60, #ff8a00);
    transform: scale(1.05);
}

.chain-history {
    width: 100%;
    max-width: 600px;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.chain-history-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #FFD700;
    text-align: center;
}

.chain-history-list {
    list-style-type: none;
}

.chain-history-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.chain-history-idiom {
    font-weight: bold;
    color: #FFD700;
}

.chain-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.chain-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.chain-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.chain-btn.restart {
    background: linear-gradient(to right, #ff8a00, #da1b60);
}

.chain-btn.hint {
    background: linear-gradient(to right, #4CAF50, #2E7D32);
}

.chain-btn.exit {
    background: rgba(255, 0, 0, 0.3);
}

.chain-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.chain-message.success {
    background: rgba(0, 255, 0, 0.2);
    color: #90EE90;
    display: block;
}

.chain-message.error {
    background: rgba(255, 0, 0, 0.2);
    color: #FFB6C1;
    display: block;
}

/* 补全成语样式 */
.completion-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.completion-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD700;
}

.completion-rules {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.completion-game {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.completion-status {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: 10px;
}

.completion-score, .completion-round {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
}

.completion-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.completion-idiom {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 15px;
    letter-spacing: 5px;
}

.completion-hint {
    font-size: 1.2rem;
    color: #FFEBCD;
    margin-bottom: 15px;
}

.completion-pinyin {
    font-size: 1.2rem;
    color: #FFEBCD;
    margin-bottom: 15px;
}

.completion-input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    gap: 15px;
}

.completion-mode-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.completion-mode-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.completion-mode-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.completion-mode-btn.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
}

.completion-difficulty-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.completion-difficulty-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.completion-difficulty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.completion-difficulty-btn.active {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
}

.completion-difficulty-btn.easy {
    background: rgba(76, 175, 80, 0.3);
}

.completion-difficulty-btn.medium {
    background: rgba(255, 152, 0, 0.3);
}

.completion-difficulty-btn.hard {
    background: rgba(244, 67, 54, 0.3);
}

.completion-input-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.completion-input {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

.completion-input:focus {
    border-color: #FFD700;
    outline: none;
}

.completion-submit {
    padding: 15px 25px;
    background: linear-gradient(to right, #ff8a00, #da1b60);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.completion-submit:hover {
    background: linear-gradient(to right, #da1b60, #ff8a00);
    transform: scale(1.05);
}

.completion-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.completion-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.completion-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.completion-btn.restart {
    background: linear-gradient(to right, #ff8a00, #da1b60);
}

.completion-btn.hint {
    background: linear-gradient(to right, #4CAF50, #2E7D32);
}

.completion-btn.exit {
    background: rgba(255, 0, 0, 0.3);
}

.completion-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.completion-message.success {
    background: rgba(0, 255, 0, 0.2);
    color: #90EE90;
    display: block;
}

.completion-message.error {
    background: rgba(255, 0, 0, 0.2);
    color: #FFB6C1;
    display: block;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #068df6 0%, #f44621 50%, #25d54d 100%);
    background-size: 200% 200%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
    0 0 40px rgba(102, 126, 234, 0.4),
    0 0 60px rgba(102, 126, 234, 0.2),
    0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientShift 3s ease infinite;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8),
    0 0 60px rgba(102, 126, 234, 0.6),
    0 0 90px rgba(102, 126, 234, 0.4),
    0 15px 35px rgba(0, 0, 0, 0.4);
    animation: gradientShift 3s ease infinite,
    pulse 1.5s ease infinite,
    borderGlow 2s ease infinite;
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
    transition: transform 0.1s ease;
}

/* 背景渐变动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(102, 126, 234, 0.4),
        0 0 60px rgba(102, 126, 234, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8),
        0 0 60px rgba(102, 126, 234, 0.6),
        0 0 90px rgba(102, 126, 234, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
        0 0 40px rgba(102, 126, 234, 0.4),
        0 0 60px rgba(102, 126, 234, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.3);
    }
}

/* 边框发光动画 */
@keyframes borderGlow {
    0%, 100% {
        border: 2px solid rgba(102, 126, 234, 0.8);
    }
    25% {
        border: 2px solid rgba(118, 75, 162, 0.8);
    }
    50% {
        border: 2px solid rgba(243, 88, 56, 0.8);
    }
    75% {
        border: 2px solid rgba(99, 102, 241, 0.8);
    }
}

/* 图标动画 */
.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

.completion-message.hint {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    display: block;
}

.chain-message.hint {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        width: 35px;
        height: 35px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    .chain-input-container,
    .completion-input-row {
        flex-direction: column;
    }

    .chain-status,
    .completion-status {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .search-box {
        width: 95%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .feature-buttons {
        gap: 10px;
    }

    .feature-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .completion-idiom {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .completion-input {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .completion-controls {
        flex-direction: column;
    }

    .chain-controls {
        flex-direction: column;
    }

    .completion-mode-selector,
    .completion-difficulty-selector {
        flex-wrap: wrap;
    }
}