  :root {
    --bg: #110e08;
    --gold: #c8861a;
    --gold-light: #e8a832;
    --parchment: #f5eed8;
    --dark-card: #1e1508;
    --muted: #7a6a4a;
    --text: #1a1408;
  }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { background: #110e08 !important; color: #f5eed8 !important; }

body {
background: var(–bg);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
font-family: "Cormorant Garamond", Georgia, serif;
padding: 28px 20px 40px;
background-image: radial-gradient(ellipse at 20% 50%, #2a1a0522 0%, transparent 60%),
radial-gradient(ellipse at 80% 20%, #c8861a0a 0%, transparent 50%);
}

header { text-align: center; margin-bottom: 24px; }

.subtitle {
font-family: "Cinzel", serif;
font-size: 10px;
letter-spacing: 5px;
color: var(--gold);
text-transform: uppercase;
margin-bottom: 8px;
}

h1 {
font-family: "Cinzel", serif;
font-size: 22px;
color: var(--parchment);
font-weight: 600;
letter-spacing: 2px;
}

.progress-wrap { width: 100%; max-width: 420px; margin-bottom: 16px; }

.progress-labels {
display: flex;
justify-content: space-between;
font-size: 11px;
color: var(--muted);
margin-bottom: 6px;
font-family: "Cinzel", serif;
}

.progress-bar-bg { height: 3px; background: #2a1f0a; border-radius: 2px; overflow: hidden; }

.progress-bar {
height: 100%;
background: linear-gradient(90deg, var(--gold), var(--gold-light));
border-radius: 2px;
transition: width 0.5s ease;
}

.round-badge {
height: 28px;
display: flex;
align-items: center;
justify-content: center;
font-family: "Cinzel", serif;
font-size: 10px;
letter-spacing: 3px;
color: var(--gold);
text-transform: uppercase;
margin-bottom: 12px;
}

.scene {
width: 100%;
max-width: 420px;
height: 260px;
perspective: 1200px;
cursor: pointer;
flex-shrink: 0;
}

.card {
position: relative;
width: 100%;
height: 260px;
transform-style: preserve-3d;
transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.card.flipped { transform: rotateY(180deg); }

.card-face {
position: absolute;
inset: 0;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
border-radius: 18px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 36px 28px 48px;
}

.card-front {
background: var(--parchment);
box-shadow: 0 12px 50px #00000077, inset 0 1px 0 #ffffff66;
border: 1px solid #d4c090;
}

.card-back {
background: var(--dark-card);
box-shadow: 0 12px 50px #00000077;
border: 1px solid #3a2c10;
transform: rotateY(180deg);
}

.latin-word {
font-size: 32px;
font-weight: 600;
font-style: italic;
color: var(--text);
text-align: center;
line-height: 1.2;
margin-bottom: 10px;
}

.grammar-info {
font-size: 13px;
color: var(--muted);
font-style: italic;
text-align: center;
}

.tap-hint {
position: absolute;
bottom: 16px;
font-family: "Cinzel", serif;
font-size: 9px;
letter-spacing: 3px;
color: #bba87a44;
text-transform: uppercase;
transition: opacity 0.2s;
}

.back-latin {
font-family: "Cinzel", serif;
font-size: 11px;
color: var(--gold);
letter-spacing: 2px;
margin-bottom: 14px;
font-style: italic;
text-align: center;
}

.german-word {
font-size: 24px;
font-weight: 600;
color: var(--parchment);
text-align: center;
line-height: 1.4;
}

.button-row {
width: 100%;
max-width: 420px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
margin-top: 20px;
}

.btn {
font-family: "Cinzel", serif;
font-size: 13px;
letter-spacing: 1px;
border-radius: 10px;
padding: 13px 26px;
cursor: pointer;
border: none;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease, transform 0.1s;
}

.btn.visible { opacity: 1; pointer-events: all; }
.btn:active { transform: scale(0.96); }
.btn-nochmal { background: transparent; border: 2px solid #c0392b; color: #e74c3c; }
.btn-gewusst { background: var(--gold); color: #fff; }

.counter {
height: 24px;
display: flex;
align-items: center;
font-family: "Cinzel", serif;
font-size: 11px;
color: #4a3a1a;
letter-spacing: 1px;
margin-top: 6px;
}

.done {
background: var(--parchment);
border-radius: 18px;
padding: 48px 36px;
max-width: 420px;
width: 100%;
text-align: center;
box-shadow: 0 12px 50px #00000077;
}

.done-emoji { font-size: 44px; margin-bottom: 16px; }

.done h2 {
font-family: "Cinzel", serif;
font-size: 22px;
color: var(–text);
margin-bottom: 10px;
}

.done p { font-size: 16px; color: var(--muted); margin-bottom: 28px; }

.btn-reset {
font-family: "Cinzel", serif;
font-size: 14px;
letter-spacing: 1px;
background: var(–gold);
color: #fff;
padding: 14px 36px;
border: none;
border-radius: 10px;
cursor: pointer;
}