/* Ducky Doubles — profile & history styles extracted from game.css. */

.duckydoubles-profile-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
}

.history-tile-badge {
    --history-tile-size: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--history-tile-size);
    height: var(--history-tile-size);
    position: relative;
}

.history-board-scroll {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 12px;
}

.history-board-scroll .history-game-board {
    margin: 0 auto;
    position: relative;
}

.duckydoubles-history-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.duckydoubles-history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.duckydoubles-history-table-head {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.duckydoubles-history-header {
    padding: 8px 12px;
    text-align: left;
}

.duckydoubles-history-header--right {
    text-align: right;
}

.duckydoubles-history-cell {
    padding: 8px 12px;
    vertical-align: middle;
}

.duckydoubles-history-cell--right {
    text-align: right;
}

.duckydoubles-history-cell--emphasis {
    font-weight: 600;
    color: #ffffff;
}

.duckydoubles-history-row {
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.duckydoubles-history-row--default:hover {
    background: rgba(255, 255, 255, 0.1);
}

.duckydoubles-history-row--highlight {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.duckydoubles-history-row--highlight:hover {
    background: rgba(96, 165, 250, 0.35);
}

.duckydoubles-history-row--ongoing {
    background: rgba(59, 130, 246, 0.12);
    border-color: transparent;
}

.duckydoubles-history-row--ongoing:hover {
    background: rgba(59, 130, 246, 0.2);
}

.duckydoubles-history-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.duckydoubles-history-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.duckydoubles-history-back-button {
    padding: 5.6px 12px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.duckydoubles-history-back-button:hover {
    background: rgba(255, 255, 255, 0.25);
}

.duckydoubles-history-back-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.duckydoubles-history-share-button {
    padding: 5.6px 16px;
    border-radius: 12px;
    border: none;
    background: rgba(250, 204, 21, 0.9);
    color: #581c87;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.duckydoubles-history-share-button:hover {
    background: rgba(250, 204, 21, 1);
    transform: translateY(-1px);
}

.duckydoubles-history-share-button:active {
    transform: translateY(0);
}

.duckydoubles-history-share-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.duckydoubles-history-share-feedback {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.duckydoubles-history-detail-card {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duckydoubles-history-detail-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.history-tile-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--history-tile-size, 44px);
    height: var(--history-tile-size, 44px);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 600;
}

.history-tile-fallback--board {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #10202f;
    font-weight: 700;
    font-size: 18px;
}
