:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.flash-messages {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
}

.flash-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.flash-text {
    flex: 1;
    text-align: center;
}

.flash-dismiss {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.flash-dismiss:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-error {
    background-color: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.flash-success {
    background-color: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #bbf7d0;
}

.flash-info {
    background-color: #eff6ff;
    color: var(--info-color);
    border: 1px solid #bfdbfe;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.auth-card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    margin-bottom: 1rem;
}

.dice-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 8px;
    gap: 4px;
}

.dice-icon .dot {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
}

.dice-icon .dot:nth-child(2),
.dice-icon .dot:nth-child(4) {
    visibility: hidden;
}

.auth-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header .subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--background-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    flex-direction: column;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.coming-soon {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.auth-footer .btn {
    width: 100%;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.app-header h1 {
    font-size: 1.1rem;
    margin: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    display: flex;
    align-items: center;
}

.dice-icon-small {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 4px;
    gap: 2px;
}

.dice-icon-small .dot {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
}

.dice-icon-small .dot:nth-child(2),
.dice-icon-small .dot:nth-child(4) {
    visibility: hidden;
}

.header-menu {
    position: relative;
}

.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.2s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.dropdown-item:hover {
    background: var(--background-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 500;
}

.user-info .btn-outline {
    color: white;
    border-color: white;
}

.user-info .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: var(--text-secondary);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.games-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.games-list {
    background: var(--card-background);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.games-list.empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Profile Page */
.profile-section {
    max-width: 500px;
    margin: 0 auto;
}

.profile-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-card {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.profile-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.password-section {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.password-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-form .btn {
    margin-top: 0.5rem;
}

.profile-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Quick Links */
.quick-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.quick-link:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.quick-link-icon {
    font-size: 1.25rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.5rem;
}

/* Games List */
.games-section {
    margin-bottom: 2rem;
}

.games-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.game-item:last-child {
    border-bottom: none;
}

.game-item:hover {
    background-color: var(--background-color);
}

a.game-item {
    cursor: pointer;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.game-name {
    font-weight: 600;
    color: var(--text-primary);
}

.game-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.game-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-waiting {
    background-color: #fef3c7;
    color: #92400e;
}

.status-playing {
    background-color: #d1fae5;
    color: #065f46;
}

.status-finished {
    background-color: #e5e7eb;
    color: #374151;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
}

/* Create Game Form */
.create-game-card {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}

.create-game-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-actions .btn {
    flex: 1;
}

/* Game View */
.game-header {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.game-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.game-title h2 {
    font-size: 1.5rem;
}

.game-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-settings {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
}

.game-content {
    display: grid;
    gap: 1.5rem;
}

.players-section {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.players-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--background-color);
}

.player-item.current-player {
    border: 2px solid var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.player-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.player-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.host-badge {
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.25rem;
    font-weight: 500;
}

.player-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.waiting-section {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.waiting-message {
    margin-bottom: 1.5rem;
}

.waiting-message p {
    margin-bottom: 0.5rem;
}

.waiting-message .hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.action-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.game-board-placeholder {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--text-secondary);
}

.back-link {
    margin-top: 2rem;
    text-align: center;
}

/* Game Play Styles */
.game-play-content {
    padding: 1rem;
}

.game-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.round-info {
    font-weight: 600;
    color: var(--primary-color);
}

.score-info {
    font-weight: 500;
    color: var(--text-secondary);
}

.dice-section {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    text-align: center;
}

.dice-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.dice-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dice {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.dice-empty {
    background: var(--background-color);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.dice-total {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.waiting-text {
    color: var(--text-secondary);
    font-style: italic;
}

.tiles-section {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.tiles-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

.tiles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tile {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tile:hover:not(:disabled) {
    transform: scale(1.05);
}

.tile-available {
    background: white;
}

.tile-flipped {
    background: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: not-allowed;
}

.tile-selected {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.tile:disabled {
    cursor: not-allowed;
}

.flip-controls, .pass-controls {
    text-align: center;
    margin-top: 1rem;
}

.selection-info {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.selected-sum {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cannot-move {
    color: var(--error-color);
    margin-bottom: 1rem;
}

.out-message {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

.btn-ready {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.players-status-section {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.players-status-section h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.players-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--background-color);
}

.player-status-item.current-player {
    border: 2px solid var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.player-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.player-status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.player-status-info .player-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.player-game-status {
    font-size: 0.8rem;
}

.status-out {
    color: var(--error-color);
}

.status-done {
    color: var(--success-color);
}

.status-shutbox {
    color: var(--success-color);
    font-weight: 600;
}

.status-waiting {
    color: var(--text-secondary);
}

.player-total-score {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Round End Styles */
.round-end-section {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.round-end-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.round-scores {
    margin-bottom: 2rem;
}

.round-scores h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border-radius: 0.5rem;
}

.score-item.current-player {
    border: 2px solid var(--primary-color);
}

.round-points {
    color: var(--error-color);
    font-weight: 600;
}

.total-points {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Results Page Styles */
.results-section {
    max-width: 500px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.results-header .game-name {
    color: var(--text-secondary);
}

.winner-announcement {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.trophy-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.winner-announcement h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.winner-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 0.25rem;
}

.winner-score {
    color: #92400e;
}

.final-standings {
    background: var(--card-background);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.final-standings h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.standings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.standing-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: 0.5rem;
}

.standing-item.first-place {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.standing-item.current-player {
    border: 2px solid var(--primary-color);
}

.standing-rank {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.first-place .standing-rank {
    background: #f59e0b;
}

.standing-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.standing-score {
    font-weight: 600;
}

.game-stats {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-title {
        flex-direction: column;
        text-align: center;
    }
    
    .game-settings {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .app-header h1 {
        font-size: 1rem;
    }
    
    .dice-icon-small {
        width: 28px;
        height: 28px;
    }
    
    .tile {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .dice {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .results-actions {
        flex-direction: column;
    }
}
