:root {
    --bg: #200b0b;
    --text: #d6bb9d;
    --muted: #bbb2ad;
    --accent: #a87648;
    --border: #644f36bb;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    background-image: url("bg-main-menu.jpg");
    background-repeat: no-repeat;
    background-position: center 20%;
    background-attachment: scroll; /* vigtigt på mobil */
    background-size: cover;
    z-index: -1;
}
body { 
    margin: 0; 
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; 
    color: var(--text); 
}
.app { max-width: 800px; margin: 0 auto; padding: 16px 12px 96px; }
header {
    position: sticky;
    top: 0;
    padding: 12px;
    background: rgba(54, 16, 16, 0.2);
    backdrop-filter: saturate(1.2) blur(4px);
    z-index: 10;
    border-bottom: 1px solid var(--border);
}
header .inner { max-width: 800px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0px 8px;}
h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
}
.card {
    display: block;
    background: rgba(54, 16, 16, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 14px;
    backdrop-filter: blur(10px) saturate(120%);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s ease, background 0.2s ease;
}
.card:hover {
    background: #3610108c;
    transform: translateY(-2px);
    cursor: pointer;
}
.card:active {
    transform: translateY(1px);
}
.card h2 { margin: 0 0 8px; font-size: 18px; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.btn { 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    padding: 12px 14px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    font-weight: 600; 
    cursor: pointer; 
    background: #361010a6; 
    color: var(--text); 
    text-decoration: none;
    touch-action: manipulation;
}
.btn:hover { background: #361010c9; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #724e2c86; border-color: #d6bb9da1; }
.btn.primary:hover { background: #a87648b2;}
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.home-btn { 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    border: 1px solid var(--border); 
    background: rgba(54, 16, 16, 0.4); 
    color: var(--text); 
    text-decoration: none; 
    font-size: 14px; 
    transition: background .2s ease; 
}
.home-btn:hover { 
    background: rgba(54, 16, 16, 0.55); 
}
.home-btn:active { transform: translateY(1px); }
.kicker { font-size: 12px; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); }
.progress { 
    height: 10px; 
    border-radius: 999px; 
    background: #330c0b; 
    border: 1px solid var(--border); 
    overflow: hidden; 
}
.progress > div { 
    height: 100%; 
    width: 0; 
    background: linear-gradient(90deg, var(--accent), #b49370); 
    transition: width .25s ease; 
}
.list { display: grid; gap: 8px; }
.list .item { 
    padding: 10px 12px; 
    border: 1px dashed var(--border); 
    border-radius: 12px; 
    background: rgba(54, 16, 16, 0.4);
    backdrop-filter: blur(10px) saturate(120%);
    transition: transform 0.15s ease, background 0.2s ease;
}
.list .item:hover {
    background: rgba(54, 16, 16, 0.55);
    transform: translateY(-2px);
    cursor: pointer;
}
.list .item.active {
    background: rgba(72, 38, 16, 0.6);
    border: 1px solid #a87648;
    color: #e8d1b5;
    font-weight: 700;
}
.center { text-align: center; }
.big { font-size: 22px; }
details { 
    background: rgba(54, 16, 16, 0.4); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 10px; 
    backdrop-filter: blur(10px) saturate(120%); 
}
summary { cursor: pointer; }
.row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pill { 
    /* position: relative; */
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 12px 14px;
    border: 1px solid var(--border); 
    border-radius: 12px; 
    background: rgba(54, 16, 16, 0.4); 
    backdrop-filter: blur(10px) saturate(120%); 
    transition: background .2s ease; 
    font-weight: 600; 
}
.pill select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
    color: var(--text);
    padding: 0px 24px 0px 0px; 
    font-weight: 600; 
    cursor: pointer;
}
.pill::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7em;
  color: var(--muted);
  pointer-events: none;
}
.pill:hover { 
    background: rgba(54, 16, 16, 0.55); 
}
.pill select option {
  background: var(--bg);
  color: var(--text);
}
.pill select:focus {
  outline: none;
}
select { 
    appearance: none; 
    background: transparent; 
    color: var(--text); 
    border: none; 
    padding: 8px 12px; 
    font-size: 15px; 
    cursor: pointer; 
}
.actions { 
    position: fixed; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(54, 16, 16, 0.2); 
    backdrop-filter: saturate(1.2) blur(4px); 
    border-top: 1px solid var(--border); 
    padding: 10px 12px; 
    z-index: 20; 
}
.actions .bar { 
    max-width: 800px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 10px; 
}
.info-bar { 
    max-width: 800px; 
    margin: 0px auto; 
    padding: 0px 0px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}
.info-bar p {
    margin: 0px auto;
}