/* Connections Game – Archive (Arabic/RTL) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Amiri:wght@400;700&display=swap');

#cg-archive-root {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    max-width: 500px;
    margin: 0 auto;
    padding: 12px 8px 32px;
    color: #1a1a1a;
    direction: ltr;
    background: #F9F9F9;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.cg-archive-header {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4d4d4;
    margin-bottom: 20px;
    direction: ltr;
}
.cg-archive-header h2 {
    font-family: 'Amiri', 'Cairo', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 2px;
    letter-spacing: 0;
    line-height: 1.5;
}
.cg-archive-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.cg-archive-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cg-archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #efefe6;
    border-radius: 8px;
    padding: 14px 16px;
    color: #1a1a1a;
    cursor: pointer;
    border: none;
    width: 100%;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 15px;
    text-align: right;
    direction: rtl;
    transition: background .15s, transform .1s;
}
.cg-archive-item:hover {
    background: #dedede;
    transform: translateX(3px);
}

.cg-archive-item-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 1.5;
}
.cg-archive-item-date {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    line-height: 1.5;
}
/* Arrow sits on the left side in RTL layout — points backward, acting as a go-forward cue */
.cg-archive-item-arrow {
    font-size: 18px;
    color: #888;
    flex-shrink: 0;
    margin-inline-start: 12px;
    display: inline-block;
}

#cg-archive-game-panel {
    margin-top: 24px;
    border-top: 2px solid #d4d4d4;
    padding-top: 20px;
}
.cg-archive-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 0 14px;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    direction: ltr;
    line-height: 1.5;
}
.cg-archive-back:hover { color: #444; }

.cg-archive-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
    line-height: 1.7;
}
