:root {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --pace-orange: #EB9110;
    --accent: #3b82f6;
    --danger: #ef4444;
    --success: #22c55e;
    --border-color: rgba(255,255,255,0.1);
}

.back-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: var(--pace-orange);
}

.pace-logo-icon {
    height: 1.5em;
    vertical-align: middle;
    margin-left: 0.5rem;
    display: inline-block;
    margin-bottom: 0.2rem;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 90vh;
}

header {
    text-align: center;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.logo {
    color: var(--pace-orange);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.meters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meter-group {
    flex: 1;
}

.meter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.bar-bg {
    background: #334155;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.friction { background: var(--danger); }
.stability { background: var(--success); }

.game-area {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-stack {
    position: relative;
    width: 100%;
    height: 300px;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    color: #0f172a;
    border-radius: 1rem;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.card.swiped-left {
    transform: translateX(-150%) rotate(-20deg);
    opacity: 0;
}

.card.swiped-right {
    transform: translateX(150%) rotate(20deg);
    opacity: 0;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
}

.btn:active {
    transform: scale(0.95);
}

.btn-left {
    background: #334155;
    color: white;
}

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

.action-label {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
}

.sub-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.placeholder {
    z-index: 0;
}