*{box-sizing:border-box}body{margin:0;background:#f3f7fd;color:#18304e;font:16px/1.5 system-ui,Arial,sans-serif}.wrap{max-width:1050px;margin:auto;padding:18px}header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 0;border-bottom:1px solid #d6e1f1}header>a{font-weight:800;font-size:20px}a{color:#175aab}nav{display:flex;gap:14px}h1{font-size:28px}h2{font-size:20px}.card{background:white;border:1px solid #d6e1f1;border-radius:14px;padding:20px;margin:14px 0;box-shadow:0 3px 12px #15365909}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.grid .card{margin:0}label{display:block;font-weight:650;margin:12px 0 5px}input,select,textarea{width:100%;font:inherit;border:1px solid #b9c9df;border-radius:8px;padding:10px;background:white}textarea{min-height:170px;font-family:ui-monospace,monospace}button,.btn{display:inline-block;border:0;border-radius:8px;background:#1762b0;color:white;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;margin:10px 5px 5px 0}.danger{color:#9d1e1e}.muted{color:#61728a}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;background:white}th,td{border-bottom:1px solid #e2e9f3;text-align:left;padding:10px;white-space:nowrap}.notice{background:#fff7dd;border:1px solid #e8d59c;padding:12px;border-radius:8px}.error{color:#9d1e1e}code{overflow-wrap:anywhere}@media(max-width:550px){h1{font-size:24px}.wrap{padding:12px}}
.hero{background:linear-gradient(120deg,#153e78,#146cc5);color:white;padding:36px 30px;border-radius:18px;margin:20px 0}.hero h1{font-size:clamp(28px,5vw,44px);margin:8px 0}.hero p{font-size:18px}.hero .btn{background:white;color:#174c91}.hero.small{padding:24px 30px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:800;color:#b8e7ff}.game{max-width:850px;margin:18px auto;padding:26px}.scoreline{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#155aa6;margin-bottom:16px}.clues{display:grid;gap:10px;margin:18px 0}.clue{padding:16px;border-radius:10px;background:#eaf3ff;border-left:5px solid #2376cc;font-weight:600}.secondary{background:#e6eef8;color:#1a4f8d}.secondary:disabled{opacity:.45;cursor:not-allowed}.success{background:#e7f8ed;color:#13552e;padding:12px;border-radius:8px}#result{padding:18px;background:#e7f8ed;border-radius:10px;font-weight:750;margin-top:18px}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffac33;outline-offset:2px}@media(max-width:550px){.hero{padding:22px}.game{padding:16px}nav{flex-wrap:wrap}}


/* =========================================================
   WORD DETECTIVE - COMPACT RESPONSIVE DESIGN
   Scoped to Word Detective; admin and other games unchanged.
   ========================================================= */
body.word-detective-page {background:#f3f7fd}
.word-detective-page .wrap {max-width:980px;padding:12px 18px 24px}
.word-detective-page header {padding:9px 0 12px;gap:10px}
.word-detective-page header>a {font-size:17px}
.word-detective-page nav {gap:14px;font-size:14px}
.word-detective-page .hero.small {
  padding:15px 22px;
  margin:14px 0 12px;
  border-radius:13px;
  background:linear-gradient(115deg,#16467f,#1769bb);
}
.word-detective-page .hero .eyebrow {font-size:10px;letter-spacing:1.4px}
.word-detective-page .hero h1 {font-size:clamp(24px,3.6vw,32px);line-height:1.16;margin:5px 0}
.word-detective-page .hero p {font-size:14px;line-height:1.4;margin:5px 0 0}
.word-detective-page .card {margin:10px 0;border-radius:12px}
.word-detective-page .game {max-width:none;padding:18px 22px}
.word-detective-page #dateLabel {font-size:13px;margin:0 0 8px}
.word-detective-page .scoreline {
  align-items:center;
  margin:0 0 10px;
  font-size:14px;
}
.word-detective-page #score {
  display:inline-block;background:#e9f2ff;color:#135aa4;
  padding:5px 11px;border-radius:999px;font-size:14px
}
.word-detective-page #message {font-size:14px;margin:6px 0 10px;line-height:1.4}
.word-detective-page .clues {gap:7px;margin:10px 0}
.word-detective-page .clue {
  padding:10px 12px;border-left-width:4px;
  border-radius:8px;font-size:14px;line-height:1.4;
  font-weight:600
}
.word-detective-page #guessForm label {margin:8px 0 5px;font-size:14px}
.word-detective-page #guess {max-width:100%;padding:10px 12px}
.word-detective-page #guessForm button {margin:8px 8px 0 0;padding:10px 14px}
.word-detective-page #result {margin-top:12px;padding:12px 14px;font-size:14px}
.word-detective-page .game+.card {padding:13px 20px}
.word-detective-page .game+.card h2 {font-size:17px;margin:0 0 6px}
.word-detective-page .game+.card p {font-size:13px;line-height:1.5;margin:5px 0}
@media(max-width:600px) {
 .word-detective-page .wrap {padding:9px 10px 18px}
 .word-detective-page header {padding:6px 0 10px}
 .word-detective-page header>a {font-size:15px}
 .word-detective-page nav {font-size:12px;gap:10px}
 .word-detective-page .hero.small {padding:12px 14px;margin:10px 0}
 .word-detective-page .hero h1 {font-size:24px;margin:4px 0}
 .word-detective-page .hero p {font-size:12px}
 .word-detective-page .hero .eyebrow {font-size:9px}
 .word-detective-page .game {padding:13px 12px}
 .word-detective-page .clues {gap:6px}
 .word-detective-page .clue {padding:9px 10px;font-size:13px}
 .word-detective-page #guessForm button {width:100%;margin:8px 0 0;min-height:44px}
 .word-detective-page .game+.card {padding:12px}
}

/* Word Detective completed example overlay (scoped) */
.word-detective-page .example-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#e8f2ff;border:1px solid #cbdff6;border-radius:10px;padding:9px 14px;font-size:13px;color:#26496d;margin:0 0 10px}
.word-detective-page .example-open{margin:0;padding:8px 14px;font-size:13px;border-radius:8px;white-space:nowrap}
.word-detective-page .word-footer-note{font-size:12px;color:#62758b;text-align:center;margin:12px 0}
.word-detective-page .example-dialog{width:min(580px,calc(100% - 24px));max-height:min(90vh,800px);overflow:auto;border:1px solid #bed1e7;border-radius:16px;padding:0;box-shadow:0 20px 75px #102b5070;color:#18304e;background:#fff}
.word-detective-page .example-dialog::backdrop{background:rgba(13,31,55,.6)}
.word-detective-page .example-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:linear-gradient(110deg,#16467f,#1769bb);color:#fff;padding:17px 20px}
.word-detective-page .example-dialog-head h2{margin:5px 0 0;font-size:21px;line-height:1.25}
.word-detective-page .example-tag{font-size:10px;letter-spacing:1px;font-weight:800;color:#cce8ff}
.word-detective-page .example-close{background:#ffffff24;border:1px solid #ffffff50;font-size:25px;line-height:1;margin:0;padding:3px 10px}
.word-detective-page .example-dialog-body{padding:16px 20px 20px}
.word-detective-page .example-stats{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#165b9e;font-size:13px;margin-bottom:10px}
.word-detective-page .example-success{background:#e5f6e9;color:#165b2d;padding:10px 12px;border-radius:9px;font-size:13px;margin-bottom:10px}
.word-detective-page .example-clues{display:grid;gap:7px}
.word-detective-page .example-clue{padding:9px 11px;background:#eaf3ff;border-left:4px solid #2376cc;border-radius:7px;font-size:13px;line-height:1.4}
.word-detective-page .example-answer{margin:12px 0 8px;background:#e5f6e9;padding:12px;border-radius:8px;font-size:14px}
.word-detective-page .example-answer span{float:right;color:#136331;font-size:12px}
.word-detective-page .example-explain{font-size:13px;line-height:1.5;margin:10px 0}
.word-detective-page .example-done{display:block;width:100%;margin:12px 0 0;padding:11px;font-size:14px}
@media(max-width:600px){.word-detective-page .example-intro{padding:9px 11px}.word-detective-page .example-open{width:100%}.word-detective-page .example-dialog-head{padding:13px}.word-detective-page .example-dialog-body{padding:12px}.word-detective-page .example-dialog-head h2{font-size:18px}}

/* Word Detective guide: small banner action, written steps and sample */
.word-detective-page .word-hero{display:flex;align-items:center;justify-content:space-between;gap:18px}
.word-detective-page .word-hero-copy{min-width:0}
.word-detective-page .word-hero .example-open{flex:0 0 auto;white-space:nowrap;margin:0;padding:8px 12px;background:#ffffff;color:#154c89;border:1px solid #ffffffa6;font-size:12px;font-weight:750;box-shadow:0 2px 7px #082c4930}
.word-detective-page .word-hero .example-open:hover{background:#eaf3ff}
.word-detective-page .example-howto{background:#f2f7fd;border:1px solid #d8e6f6;border-radius:10px;padding:12px 14px;margin-bottom:14px;font-size:13px;line-height:1.55}
.word-detective-page .example-howto p{margin:0 0 9px}
.word-detective-page .example-howto ol{margin:0 0 10px;padding-left:22px}
.word-detective-page .example-howto li{padding-left:2px;margin:6px 0}
.word-detective-page .example-howto .example-guide-note{margin:0;color:#516b88;font-size:12px}
.word-detective-page .example-sample-heading{font-size:16px;margin:12px 0 2px}
.word-detective-page .example-sample-caption{font-size:12px;color:#62758b;margin:0 0 10px}
@media(max-width:600px){
 .word-detective-page .word-hero{align-items:flex-start;gap:8px;flex-wrap:wrap}
 .word-detective-page .word-hero .example-open{width:auto;max-width:100%;font-size:11px;padding:7px 10px;margin-left:auto}
 .word-detective-page .example-howto{padding:10px 12px}
}
