.game-nav {
    text-align: left;
    margin-bottom: 10px;
}
.game-nav-link {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s;
}
.game-nav-link:hover { background: #2980b9; }
.game-container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
}
.game-header {
    text-align: center;
    margin-bottom: 30px;
}
.game-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}
.game-header .subtitle {
    color: #888;
    font-size: 14px;
}
.game-score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}
.game-score-bar .score {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}
.game-score-bar .timer {
    font-size: 16px;
    color: #555;
}
.game-area {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    min-height: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.game-btn {
    display: inline-block;
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.game-btn-primary { background: #e74c3c; color: #fff; }
.game-btn-primary:hover { background: #c0392b; }
.game-btn-secondary { background: #3498db; color: #fff; }
.game-btn-secondary:hover { background: #2980b9; }
.game-btn-success { background: #27ae60; color: #fff; }
.game-btn-success:hover { background: #219a52; }
.game-btn-warning { background: #f39c12; color: #fff; }
.game-btn-warning:hover { background: #d68910; }
.game-btn-random { background: #9b59b6; color: #fff; }
.game-btn-random:hover { background: #8e44ad; }
.game-poem-link { display: inline-block; margin: 12px 0; padding: 6px 16px; background: #1abc9c; color: #fff; text-decoration: none; border-radius: 4px; font-size: 14px; transition: background 0.2s; }
.game-poem-link:hover { background: #16a085; }
.game-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.game-poem-display {
    font-size: 18px;
    line-height: 2.2;
    text-align: center;
    padding: 20px;
    font-family: "STKaiti", "KaiTi", serif;
    color: #2c3e50;
}
.game-poem-display .blank-input {
    width: 2em;
    border: none;
    border-bottom: 2px solid #3498db;
    text-align: center;
    font-size: 18px;
    font-family: "STKaiti", "KaiTi", serif;
    outline: none;
    background: transparent;
    margin: 0 2px;
}
.game-poem-display .blank-input.correct { border-bottom-color: #27ae60; color: #27ae60; }
.game-poem-display .blank-input.wrong { border-bottom-color: #e74c3c; color: #e74c3c; }
.game-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.game-option {
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: all 0.2s;
    font-family: "STKaiti", "KaiTi", serif;
}
.game-option:hover { border-color: #3498db; background: #ebf5fb; }
.game-option.correct { border-color: #27ae60; background: #d5f5e3; color: #27ae60; }
.game-option.wrong { border-color: #e74c3c; background: #fadbd8; color: #e74c3c; }
.game-option:disabled { cursor: not-allowed; }
.game-result {
    text-align: center;
    padding: 40px;
}
.game-result .final-score { font-size: 48px; font-weight: bold; color: #e74c3c; }
.game-result .result-detail { font-size: 18px; color: #555; margin: 20px 0; }
.game-hint {
    color: #888;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px;
    background: #fef9e7;
    border-radius: 6px;
    border-left: 3px solid #f39c12;
}
.game-hint strong { color: #e67e22; }
.game-toolbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.game-progress {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 15px 0;
}
.game-progress .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: #e0e0e0; display: inline-block;
}
.game-progress .dot.active { background: #3498db; }
.game-progress .dot.correct { background: #27ae60; }
.game-progress .dot.wrong { background: #e74c3c; }
.game-sortable-list {
    list-style: none;
    padding: 0;
}
.game-sortable-list li {
    padding: 12px 20px;
    margin: 8px 0;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    font-family: "STKaiti", "KaiTi", serif;
    text-align: center;
    transition: all 0.2s;
    cursor: grab;
}
.game-sortable-list li:hover { background: #ebf5fb; }
.game-sortable-list li.dragging { opacity: 0.5; }
.game-sortable-list li.drag-over { border-color: #3498db; background: #d4e6f1; }
.game-sortable-list li .drag-handle { margin-right: 10px; color: #aaa; cursor: grab; user-select: none; }
.game-sortable-list li.correct { background: #d5f5e3; border-color: #27ae60; }
.game-sortable-list li.wrong { background: #fadbd8; border-color: #e74c3c; }
.game-grid {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}
.game-grid-4 { grid-template-columns: repeat(4, 1fr); }
.game-card {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    transition: all 0.3s;
    user-select: none;
}
.game-card.matched { background: #d5f5e3; border-color: #27ae60; cursor: default; opacity: 0.6; }
.game-card.flipped { background: #fff; border-color: #3498db; }
.game-card.flipped .card-front { display: block; }
.game-card.flipped .card-back { display: none; }
.game-card .card-front { display: none; }
.game-card .card-back { font-size: 24px; color: #aaa; }
.game-wordle-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin: 20px 0;
}
.game-wordle-row { display: flex; gap: 6px; }
.game-wordle-cell {
    width: 50px; height: 50px;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s;
}
.game-wordle-cell.correct { background: #27ae60; border-color: #27ae60; color: #fff; }
.game-wordle-cell.present { background: #f39c12; border-color: #f39c12; color: #fff; }
.game-wordle-cell.absent { background: #95a5a6; border-color: #95a5a6; color: #fff; }
.game-wordle-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 300px;
    margin: 10px auto;
    display: block;
}
.game-input-area {
    text-align: center;
    margin: 20px 0;
}
.game-input-area input {
    padding: 10px 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 300px;
    max-width: 90%;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.game-input-area input:focus { border-color: #3498db; }
.game-feihualing-display {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
.game-feihualing-item {
    padding: 8px 12px;
    margin: 4px 0;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 15px;
}
.game-feihualing-item.system { border-left-color: #e74c3c; background: #fef9e7; }
.game-feihualing-item.player1 { border-left-color: #3498db; }
.game-feihualing-item.player2 { border-left-color: #e67e22; }
.emoji-big {
    font-size: 64px;
    text-align: center;
    padding: 30px;
    line-height: 1.8;
    letter-spacing: 8px;
}
.game-select {
    padding: 8px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    margin: 0 10px;
}
.game-select:focus { border-color: #3498db; }
.game-difficulty {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}
.game-difficulty .diff-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.game-difficulty .diff-btn.active { border-color: #e74c3c; background: #fef9e7; color: #e74c3c; font-weight: bold; }
.game-difficulty .diff-btn:hover { border-color: #e74c3c; }
.game-hall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.game-hall-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}
.game-hall-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #e74c3c;
    text-decoration: none;
    color: #333;
}
.game-hall-item .icon { font-size: 40px; margin-bottom: 12px; }
.game-hall-item .name { font-size: 15px; font-weight: bold; text-align: center; }
.game-hall-item .desc { font-size: 12px; color: #888; text-align: center; margin-top: 5px; }
.game-back-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 20px;
    color: #555;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s;
}
.game-back-btn:hover { border-color: #e74c3c; color: #e74c3c; text-decoration: none; }
.game-creator-panel {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    font-size: 16px;
    font-family: "STKaiti", "KaiTi", serif;
    line-height: 2;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
}
.game-meter-result {
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 15px;
}
.game-meter-result.pass { background: #d5f5e3; color: #27ae60; }
.game-meter-result.fail { background: #fadbd8; color: #e74c3c; }
@media (max-width: 768px) {
    .game-options { grid-template-columns: 1fr; }
    .game-hall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .game-hall-item { padding: 15px 10px; }
    .game-hall-item .icon { font-size: 30px; }
    .game-poem-display { font-size: 16px; }
    .game-wordle-cell { width: 40px; height: 40px; font-size: 20px; }
}
.game-description {
    margin-top: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    text-align: center;
}
.game-description h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
}
.game-description h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 15px 0 10px;
}
.game-description p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}
.game-seo-content {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}
.game-seo-content h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 12px;
}
.game-share-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.game-share-modal {
    background: #fff; border-radius: 12px; padding: 30px;
    max-width: 520px; width: 90%; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.game-share-modal h3 { margin-top: 0; margin-bottom: 15px; color: #333; }
.game-share-modal p { color: #666; font-size: 14px; margin-bottom: 15px; }
.game-share-url {
    background: #f5f5f5; padding: 12px; border-radius: 6px;
    font-size: 13px; word-break: break-all; margin-bottom: 15px;
    border: 1px solid #ddd; font-family: monospace;
}
.game-share-modal .game-btn { margin-right: 10px; margin-bottom: 10px; }
.game-share-detail {
    margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee;
}
.game-share-detail h4 { color: #e74c3c; margin-bottom: 12px; }
.game-share-detail .share-poem {
    padding: 10px; margin: 6px 0; background: #fafafa;
    border-left: 3px solid #3498db; border-radius: 4px;
    font-family: "STKaiti", "KaiTi", serif; line-height: 1.8;
}
.game-toolbar .game-btn-warning {
    background: #f39c12; color: #fff;
}
.game-toolbar .game-btn-warning:hover { background: #d68910; }
