@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --ink: #14171C;
  --ink-soft: #1D2129;
  --paper: #EFE6D3;
  --paper-line: #D9CDAE;
  --text-dark: #201C16;
  --text-light: #EDE7D8;
  --text-muted: #B9B3A2;
  --brass: #A9852E;
  --brass-dark: #7E641F;
  --pine: #2F5D53;
  --pine-light: #3E7368;
}
*{ box-sizing: border-box; }
body{
  margin:0;
  background: var(--ink);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}
a{ color: inherit; }

.wrap{ max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ---- Header / Nav ---- */
.site-header{
  border-bottom: 1px solid #262B34;
  padding: 22px 0;
}
.site-header .wrap{
  display:flex;
  align-items:center;
  gap:28px;
}
.logo{
  font-family:'Roboto Slab', serif;
  font-weight:700;
  font-size:20px;
  text-decoration:none;
  letter-spacing:-0.01em;
}
.logo span{ color: var(--brass); }
.main-nav2{ display:flex; align-items:center; gap:22px; margin-right:auto; }
.main-nav2 > a{
  text-decoration:none; font-size:14px; font-weight:500; color: var(--text-muted);
}
.main-nav2 > a:hover, .main-nav2 > a.active{ color: var(--text-light); }
.nav-dropdown{ position:relative; }
.nav-dropdown-trigger{
  font-size:14px; font-weight:500; color: var(--text-muted); cursor:pointer; user-select:none;
  display:inline-flex; align-items:center; gap:4px; background:none; border:none; padding:0; font-family:'Inter',sans-serif;
}
.nav-dropdown-trigger:after{ content:"▾"; font-size:10px; }
.nav-dropdown:hover .nav-dropdown-trigger, .nav-dropdown.open .nav-dropdown-trigger{ color: var(--text-light); }
.nav-dropdown-menu{
  position:absolute; top:100%; left:0; margin-top:12px;
  background: var(--ink-soft); border:1px solid #262B34; border-radius:6px;
  min-width:190px; padding:8px;
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  z-index:30;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu{
  opacity:1; visibility:visible; transform:translateY(0);
}
.nav-dropdown-menu a{
  display:block; padding:9px 12px; border-radius:4px; text-decoration:none;
  font-size:13.5px; color: var(--text-light);
}
.nav-dropdown-menu a:hover{ background:#262B34; color: var(--brass); }

.auth-area{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.auth-btn{
  font-size:13px; font-weight:600; padding:9px 16px; border-radius:999px; cursor:pointer;
  border:1.5px solid; font-family:'Inter',sans-serif; white-space:nowrap;
}
.auth-btn.register{ background:transparent; border-color:#333944; color: var(--text-muted); }
.auth-btn.register:hover{ border-color: var(--brass); color: var(--text-light); }
.auth-btn.login{ background: var(--brass); border-color: var(--brass); color: var(--ink); }
.auth-btn.login:hover{ background:#BE9636; }
.auth-username{
  display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600;
  color: var(--text-light); cursor:pointer; background:none; border:none; font-family:'Inter',sans-serif;
}
.auth-username .avatar{
  width:26px; height:26px; border-radius:50%; background: var(--brass); color: var(--ink);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; flex-shrink:0;
}
.header-streak{
  display:inline-flex; align-items:center; gap:6px;
  background: var(--ink-soft); border:1px solid #262B34; border-radius:999px;
  padding:6px 14px; font-size:12.5px; font-weight:600; color: var(--text-muted);
}
.header-streak img{ width:16px; height:16px; }

/* ---- Auth-Modal ---- */
.auth-modal-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,0.6);
  display:none; align-items:center; justify-content:center; z-index:100; padding:20px;
}
.auth-modal-backdrop.show{ display:flex; }
.auth-modal{ background: var(--paper); color: var(--text-dark); border-radius:8px; padding:28px; width:340px; max-width:100%; }
.auth-modal h3{ font-family:'Roboto Slab', serif; margin:0 0 14px; font-size:18px; }
.auth-modal input{
  width:100%; padding:11px 14px; border-radius:4px; border:1.5px solid var(--paper-line);
  font-size:15px; margin-bottom:6px; box-sizing:border-box;
}
.auth-modal-note{ font-size:11.5px; color:#8A8270; margin:6px 0 16px; line-height:1.5; }
.auth-modal-actions{ display:flex; gap:10px; }
.auth-modal-actions button{ flex:1; padding:11px; border-radius:4px; border:none; font-weight:600; cursor:pointer; font-family:'Inter',sans-serif; }
.auth-modal-actions .primary{ background: var(--brass); color: var(--ink); }
.auth-modal-actions .primary:hover{ background:#BE9636; }
.auth-modal-actions .cancel{ background:#e5ded0; color: var(--text-dark); }
.auth-modal-actions .cancel:hover{ background:#dcd3bf; }


/* ---- Breadcrumb ---- */
.breadcrumb{
  font-size:13px;
  color: var(--text-muted);
  margin: 28px 0 6px;
}
.breadcrumb a{ text-decoration:none; color: var(--text-muted); }
.breadcrumb a:hover{ color: var(--brass); }
.back-btn{
  display:inline-flex; align-items:center; gap:6px;
  background:transparent; border:1.5px solid #333944; color: var(--text-muted);
  font-family:'Inter',sans-serif; font-size:12.5px; font-weight:600;
  padding:7px 14px; border-radius:999px; cursor:pointer; margin: 10px 0 4px;
}
.back-btn:hover{ border-color: var(--brass); color: var(--text-light); }

/* ---- Hero ---- */
.hero{ padding: 60px 0 50px; text-align:center; }
.hero h1{
  font-family:'Roboto Slab', serif;
  font-weight:700;
  font-size: clamp(40px, 8vw, 64px);
  line-height:1.05;
  margin: 0 auto 18px;
  max-width: 16ch;
}
.hero p{
  font-size:17px;
  color: var(--text-muted);
  max-width: 52ch;
  line-height:1.6;
  margin:0 auto 28px;
}
.btn{
  display:inline-block;
  background: var(--brass);
  color: var(--ink);
  font-weight:600;
  font-size:14px;
  padding: 12px 22px;
  border-radius:3px;
  text-decoration:none;
}
.btn:hover{ background:#BE9636; }
.btn.secondary{
  background: transparent;
  border: 1.5px solid var(--pine-light);
  color: var(--text-light);
}
.btn.secondary:hover{ border-color: var(--brass); }
/* Auf hellem Papier-Panel: eigener, gut lesbarer Zurück-Stil statt hellem Text-auf-hell */
.panel .btn.secondary{
  background: var(--ink);
  color: var(--text-light);
  border-color: var(--ink);
}
.panel .btn.secondary:hover{ background: var(--ink-soft); border-color: var(--ink-soft); }

/* ---- Section headings ---- */
.section{ padding: 10px 0 60px; }
.section h2{
  font-family:'Roboto Slab', serif;
  font-size:26px;
  margin: 0 0 8px;
}
.section > .lead{
  color: var(--text-muted);
  font-size:15px;
  max-width: 56ch;
  line-height:1.6;
  margin: 0 0 30px;
}

/* ---- Tool cards grid ---- */
.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap:16px;
}
.tool-card{
  background: var(--ink-soft);
  border: 1px solid #262B34;
  border-radius: 4px;
  padding: 22px;
  text-decoration:none;
  display:block;
}
.tool-card:hover{ border-color: var(--brass); }
.tool-card .tag{
  font-size:11px;
  color: var(--pine-light);
  font-weight:600;
  margin-bottom:10px;
}
.tool-card.disabled{ opacity:0.55; pointer-events:none; }
.tool-card.disabled .tag{ color: var(--text-muted); }
.tool-card h3{
  font-family:'Roboto Slab', serif;
  font-size:18px;
  margin: 0 0 8px;
  color: var(--text-light);
}
.tool-card p{
  font-size:13.5px;
  color: var(--text-muted);
  line-height:1.5;
  margin:0;
}

/* ---- Info box (Wie funktioniert's) ---- */
.info-box{
  background: var(--ink-soft);
  border: 1px solid #262B34;
  border-radius: 4px;
  padding: 22px 24px;
  margin: 28px 0 40px;
}
.info-box h3{
  font-family:'Roboto Slab', serif;
  font-size:15px;
  margin: 0 0 10px;
}
.info-box ol{
  margin:0; padding-left: 20px;
  color: var(--text-muted);
  font-size:14.5px;
  line-height:1.8;
}
.info-box li strong{ color: var(--text-light); }

/* ---- Tool panel (paper card, from prototype) ---- */
.panel{
  background: var(--paper);
  color: var(--text-dark);
  border-radius: 4px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  margin-bottom: 60px;
}
.row-label{
  font-family:'Roboto Slab', serif;
  font-size:14px;
  font-weight:600;
  color: var(--text-dark);
  margin-bottom:10px;
}
.length-control{ display:flex; align-items:center; gap:14px; margin-bottom: 22px; }
.stepper{ display:flex; align-items:center; background: var(--ink); border-radius: 3px; overflow:hidden; }
.stepper button{ width:36px; height:36px; border:none; background:transparent; color: var(--text-light); font-size:18px; cursor:pointer; line-height:1; }
.stepper button:hover{ background: var(--ink-soft); }
.stepper .val{ width:44px; text-align:center; font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:16px; color: var(--text-light); }
.cells{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 24px; }
.cell{
  width:44px; height:52px; border: 2px solid var(--text-dark); background:#fff; border-radius: 2px;
  text-align:center; font-family:'IBM Plex Mono', monospace; font-size:22px; font-weight:600;
  text-transform:uppercase; color: var(--brass-dark); caret-color: var(--brass-dark);
}
.cell:focus{ outline: none; border-color: var(--brass); background: #FCF9F1; }
.filters{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-bottom: 22px; }
.field label{ display:block; font-size:12px; color:#6B6454; margin-bottom:6px; }
.field input{
  width:100%; padding:10px 12px; border-radius:3px; border:1.5px solid var(--paper-line);
  background:#fff; font-family:'IBM Plex Mono', monospace; font-size:15px; text-transform:uppercase;
}
.field input:focus{ outline:none; border-color: var(--brass); }
.status{ display:flex; justify-content:space-between; align-items:baseline; border-top:1px solid var(--paper-line); padding-top:16px; margin-bottom:14px; }
.status .count{ font-family:'Roboto Slab', serif; font-weight:700; font-size:18px; }
.status .total{ font-size:12px; color:#6B6454; }
.results{ display:flex; flex-wrap:wrap; gap:8px; min-height: 48px; }
.tile{
  font-family:'IBM Plex Mono', monospace; font-weight:600; letter-spacing: 0.03em;
  background: var(--ink); color: var(--text-light); padding: 8px 12px; border-radius:3px;
  font-size:14px; border-bottom: 2px solid var(--brass);
}
.empty-note{ color:#8A8270; font-size:14px; font-style:italic; padding: 8px 0; }
.upload{
  margin-top:28px; padding-top:20px; border-top: 1px solid #2A2E37;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.upload p{ margin:0; font-size:13px; color:#8D8778; max-width:38ch; line-height:1.5; }
.upload label{
  background: var(--pine); color:#F2FBF8; padding:10px 16px; border-radius:3px;
  font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap;
}
.upload label:hover{ background: var(--pine-light); }
.upload input[type=file]{ display:none; }
.dict-count{ font-family:'IBM Plex Mono', monospace; color: var(--brass); }

/* ---- Puzzle-Auswahl (Tabs) ---- */
.puzzle-tabs{
  display:flex;
  gap:10px;
  margin: 8px 0 28px;
  flex-wrap:wrap;
}
.puzzle-tab{
  font-family:'Inter', sans-serif;
  font-size:13.5px;
  font-weight:600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid #262B34;
  background: var(--ink-soft);
  color: var(--text-muted);
  cursor:pointer;
}
.puzzle-tab.active{
  border-color: var(--brass);
  color: var(--ink);
  background: var(--brass);
}
.puzzle-tab.upcoming{
  opacity:0.5;
  cursor:default;
}

/* ---- Klickbare Rätsel-Karte (Startseite) ---- */
.puzzle-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
  margin: 8px 0 20px;
}
.puzzle-card{
  display:block;
  text-decoration:none;
  background: var(--ink-soft);
  border: 1.5px solid #262B34;
  border-radius: 6px;
  overflow:hidden;
  transition: border-color .15s ease;
}
.puzzle-card:hover{ border-color: var(--brass); }
.puzzle-card .thumb{
  background: var(--paper);
  padding: 22px 18px;
}
.puzzle-card .thumb svg{ display:block; width:100%; height:auto; }
.puzzle-card .caption{ padding: 16px 18px 20px; }
.puzzle-card .caption h3{
  font-family:'Roboto Slab', serif;
  font-size:17px;
  margin: 0 0 6px;
  color: var(--text-light);
}
.puzzle-card .caption p{
  font-size:13px;
  color: var(--text-muted);
  margin:0;
  line-height:1.5;
}
.puzzle-card.upcoming{ opacity:0.5; pointer-events:none; }
.puzzle-card .thumb img.icon-thumb{ width:64px; height:64px; display:block; margin:0 auto; }

/* ---- Daily Word ---- */
.dw-icon{ width:28px; height:28px; vertical-align:middle; }
.dw-icon-lg{ width:80px; height:80px; }
.dw-header{ display:flex; align-items:center; gap:16px; margin-bottom:6px; }
.dw-blanks-box{
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(217,182,92,0.3);
  border-radius: 8px;
  padding: 22px 20px;
  margin: 22px 0 24px;
  display:inline-block;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.35);
}
.dw-blanks{
  font-family:'IBM Plex Mono', monospace; font-size:38px; font-weight:700;
  letter-spacing:0.22em; color: var(--text-dark); margin:0;
}
.dw-blanks span{ display:inline-block; min-width:0.7em; text-align:center; }
.dw-blanks span.filled{ color: #D9B65C; animation: dwLetterPop 0.4s cubic-bezier(.34,1.56,.64,1); }
@keyframes dwLetterPop{
  0%{ transform: scale(0.4); opacity:0; }
  70%{ transform: scale(1.2); opacity:1; }
  100%{ transform: scale(1); }
}
.dw-info-strip{ display:flex; gap:10px; flex-wrap:wrap; margin: 4px 0 24px; }
.dw-info-chip{
  display:flex; align-items:center; gap:8px;
  background: rgba(255,255,255,0.04); border:1px solid rgba(169,133,46,0.25);
  border-radius: 999px; padding:7px 14px; font-size:12.5px; color: var(--text-muted);
}
.dw-info-chip img{ width:20px; height:20px; }
.dw-panel{
  background: linear-gradient(165deg, #1B2029 0%, #12151B 100%);
  border: 1px solid rgba(169,133,46,0.35);
  border-radius: 6px;
  padding: 28px 28px 26px;
  box-shadow: 0 20px 45px -22px rgba(0,0,0,0.7), 0 0 50px -20px rgba(169,133,46,0.22);
  margin-bottom: 40px;
  color: var(--text-light);
}
.dw-panel .row-label{ color: var(--text-light); }
.dw-panel .dw-input-row input{
  background:#20242C; border:1.5px solid #333944; color: var(--text-light);
}
.dw-panel .dw-input-row input::placeholder{ color:#6B7280; }
.dw-panel .dw-input-row input:focus{ border-color: var(--brass); }
.dw-panel .dw-inline-error{ color:#E28A7D; }
.dw-panel .dw-giveup-btn{ border-color:#333944; color: var(--text-muted); }
.dw-panel .dw-giveup-btn:hover{ border-color:#C9776A; color:#C9776A; }
.dw-panel .dw-giveup-text{ color: var(--text-muted); }
.dw-input-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:24px; }
.dw-input-row input{
  flex:1; min-width:180px; padding:14px 16px; border-radius:4px; border:1.5px solid var(--paper-line);
  font-family:'IBM Plex Mono', monospace; font-size:18px; text-transform:uppercase; letter-spacing:0.08em;
}
.dw-input-row input:focus{ outline:none; border-color: var(--brass); }
.dw-guess-btn{
  background: var(--brass); color: var(--ink); font-weight:700; font-size:15px;
  padding:14px 24px; border-radius:4px; border:none; cursor:pointer;
}
.dw-guess-btn:hover{ background:#BE9636; }
.dw-guess-btn:disabled{ opacity:0.5; cursor:default; }
.dw-giveup-btn{
  background: transparent; border:1.5px solid var(--paper-line); color:#6B6454;
  font-weight:600; font-size:13px; padding:9px 16px; border-radius:4px; cursor:pointer;
}
.dw-giveup-btn:hover{ border-color:#8C4A3A; color:#8C4A3A; }
.dw-giveup-text{ font-size:14px; color:#6B6454; font-style:italic; margin-top:6px; }
.dw-inline-error{ font-size:13px; color:#8C4A3A; margin:-14px 0 18px; min-height:16px; }
.dw-history{ display:flex; flex-direction:column; gap:14px; margin-bottom:20px; }
.dw-attempt{ display:flex; flex-direction:column; gap:6px; }
.dw-attempt-label{
  font-family:'Roboto Slab', serif; font-size:12.5px; font-weight:600;
  color: var(--brass); text-transform:uppercase; letter-spacing:0.04em;
}
.dw-guess-row{ display:flex; gap:6px; }
.dw-letter{
  width:42px; height:48px; border-radius:4px; display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-weight:700; font-size:19px; color:#fff; position:relative;
}
.dw-letter.correct{ background: var(--pine); }
.dw-letter.wrong{ background:#8C4A3A; }
.dw-letter.wrong::after{
  content:"✕"; position:absolute; top:-6px; right:-6px; font-size:11px;
  background:#201C16; color:#fff; border-radius:50%; width:16px; height:16px;
  display:flex; align-items:center; justify-content:center;
}
.dw-success{
  display:none; text-align:center; padding: 10px 0 6px;
}
.dw-success.show{ display:block; }
.dw-success-word{
  font-family:'Roboto Slab', serif; font-weight:700; font-size:26px; color: var(--pine);
  margin: 6px 0 14px; display:inline-block;
}
.dw-success-word.plop{ animation: dwPlop 0.5s cubic-bezier(.34,1.56,.64,1); }
@keyframes dwPlop{
  0%{ transform: scale(0.3); opacity:0; }
  60%{ transform: scale(1.15); opacity:1; }
  100%{ transform: scale(1); }
}
.dw-percentile{
  display:inline-flex; align-items:center; gap:8px; background:#FCF9F1; border:1px solid var(--paper-line);
  border-radius:999px; padding:9px 18px; font-size:14px; font-weight:600; color: var(--text-dark);
}
.dw-already{ text-align:center; padding:20px 0; }

/* ---- Sudoku ---- */
.sudoku-wrap{ display:flex; flex-direction:column; align-items:center; gap:22px; }
.sudoku-grid{
  display:grid;
  grid-template-columns: repeat(9, minmax(30px, 44px));
  grid-template-rows: repeat(9, minmax(30px, 44px));
  background: var(--text-dark);
  gap:1px;
  border: 3px solid var(--text-dark);
  border-radius:4px;
  overflow:hidden;
}
.sudoku-cell{
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-size:19px; font-weight:600;
  color: var(--brass-dark); cursor:pointer; user-select:none; outline:none;
}
.sudoku-cell.given{ color: var(--text-dark); background:#F4EFE2; cursor:default; }
.sudoku-cell.selected{ background:#FCEFC7; }
.sudoku-cell.hint{ color: var(--pine); }
.sudoku-cell.wrong{ color:#B23A2E; }
.sudoku-cell.solved-fill{ color: var(--text-dark); background:#F4EFE2; }
.sudoku-cell.border-right{ border-right:2.5px solid var(--text-dark); }
.sudoku-cell.border-bottom{ border-bottom:2.5px solid var(--text-dark); }
.sudoku-numpad{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.sudoku-num-btn{
  width:42px; height:42px; border-radius:4px; border:1.5px solid var(--paper-line);
  background:#fff; font-family:'IBM Plex Mono', monospace; font-weight:700; font-size:17px;
  color: var(--text-dark); cursor:pointer;
}
.sudoku-num-btn:hover{ border-color: var(--brass); }
.sudoku-num-btn.erase{ font-size:13px; font-weight:600; width:auto; padding:0 14px; }
.sudoku-controls{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.sudoku-status{ font-family:'Roboto Slab', serif; font-weight:600; font-size:16px; min-height:24px; text-align:center; }
.sudoku-status.win{ color: var(--pine); }

/* ---- Wortprobe (Wordle-artiges Ratespiel) ---- */
.wp-panel{
  background: var(--paper);
  border: 1px solid #D9C9A3;
  border-radius: 10px;
  padding: 28px 26px 26px;
  color: var(--text-dark);
  box-shadow: 0 20px 40px -24px rgba(60,45,20,0.35);
  margin-bottom: 40px;
}
.wp-top-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; margin-bottom:20px; }
.wp-streaks{ display:flex; gap:10px; flex-wrap:wrap; }
.wp-chip{
  display:inline-flex; align-items:center; gap:7px;
  background:#FBF6E9; border:1px solid #D9C9A3; border-radius:999px;
  padding:7px 14px; font-size:12.5px; font-weight:600; color:#5C4B2A;
}
.wp-chip img{ width:18px; height:18px; }
.wp-timer{
  font-family:'IBM Plex Mono', monospace; font-weight:700; font-size:20px;
  color: var(--pine); background:#E4EFE9; border:1px solid #BFD8CC;
  border-radius:8px; padding:6px 16px;
}
.wp-timer.low{ color:#8C4A3A; background:#F5E5E0; border-color:#E0BDB0; }
.wp-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:22px; }
.wp-btn{
  font-family:'Inter',sans-serif; font-weight:600; font-size:13px; padding:10px 18px;
  border-radius:6px; cursor:pointer; border:1.5px solid;
}
.wp-btn.help{ background:transparent; border-color:#C2A25A; color:#7E641F; }
.wp-btn.help:hover{ background:#F3E9CE; }
.wp-btn.new{ background: var(--pine); border-color: var(--pine); color:#F4FBF8; }
.wp-btn.new:hover{ background:#264F46; }
.wp-help-box{
  display:none; background:#FBF6E9; border:1px solid #D9C9A3; border-radius:8px;
  padding:16px 18px; margin-bottom:22px; font-size:13.5px; color:#5C4B2A; line-height:1.7;
}
.wp-help-box.show{ display:block; }
.wp-help-box ul{ margin:8px 0 0; padding-left:18px; }
.wp-board{ display:flex; flex-direction:column; align-items:center; gap:7px; margin-bottom:22px; }
.wp-row{ display:flex; gap:6px; }
.wp-tile{
  width:46px; height:46px; border-radius:6px; border:2px solid #D9C9A3;
  background:#FCF9F0;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-weight:700; font-size:21px;
  color: var(--text-dark); text-transform:uppercase;
}
.wp-tile.current{ border-color:#B08A3E; }
.wp-tile.green{ background: var(--pine); border-color: var(--pine); color:#F4FBF8; }
.wp-tile.gold{ background: var(--brass); border-color: var(--brass); color:#3A2E10; }
.wp-tile.gray{ background:#8A7F6B; border-color:#8A7F6B; color:#F4F1E8; }
.wp-keyboard{ display:flex; flex-direction:column; gap:8px; align-items:center; }
.wp-key-row{ display:flex; gap:6px; }
.wp-key{
  min-width:34px; height:44px; padding:0 8px; border-radius:5px; border:none;
  background:#E9E1CB; color: var(--text-dark); font-weight:700; font-size:13.5px;
  cursor:pointer; font-family:'Inter',sans-serif;
}
.wp-key:hover{ background:#DED2B2; }
.wp-key.wide{ min-width:58px; font-size:11.5px; }
.wp-key.green{ background: var(--pine); color:#F4FBF8; }
.wp-key.gold{ background: var(--brass); color:#3A2E10; }
.wp-key.gray{ background:#8A7F6B; color:#F4F1E8; }
.wp-status{
  text-align:center; font-family:'Roboto Slab', serif; font-weight:600; font-size:17px;
  min-height:26px; margin-top:6px;
}
.wp-status.win{ color: var(--pine); }
.wp-status.lose{ color:#8C4A3A; }

/* ---- Buchstabensalat (Word Search) ---- */
.ls-grid{
  display:grid;
  grid-template-columns: repeat(10, minmax(28px, 38px));
  grid-template-rows: repeat(10, minmax(28px, 38px));
  gap:3px;
  background:#D9C9A3;
  padding:6px;
  border-radius:8px;
  margin: 0 auto;
  width: fit-content;
}
.ls-cell{
  background:#FCF9F0;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-weight:700; font-size:15px;
  color: var(--text-dark); border-radius:3px; cursor:pointer; user-select:none;
}
.ls-cell:hover{ background:#F3EAD3; }
.ls-cell.anchor{ background:#F3E9CE; box-shadow: inset 0 0 0 2px #B08A3E; }
.ls-cell.wrong-flash{ background:#B23A2E; color:#fff; }
.ls-cell.found{ background: var(--pine); color:#F4FBF8; cursor:default; }
.ls-cell.hint{ background: var(--brass); color:#3A2E10; }
.ls-wordlist{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin: 18px 0; }
.ls-word-chip{
  font-family:'IBM Plex Mono', monospace; font-weight:700; font-size:13.5px;
  background:#FBF6E9; border:1.5px solid #D9C9A3; border-radius:6px;
  padding:8px 14px; color:#5C4B2A; letter-spacing:0.04em;
}
.ls-word-chip.found{ background: var(--pine); border-color: var(--pine); color:#F4FBF8; text-decoration: line-through; }



/* ---- Galgenmännchen ---- */
.hangman-layout{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items:start;
}
@media (max-width: 620px){
  .hangman-layout{ grid-template-columns: 1fr; }
}
.hangman-figure{
  background: var(--paper);
  border-radius: 4px;
  padding: 16px;
}
.hangman-word{
  font-family:'IBM Plex Mono', monospace;
  font-size: 30px;
  font-weight:600;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  margin: 0 0 22px;
  word-break: break-all;
}
.wrong-count{
  font-size:13px;
  color:#6B6454;
  margin-bottom:18px;
}
.keyboard{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom: 20px;
}
.key{
  width:38px; height:38px;
  border-radius: 3px;
  border: 1.5px solid var(--paper-line);
  background:#fff;
  font-family:'IBM Plex Mono', monospace;
  font-weight:600;
  font-size:15px;
  color: var(--text-dark);
  cursor:pointer;
}
.key:hover:not(:disabled){ border-color: var(--brass); }
.key:disabled{ opacity:0.35; cursor:default; }
.key.correct{ background: var(--pine); border-color: var(--pine); color:#fff; opacity:1; }
.key.wrong{ background:#8C4A3A; border-color:#8C4A3A; color:#fff; opacity:1; }
.game-message{
  font-family:'Roboto Slab', serif;
  font-size:16px;
  font-weight:600;
  min-height:24px;
  margin-bottom:16px;
}
.game-message.win{ color: var(--pine); }
.game-message.lose{ color:#8C4A3A; }

/* ---- Footer ---- */
.site-footer{
  border-top: 1px solid #262B34;
  padding: 26px 0;
  margin-top: 40px;
}
.site-footer .wrap{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
}
.site-footer p{ margin:0; font-size:12.5px; color: var(--text-muted); }
.site-footer nav{ display:flex; gap:18px; }
.site-footer nav a{ font-size:12.5px; color: var(--text-muted); text-decoration:none; }
.site-footer nav a:hover{ color: var(--brass); }
