/* A Leo Warren Case - gioco delle missioni (plugin Leo Warren Missions).
   Generato da strumenti/isola_css.py: tutte le regole sono racchiuse sotto .lw-game. */
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("../fonts/special-elite.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nothing You Could Do"; src: url("../fonts/nothing-you-could-do.woff2") format("woff2"); font-display: swap; }
.lw-game {
  color-scheme: light;
  
  --lw-paper: #FBFAF6;
  --lw-cream: #ECE5D8;
  --lw-cream-line: #D5CAB4;
  --lw-ink: #1A1714;
  --lw-ink-soft: #3A342E;
  --lw-grey: #5C554D;
  --lw-brass: #6F5D2E;
  --lw-rust: #8B3A2B;
  --lw-rust-dark: #5E2519;
  --lw-stamp: #A3321F;
  --lw-ink-blue: #1F2A5C;
  
  --paper: var(--lw-paper);
  --paper-2: var(--lw-cream);
  --card: #FBF6EA;
  --ink: var(--lw-ink);
  --ink-2: var(--lw-ink-soft);
  --ink-3: #8C857B;
  --rule: #B8AA8C;
  --brown: var(--lw-rust);
  --brown-2: var(--lw-rust-dark);
  --ok: #2F5D3A;
  --bad: var(--lw-stamp);
  --mark: rgba(139, 58, 43, .12);
  --pencil: var(--lw-ink-blue);
  --title: "Libre Baskerville", Georgia, serif;
  --text: "Inter", system-ui, sans-serif;
  --hand: "Nothing You Could Do", "Bradley Hand", cursive;
  --script: "Libre Baskerville", Georgia, serif;
  --mono: "Special Elite", "Courier New", monospace;
  --radius: 999px;
  --shadow: 0 2px 2px rgba(40, 28, 10, .25), 0 16px 22px rgba(40, 28, 10, .18);
  --prop-shadow: drop-shadow(0 2px 2px rgba(40, 28, 10, .25)) drop-shadow(0 16px 22px rgba(40, 28, 10, .18));
}
.lw-game, .lw-game *, .lw-game *::before, .lw-game *::after { box-sizing: border-box; }
/* Compatibilità con il tema (Hello Elementor) e con Elementor: azzera dentro il gioco gli stili
   generici che il tema dà a pulsanti, campi e tabelle. Le regole del gioco, più specifiche, vincono. */
.lw-game button, .lw-game [type=button], .lw-game [type=submit] {
  display: inline-block; font: inherit; color: inherit; background-color: transparent; border-radius: 0;
  padding: 0; white-space: normal; text-align: center; transition: none; user-select: auto; line-height: inherit;
}
.lw-game button:hover, .lw-game button:focus, .lw-game [type=button]:hover, .lw-game [type=submit]:hover { color: inherit; background-color: transparent; }
.lw-game input, .lw-game select, .lw-game textarea { width: auto; transition: none; border-radius: 0; }
.lw-game select { display: inline-block; }
.lw-game label { display: inline; line-height: inherit; vertical-align: baseline; }
.lw-game table { width: auto; margin: 0; font-size: inherit; background-color: transparent; border-collapse: collapse; }
.lw-game table td, .lw-game table th { border: 0; padding: 0; line-height: inherit; vertical-align: middle; background-color: transparent; }
.lw-game table tbody > tr:nth-child(odd) > td, .lw-game table tbody > tr:nth-child(odd) > th,
.lw-game table tbody tr:hover > td, .lw-game table tbody tr:hover > th { background-color: transparent; }
.lw-game p { margin-block: 0; }
.lw-game ol, .lw-game ul { margin: 0; }
.lw-game h1, .lw-game h2, .lw-game h3 { margin-block: 0; }
.lw-game {
  margin: 0; overflow-x: clip; background: var(--lw-paper); color: var(--lw-ink);
  font: 300 17px/1.65 var(--text);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
.lw-game img { max-width: 100%; height: auto; display: block; }
.lw-game a { color: var(--lw-rust); text-underline-offset: .18em; }
.lw-game a:hover { color: var(--lw-rust-dark); }
.lw-game button, .lw-game input, .lw-game select { font: inherit; color: inherit; }
.lw-game :focus-visible { outline: 2px solid var(--lw-rust); outline-offset: 2px; }
.lw-game [hidden] { display: none !important; }
.lw-game .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lw-game .skip { position: absolute; left: -999px; top: 8px; background: var(--lw-ink); color: #fff; padding: 8px 14px; z-index: 100; }
.lw-game .skip:focus { left: 8px; }
.lw-game .grain { background-color: var(--lw-cream); background-image: url("../img/ui/grana_carta.webp"); background-size: 320px 320px; }
.lw-game .script { font-family: var(--title); font-style: italic; font-size: 1rem; line-height: 1.4; color: var(--lw-brass); }
.lw-game .caps { font-family: var(--title); text-transform: uppercase; letter-spacing: .14em; font-weight: 400; }
.lw-game h1, .lw-game h2, .lw-game h3 { font-family: var(--title); font-weight: 400; line-height: 1.2; margin: 0; }
.lw-game .ornament { width: 180px; height: auto; margin: 4px auto 6px; }
.lw-game .hand { font-family: var(--hand); font-size: 1.12em; line-height: 1.5; color: var(--lw-ink-blue); }
.lw-game .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  border: 1px solid var(--lw-rust); background: var(--lw-rust); color: #fff;
  font: 500 15px/1.2 var(--text); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .05s;
}
.lw-game .btn:hover { background: var(--lw-rust-dark); border-color: var(--lw-rust-dark); color: #fff; }
.lw-game .btn:active { transform: translateY(1px); }
.lw-game .btn[disabled] { opacity: .45; cursor: not-allowed; }
.lw-game .btn.ghost { background: transparent; color: var(--lw-ink); border-color: var(--lw-ink); }
.lw-game .btn.ghost:hover { background: rgba(26, 23, 20, .06); color: var(--lw-ink); }
.lw-game .btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.lw-game .link-btn { border: 0; background: none; padding: 0; min-height: 44px; font: 500 12px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--lw-ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.lw-game .link-btn:hover { color: var(--lw-rust); }
.lw-game .site-header { max-width: 1240px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 30; }
.lw-game .logo { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--lw-ink); }
.lw-game .logo:hover { color: var(--lw-ink); }
.lw-game .logo-name { font-family: var(--title); font-size: 22px; letter-spacing: .22em; line-height: 1; text-transform: uppercase; }
.lw-game .logo-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .32em; color: var(--lw-grey); text-transform: uppercase; }
.lw-game .site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.lw-game .site-nav li { padding: 4px 20px; }
.lw-game .site-nav li + li { border-left: 1px solid #C9BEA8; }
.lw-game .site-nav li:last-child { padding-right: 0; }
.lw-game .site-nav a { color: var(--lw-ink); text-decoration: none; font: 500 12px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; }
.lw-game .site-nav a:hover { color: var(--lw-rust); }
.lw-game .menu-mobile { display: none; position: static; }
.lw-game .menu-mobile summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #C9BEA8; border-radius: 2px; cursor: pointer; }
.lw-game .menu-mobile summary::-webkit-details-marker { display: none; }
.lw-game .menu-mobile summary span, .lw-game .menu-mobile summary span::before, .lw-game .menu-mobile summary span::after { display: block; width: 20px; height: 1.4px; background: var(--lw-ink); position: relative; content: ""; }
.lw-game .menu-mobile summary span::before { position: absolute; top: -6px; }
.lw-game .menu-mobile summary span::after { position: absolute; top: 6px; }
.lw-game .menu-mobile[open] summary { border-color: var(--lw-rust); }
.lw-game .menu-mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--lw-cream); border-top: 1px solid #C9BEA8; border-bottom: 1px solid #C9BEA8; box-shadow: 0 18px 30px rgba(40, 28, 10, .12); }
.lw-game .menu-mobile nav a { display: block; padding: 18px 20px; border-bottom: 1px solid var(--lw-cream-line); font: 400 24px/1.2 var(--title); color: var(--lw-ink); text-decoration: none; }
.lw-game .menu-mobile nav a:last-child { border-bottom: 0; }
.lw-game .mission-bar { max-width: 1240px; margin: 0 auto; padding: 24px 24px 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.lw-game .mission-name { display: flex; flex-direction: column; gap: 8px; padding-bottom: 28px; }
.lw-game .mission-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .26em; color: var(--lw-grey); text-transform: uppercase; }
.lw-game .mission-title { font-size: 46px; line-height: 1.1; }
.lw-game .steps { display: flex; gap: 4px; align-items: flex-end; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.lw-game .steps::-webkit-scrollbar { display: none; }
.lw-game .steps li { flex: 0 0 auto; }
.lw-game .steps a, .lw-game .steps span {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 36px;
  font-family: var(--mono); font-size: 13px; text-decoration: none; color: #8C857B;
  border: 1px dashed #B7AA90; border-bottom: 0; border-radius: 8px 8px 0 0;
}
.lw-game .steps a { height: 40px; color: var(--lw-ink-soft); border: 0; border-radius: 0; background: url("../img/ui/cartellina_linguetta.webp") 0 0 / 100% 100% no-repeat; }
.lw-game .steps a:hover { color: var(--lw-rust); }
.lw-game .steps a.done::after { content: "✓"; font-size: 10px; margin-left: 3px; color: var(--lw-rust); }
.lw-game .steps a[aria-current="step"] { height: 48px; color: var(--lw-rust); box-shadow: inset 0 -3px 0 var(--lw-rust); }
.lw-game .desk { background: var(--lw-paper); padding: 72px 24px 112px; overflow-x: clip; }
.lw-game .layout { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3.6fr); gap: 48px; align-items: start; }
.lw-game .page {
  position: relative; min-height: 60vh; padding: 56px 60px 64px;
  background: url("../img/ui/carta_rapporto.webp") 0 0 / 100% 100% no-repeat, #F6EEDC;
  filter: var(--prop-shadow);
}
.lw-game .page::before { content: ""; position: absolute; right: -60px; top: -50px; width: 220px; height: 200px; background: url("../img/ui/macchia.webp") center / contain no-repeat; opacity: .55; pointer-events: none; }
.lw-game .page img:not(.ornament) { mix-blend-mode: multiply; }
.lw-game .page-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lw-game .page-head .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--lw-grey); }
.lw-game .page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: .14em; text-transform: uppercase; }
.lw-game .instructions { text-align: center; font-size: 16px; line-height: 1.7; color: var(--lw-ink-soft); max-width: 36em; margin: 0 auto; }
.lw-game .instructions p { margin: 0; }
.lw-game .side { display: flex; flex-direction: column; gap: 48px; position: sticky; top: 24px; }
.lw-game .notebook { position: relative; padding: 30px 22px 26px 0; background: url("../img/ui/carta_scheda.webp") 0 0 / 100% 100% no-repeat; filter: var(--prop-shadow); transform: rotate(1deg); }
.lw-game .notebook::before { content: ""; position: absolute; top: -34px; left: 60px; width: 24px; height: 68px; background: url("../img/ui/graffetta.webp") center / contain no-repeat; filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .3)); }
.lw-game .notebook h2 { margin: 0 0 6px 60px; font-family: var(--mono); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--lw-grey); }
.lw-game .notebook ol {
  list-style: none; margin: 0; padding: 0 0 0 60px; font-family: var(--hand); font-size: 19px; line-height: 38px;
  background-image: linear-gradient(90deg, transparent 46px, rgba(205, 120, 110, .55) 46px, rgba(205, 120, 110, .55) 48px, transparent 48px), repeating-linear-gradient(180deg, transparent 0 37px, rgba(150, 172, 205, .55) 37px 38px);
}
.lw-game .notebook li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lw-game .notebook li .k { color: var(--lw-ink-soft); white-space: nowrap; }
.lw-game .notebook li .v { color: var(--lw-ink-blue); text-align: right; overflow-wrap: anywhere; }
.lw-game .notebook li.empty .v { color: #A9A196; }
.lw-game .progress { position: relative; margin-top: 30px; padding: 34px 28px 30px; display: flex; flex-direction: column; gap: 12px; background: url("../img/ui/cartellina.webp") 0 0 / 100% 100% no-repeat; filter: var(--prop-shadow); transform: rotate(-1.5deg); font-family: var(--mono); color: var(--lw-ink-soft); }
.lw-game .progress .tab { position: absolute; top: -28px; left: 0; width: 54%; height: 30px; display: flex; align-items: center; padding-left: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; background: url("../img/ui/cartellina_linguetta.webp") 0 0 / 100% 100% no-repeat; white-space: nowrap; }
.lw-game .progress .stat { margin: 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.lw-game .progress .note { margin: 0; font: 300 13px/1.6 var(--text); color: var(--lw-ink-soft); }
.lw-game .progress .link-btn { align-self: flex-start; margin-top: 4px; }
.lw-game .tip { text-align: center; font-size: .95rem; font-style: italic; color: var(--lw-grey); margin: 14px 0 0; }
.lw-game .center { text-align: center; }
.lw-game .answer { position: relative; margin: 30px auto 0; max-width: 680px; border-top: 1px solid var(--rule); padding-top: 24px; text-align: center; }
.lw-game .answer-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 14px 26px; }
.lw-game .answer label { font-family: var(--mono); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--lw-grey); }
.lw-game .field { display: inline-flex; align-items: baseline; gap: 8px; }
.lw-game .field input, .lw-game .field select {
  font-family: var(--hand); font-size: 1.45rem; color: var(--pencil); text-align: center;
  border: 0; border-bottom: 1px solid #24201C; background: transparent; border-radius: 0; padding: 0 4px; min-width: 2.4em;
}
.lw-game .field input:focus, .lw-game .field select:focus { outline: none; border-bottom: 2px solid var(--lw-rust); background: rgba(255, 255, 255, .45); }
.lw-game .answer-footer { font-family: var(--title); font-style: italic; color: var(--lw-grey); font-size: 14px; }
.lw-game .answer .buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
.lw-game .feedback { min-height: 1.6em; margin-top: 14px; font-size: 15px; }
.lw-game .feedback.ok { color: var(--ok); }
.lw-game .feedback.bad { color: var(--lw-rust); }
.lw-game .solved-banner { margin-top: 18px; padding: 18px; border: 1px solid rgba(47, 93, 58, .5); background: rgba(47, 93, 58, .06); }
.lw-game .solved-banner p { margin: 0 0 12px; }
.lw-game .hint-recall { display: block; margin: 12px auto 0; min-height: 36px; }
.lw-game .hint-pop {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; width: min(460px, calc(100vw - 24px));
  transform: translate(-50%, 0) rotate(-1deg); padding: 30px 28px 22px;
  background: url("../img/ui/carta_scheda.webp") 0 0 / 100% 100% no-repeat, #F3EAD2;
  filter: drop-shadow(0 2px 3px rgba(40, 28, 10, .3)) drop-shadow(0 22px 34px rgba(40, 28, 10, .28));
  animation: lw-hint-in .22s ease-out; text-align: left;
}
.lw-game .hint-pop::before { content: ""; position: absolute; top: -30px; left: 44px; width: 22px; height: 62px; background: url("../img/ui/graffetta.webp") center / contain no-repeat; filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .3)); }
@keyframes lw-hint-in { from { opacity: 0; transform: translate(-50%, 16px) rotate(-1deg); } }
.lw-game .hint-pop .hint-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lw-game .hint-pop .hint-label { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--lw-grey); border: 1px solid #A89A7C; padding: 4px 9px; }
.lw-game .hint-pop .hint-close { width: 36px; height: 36px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--lw-ink); cursor: pointer; border-radius: 50%; }
.lw-game .hint-pop .hint-close:hover { background: rgba(26, 23, 20, .08); }
.lw-game .hint-pop .hint-text { margin: 0; font: 300 16px/1.65 var(--text); color: var(--lw-ink); }
.lw-game .hint-pop .hint-text strong { font-weight: 600; }
.lw-game .hint-pop .hint-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.lw-game .hint-pop .hint-nav .count { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--lw-grey); }
.lw-game .hint-pop .hint-nav .pager { display: flex; gap: 6px; }
.lw-game .hint-pop .hint-nav .pager button { width: 36px; height: 36px; border: 1px solid #A89A7C; background: transparent; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--lw-ink); }
.lw-game .hint-pop .hint-nav .pager button:disabled { opacity: .35; cursor: default; }
.lw-game .hint-pop .hint-ok { min-height: 40px; padding: 0 20px; font-size: 14px; }
.lw-game .notice-back { position: fixed; inset: 0; z-index: 80; background: rgba(26, 23, 20, .62); display: flex; align-items: flex-start; justify-content: center; padding: 120px 18px 24px; overflow-y: auto; }
.lw-game .notice { position: relative; width: 100%; max-width: 420px; margin-top: 28px; padding: 36px 24px 26px; display: flex; flex-direction: column; gap: 16px; background: url("../img/ui/cartellina.webp") 0 0 / 100% 100% no-repeat, #D9C08F; filter: var(--prop-shadow); }
.lw-game .notice .tab { position: absolute; top: -26px; left: 18px; width: 56%; height: 28px; display: flex; align-items: center; padding-left: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--lw-ink-soft); background: url("../img/ui/cartellina_linguetta.webp") 0 0 / 100% 100% no-repeat; }
.lw-game .notice h2 { font-size: 25px; line-height: 1.25; }
.lw-game .notice p { margin: 0; font-size: 15px; line-height: 1.7; color: #24201C; }
.lw-game .notice .btn { width: 100%; }
.lw-game .notice .link-btn { align-self: center; }
.lw-game .notice .shared { text-align: center; font-size: 13px; color: var(--lw-ink-soft); min-height: 1.2em; }
.lw-game .opening { display: grid; gap: 28px; }
.lw-game .opening .mission-title { text-align: center; }
.lw-game .opening .mission-title .script { font-size: 2rem; }
.lw-game .opening .mission-title h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: .2em; margin-top: 10px; }
.lw-game .opening figure { margin: 0; }
.lw-game .opening .note { text-align: right; }
.lw-game .opening .note small { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: 4px; }
.lw-game .story { max-width: 32em; margin: 0 auto; }
.lw-game .story h2 { text-align: center; font-size: 1.4rem; letter-spacing: .1em; text-transform: uppercase; }
.lw-game .story .sub { text-align: center; font-style: italic; color: var(--ink-2); margin: 4px 0 18px; }
.lw-game .story p { margin: 0 0 1em; }
.lw-game .scenes { display: grid; gap: 26px; margin-top: 8px; }
.lw-game .scene h3 { text-align: center; font-size: 1rem; margin-bottom: 8px; }
.lw-game .scene-strip { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.lw-game .scene-strip img { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; }
.lw-game .sector {
  grid-row: 1; position: relative; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer;
  border-left: 3px solid var(--card); transition: background .12s;
}
.lw-game .sector:first-of-type { border-left: 0; }
.lw-game .sector:hover { background: rgba(255, 255, 255, .18); }
.lw-game .sector.selected { background: rgba(74, 42, 31, .16); box-shadow: inset 0 0 0 3px var(--brown); }
.lw-game .sector.hinted::after { content: "hint"; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font: .62rem/1 var(--title); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--brown); padding: 4px 6px; border-radius: 3px; }
.lw-game .sector-nums { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; font-family: var(--hand); font-size: 1.1rem; margin-top: 2px; }
.lw-game .sector-nums span.sel { color: var(--pencil); font-weight: bold; text-decoration: underline; }
.lw-game .selector-wrap { overflow-x: auto; margin: 18px auto 0; max-width: 620px; }
.lw-game .selector { border-collapse: collapse; margin: 0 auto; font-family: var(--title); }
.lw-game .selector thead th { font-weight: 400; font-size: .8rem; color: var(--ink-3); padding: 0 0 4px; }
.lw-game .selector th.key { font-weight: 400; padding-right: 10px; }
.lw-game .selector th.label { font-weight: 400; font-size: .76rem; letter-spacing: .12em; text-align: right; padding-right: 14px; white-space: nowrap; }
.lw-game .selector td { padding: 2px 4px; text-align: center; }
.lw-game .sel-cell { width: 46px; height: 42px; border: 0; background: none; cursor: pointer; font-family: var(--title); font-size: 1.05rem; display: grid; place-items: center; }
.lw-game .sel-cell span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 2px solid transparent; }
.lw-game .sel-cell:hover span { background: var(--mark); }
.lw-game .sel-cell.on span { border-color: var(--pencil); color: var(--pencil); }
.lw-game .sel-cell.hinted span { border-style: dashed; }
.lw-game .sel-cell:disabled { cursor: default; }
.lw-game .counter { text-align: center; font-family: var(--hand); font-size: 1.15rem; color: var(--pencil); margin: 18px 0 6px; }
.lw-game .word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 2px 6px; }
.lw-game .word { border: 0; background: none; padding: 5px 2px; font-family: var(--text); font-size: .86rem; letter-spacing: .02em; cursor: pointer; border-radius: 3px; position: relative; white-space: nowrap; }
.lw-game .word:hover { background: var(--mark); }
.lw-game .word.crossed { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--pencil); text-decoration-thickness: 2px; }
.lw-game .word.by-hint { text-decoration-style: dotted; }
.lw-game .word:disabled { cursor: default; }
.lw-game .archive { position: relative; max-width: 720px; margin: 18px auto 0; }
.lw-game .archive img { width: 100%; }
.lw-game .archive-grid { position: absolute; inset: 0; display: grid; }
.lw-game .arch-cell { position: relative; border: 0; background: transparent; cursor: pointer; padding: 0; display: flex; align-items: flex-end; justify-content: center; }
.lw-game .arch-cell:hover { background: rgba(74, 42, 31, .08); }
.lw-game .arch-label { font-family: var(--title); font-size: clamp(8px, 1.4vw, 12px); letter-spacing: .08em; color: var(--ink); margin-bottom: 3.5%; }
.lw-game .arch-cell.x::before, .lw-game .arch-cell.x::after {
  content: ""; position: absolute; left: var(--cx, 50%); top: var(--cy, 42%); width: calc(var(--sz, 84%) * .8); height: 3px; background: var(--pencil); border-radius: 2px;
}
.lw-game .arch-cell.x::before { transform: translate(-50%, -50%) rotate(42deg); }
.lw-game .arch-cell.x::after { transform: translate(-50%, -50%) rotate(-42deg); }
.lw-game .arch-cell.by-hint::before, .lw-game .arch-cell.by-hint::after { opacity: .55; }
.lw-game .arch-cell.o::before { content: ""; position: absolute; left: var(--cx, 50%); top: var(--cy, 42%); width: calc(var(--sz, 84%) * .7); aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid var(--pencil); border-radius: 50%; }
.lw-game .arch-cell:disabled { cursor: default; }
.lw-game .clues { max-width: 640px; margin: 18px auto 0; padding: 0; list-style: none; counter-reset: clue; }
.lw-game .clues li { counter-increment: clue; }
.lw-game .clue { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 5px 6px; font-size: .98rem; cursor: pointer; border-radius: 3px; }
.lw-game .clue::before { content: counter(clue) "."; font-family: var(--title); font-size: .8rem; color: var(--ink-3); min-width: 1.4em; padding-top: 3px; }
.lw-game .clue:hover { background: var(--mark); }
.lw-game .clues li.done .clue { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--pencil); }
.lw-game .section-title { font-family: var(--title); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); text-align: center; margin: 26px 0 6px; font-weight: 400; }
.lw-game .instructions.after { margin-top: 18px; }
.lw-game .sudoku-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 16px; }
.lw-game .sudoku { border-collapse: collapse; font-family: var(--title); }
.lw-game .sudoku thead th { font-weight: 400; font-size: .72rem; color: var(--ink-3); padding-bottom: 4px; }
.lw-game .sudoku tbody th { font-weight: 400; font-size: .72rem; color: var(--ink-3); padding-right: 8px; }
.lw-game .sudoku td { border: 1px solid #9a948c; padding: 0; }
.lw-game .sudoku td.c0 { border-left: 2px solid var(--ink); }
.lw-game .sudoku td.c2, .lw-game .sudoku td.c5, .lw-game .sudoku td.c8 { border-right: 2px solid var(--ink); }
.lw-game .sudoku tr:first-child td, .lw-game .sudoku td.r0 { border-top: 2px solid var(--ink); }
.lw-game .sudoku td.r2, .lw-game .sudoku td.r5, .lw-game .sudoku td.r8 { border-bottom: 2px solid var(--ink); }
.lw-game .sd-cell { width: 42px; height: 42px; border: 0; background: transparent; padding: 0; font-family: var(--hand); font-size: 1.35rem; color: var(--pencil); cursor: pointer; display: grid; place-items: center; }
.lw-game .sd-cell.given { font-family: var(--title); font-size: 1.12rem; color: var(--ink); cursor: default; }
.lw-game .sd-cell.peer { background: rgba(74, 42, 31, .05); }
.lw-game .sd-cell.same { background: rgba(59, 58, 140, .1); }
.lw-game .sd-cell.sel { background: rgba(59, 58, 140, .2); outline: 2px solid var(--pencil); outline-offset: -2px; }
.lw-game .sd-cell.hinted { color: var(--brown); font-style: italic; }
.lw-game .sd-cell.wrong { color: var(--bad); background: rgba(138, 47, 36, .1); }
.lw-game .keypad { display: grid; grid-template-columns: repeat(3, 52px); gap: 8px; }
.lw-game .keypad button { height: 52px; border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius); font-family: var(--title); font-size: 1.1rem; cursor: pointer; }
.lw-game .keypad button:hover { background: var(--mark); }
.lw-game .keypad .erase { grid-column: span 3; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; height: 40px; }
.lw-game .strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 26px auto 0; font-family: var(--title); font-size: 1.05rem; }
.lw-game .strip-box { display: inline-flex; align-items: center; gap: 2px; position: relative; padding: 0 2px; }
.lw-game .strip-box input { width: 1.6em; text-align: center; border: 0; border-bottom: 1px solid var(--ink-3); background: transparent; font-family: var(--hand); font-size: 1.15rem; color: var(--pencil); padding: 0; }
.lw-game .strip-box.struck::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px; background: var(--ink); pointer-events: none; }
.lw-game .strip-box.struck { color: var(--ink-2); }
.lw-game .egrids { display: grid; gap: 22px; margin-top: 16px; justify-content: center; }
.lw-game .egrid { border-collapse: collapse; margin: 0 auto; }
.lw-game .egrid thead th { font-weight: 400; vertical-align: bottom; padding: 0 2px 6px; font-size: .84rem; line-height: 1.25; width: 92px; }
.lw-game .egrid thead th .n { display: block; font-family: var(--title); color: var(--ink-3); font-size: .74rem; }
.lw-game .egrid .g-title { font-family: var(--title); font-size: .8rem; letter-spacing: .14em; text-align: left; width: auto; }
.lw-game .egrid th.k { font-family: var(--title); font-weight: 400; padding-right: 8px; color: var(--ink-3); font-size: .8rem; }
.lw-game .egrid th.item { font-weight: 400; text-align: right; padding-right: 12px; white-space: nowrap; font-size: .95rem; }
.lw-game .egrid td { border: 1px solid #9a948c; padding: 0; }
.lw-game .eg-cell { width: 100%; min-width: 46px; height: 42px; border: 0; background: transparent; cursor: pointer; font-family: var(--title); font-size: 1.15rem; color: var(--pencil); }
.lw-game .eg-cell:hover { background: var(--mark); }
.lw-game .eg-cell.o { font-size: 1.7rem; line-height: 1; }
.lw-game .eg-cell.auto { color: #8e8cc0; }
.lw-game .eg-cell.wrong { background: rgba(138, 47, 36, .14); color: var(--bad); }
.lw-game .question { text-align: center; margin: 0; }
.lw-game .loop-wrap { max-width: 560px; margin: 14px auto 0; }
.lw-game .loop-svg { width: 100%; height: auto; display: block; touch-action: manipulation; cursor: pointer; user-select: none; -webkit-user-select: none; }
.lw-game .loop-svg .grid line { stroke: #d4cdc1; stroke-width: 1; }
.lw-game .loop-svg .dots circle { fill: #8a847b; }
.lw-game .loop-svg .nums text { font-family: "Libre Baskerville", serif; font-size: 17px; text-anchor: middle; fill: var(--ink); }
.lw-game .loop-svg .nums text.met { fill: #a9a39a; }
.lw-game .loop-svg .nums text.over { fill: var(--bad); font-weight: 700; }
.lw-game .loop-svg .nums text.q { fill: var(--ink-3); }
.lw-game .loop-svg .nums text.q.set { fill: var(--pencil); font-family: "Nothing You Could Do", cursive; font-size: 21px; }
.lw-game .loop-svg .lines line.on { stroke: var(--pencil); stroke-width: 4.5; stroke-linecap: round; }
.lw-game .loop-svg .lines line.on.hinted { stroke: var(--brown); }
.lw-game .loop-svg .lines path.no { stroke: #a9a39a; stroke-width: 1.6; fill: none; }
.lw-game .loop-svg .inside rect { fill: rgba(74, 42, 31, .1); }
.lw-game .ws-wrap { position: relative; max-width: 640px; margin: 14px auto 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.lw-game .ws-grid { display: grid; }
.lw-game .ws-cell { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--title); font-size: clamp(9px, 2.1vw, 15px); cursor: pointer; }
.lw-game .ws-cell.pending { background: rgba(59, 58, 140, .22); border-radius: 50%; }
.lw-game .ws-cell.flag { background: rgba(74, 42, 31, .28); border-radius: 50%; }
.lw-game .ws-over { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lw-game .ws-over line { stroke-width: .74; stroke-linecap: round; fill: none; }
.lw-game .ws-over .cap { stroke: rgba(59, 58, 140, .22); }
.lw-game .ws-over .cap.hinted { stroke: rgba(74, 42, 31, .2); }
.lw-game .ws-over .cap.target { stroke: rgba(74, 42, 31, .42); }
.lw-game .ws-over .cap.live { stroke: rgba(59, 58, 140, .35); }
.lw-game .ws-list { list-style: none; padding: 0; margin: 14px auto 0; max-width: 640px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 10px; }
.lw-game .ws-word { border: 0; background: none; padding: 4px 6px; font-family: var(--text); font-size: .95rem; cursor: pointer; border-radius: 999px; text-align: left; width: 100%; }
.lw-game .ws-word .num { color: var(--ink-3); font-size: .85em; }
.lw-game .ws-list li.found .ws-word { text-decoration: line-through; text-decoration-color: var(--pencil); color: var(--ink-2); }
.lw-game .ws-list li.target .ws-word { box-shadow: inset 0 0 0 2px var(--brown); }
.lw-game .cc-scroll { overflow-x: auto; margin: 14px auto 0; padding-bottom: 6px; container-type: inline-size; }
.lw-game .cc-grid { --cc: clamp(22px, calc((100cqw - 4px) / var(--cols, 23)), 30px); display: grid; width: max-content; margin: 0 auto; padding: 2px; }
.lw-game .cc-cell { width: var(--cc); height: var(--cc); border: 1px solid var(--ink); margin: 0 -1px -1px 0; background: var(--card); text-align: center; padding: 0; font-family: var(--title); font-size: calc(var(--cc) * .52); text-transform: uppercase; color: var(--pencil); border-radius: 0; caret-color: transparent; }
.lw-game .cc-cell:focus { outline: none; background: rgba(59, 58, 140, .22); }
.lw-game .cc-cell.start { background: #dcd7cf; }
.lw-game .cc-cell.key { border-width: 2px; }
.lw-game .cc-cell.active { background: rgba(59, 58, 140, .1); }
.lw-game .cc-cell.active:focus { background: rgba(59, 58, 140, .26); }
.lw-game .cc-cell.hinted { color: var(--brown); font-style: italic; }
.lw-game .cc-cell.wrong { color: var(--bad); background: rgba(138, 47, 36, .12); }
.lw-game .cc-label { font-family: var(--hand); font-size: .95rem; color: var(--ink); display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.lw-game .cc-list { max-width: 640px; margin: 18px auto 0; font-size: .92rem; line-height: 1.9; }
.lw-game .cc-list p { margin: 0; }
.lw-game .cc-list strong { font-family: var(--title); font-weight: 400; font-size: .74rem; letter-spacing: .1em; margin-right: 6px; }
.lw-game .cc-w { margin-right: 6px; }
.lw-game .cc-w.used { text-decoration: line-through; text-decoration-color: var(--pencil); color: var(--ink-3); }
.lw-game .cipher-scroll { overflow-x: auto; margin: 18px auto 0; max-width: 100%; }
.lw-game .cipher-keys, .lw-game .cipher-row { display: grid; grid-template-columns: repeat(26, minmax(20px, 1fr)); min-width: 540px; }
.lw-game .cipher-keys span { font-family: var(--hand); font-size: .9rem; text-align: center; border-bottom: 1px solid var(--ink-3); margin: 0 3px 6px; }
.lw-game .cipher-rows { display: grid; gap: 4px; }
.lw-game .cipher-row span { text-align: center; font-family: var(--title); font-size: 1.05rem; padding: 4px 0; }
.lw-game .cipher-row.upper span.slot { color: var(--pencil); font-family: var(--hand); font-size: 1.2rem; border-bottom: 1px solid var(--ink); margin: 0 2px; padding: 0; }
.lw-game .cipher-row.upper span.blank { border-bottom: 1px solid var(--ink); margin: 0 2px; }
.lw-game .cipher-row.lower { border-top: 1px solid var(--rule); }
.lw-game .cipher-rows.small .cipher-row span { font-size: .9rem; }
.lw-game .cipher-row span.hl { background: rgba(59, 58, 140, .18); }
.lw-game .code-text { display: grid; gap: 22px; margin: 26px auto 0; justify-content: center; }
.lw-game .code-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.lw-game .code-word { display: inline-flex; gap: 3px; }
.lw-game .code-ch { display: inline-flex; flex-direction: column; align-items: center; width: 26px; }
.lw-game .code-ch .top { font-family: var(--title); font-size: 1.05rem; height: 1.6em; line-height: 1.6em; }
.lw-game .code-ch input { width: 26px; height: 32px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; text-align: center; font-family: var(--hand); font-size: 1.25rem; color: var(--pencil); padding: 0; border-radius: 0; text-transform: uppercase; }
.lw-game .code-ch input:focus { outline: none; background: rgba(59, 58, 140, .14); }
.lw-game .code-ch input.hinted { color: var(--brown); }
.lw-game .code-ch input.wrong { color: var(--bad); background: rgba(138, 47, 36, .1); }
.lw-game .code-ch.punct { width: 10px; }
.lw-game .code-ch.punct .bottom { font-family: var(--title); height: 32px; line-height: 40px; }
.lw-game .finale { text-align: center; margin-top: 10px; }
.lw-game .finale h2 { font-size: 1.6rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.lw-game .finale p { max-width: 32em; margin: 0 auto 1em; }
.lw-game .case-file { max-width: 460px; margin: 0 auto 22px; padding: 18px 22px; border: 1px solid var(--rule); background: #fbf8f1; box-shadow: var(--shadow); }
.lw-game .case-file-label { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--ink-2); margin-bottom: 6px; }
.lw-game .case-file .hand { font-size: 1.5rem; color: var(--pencil); margin: 0; }
.lw-game .finale .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.lw-game .opening .mission-title .script { font-size: 1rem; }
.lw-game .opening .mission-title h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); letter-spacing: .16em; }
.lw-game .opening .note { font-family: var(--hand); }
.lw-game .opening .note small { font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lw-game .story h2 { font-size: 1.35rem; }
.lw-game .story .sub { font-family: var(--title); }
.lw-game .sector { border-left-color: #F1E7CC; }
.lw-game .sector.selected { background: rgba(31, 42, 92, .16); box-shadow: inset 0 0 0 3px var(--pencil); }
.lw-game .sector.hinted::after { font-family: var(--mono); background: var(--lw-rust); }
.lw-game .keypad button { background: rgba(255, 255, 255, .5); border-color: var(--rule); border-radius: 4px; }
.lw-game .cc-cell { background: rgba(255, 253, 246, .85); }
.lw-game .case-file { background: url("../img/ui/cartellina.webp") 0 0 / 100% 100% no-repeat; border: 0; padding: 28px 26px; filter: var(--prop-shadow); box-shadow: none; }
.lw-game .case-file-label { font-family: var(--mono); }
.lw-game .finale h2 { letter-spacing: .14em; }
.lw-game .site-footer { background: var(--lw-ink); color: #A99F8E; padding: 56px 24px 36px; font-size: 13px; }
.lw-game .footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.lw-game .footer-logo { font-family: var(--title); font-size: 18px; letter-spacing: .22em; text-transform: uppercase; color: #F3EDE0; }
.lw-game .site-footer a { color: #E9E2D3; }
.lw-game .site-footer a:hover { color: #fff; }
@media (max-width: 1100px) {
.lw-game .layout { gap: 32px; }
.lw-game .page { padding: 48px 40px 56px; }

}
@media (max-width: 980px) {
.lw-game .layout { grid-template-columns: minmax(0, 1fr); }
.lw-game .side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.lw-game .progress { margin-top: 30px; }

}
@media (max-width: 820px) {
.lw-game .site-nav { display: none; }
.lw-game .menu-mobile { display: block; }
.lw-game .site-header { padding: 18px 20px; }
.lw-game .logo { gap: 5px; }
.lw-game .logo-name { font-size: 18px; letter-spacing: .2em; }
.lw-game .logo-sub { font-size: 8.5px; letter-spacing: .3em; }
.lw-game .mission-bar { padding: 12px 20px 0; gap: 18px; }
.lw-game .mission-name { padding-bottom: 0; gap: 6px; }
.lw-game .mission-kicker { font-size: 10px; letter-spacing: .22em; }
.lw-game .mission-title { font-size: 32px; }
.lw-game .steps { width: 100%; }
.lw-game .desk { padding: 36px 12px 56px; }
.lw-game .side { grid-template-columns: minmax(0, 1fr); }
.lw-game .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
.lw-game .footer-logo { display: none; }

}
@media (max-width: 640px) {
.lw-game { font-size: 16px; }
.lw-game .page { padding: 34px 16px 40px; }
.lw-game .page::before { width: 150px; right: -30px; top: -40px; }
.lw-game .page-head h1 { font-size: 1.55rem; letter-spacing: .12em; }
.lw-game .instructions { font-size: 14px; }
.lw-game .btn { width: 100%; }
.lw-game .answer .buttons { flex-direction: column; align-items: stretch; }
.lw-game .hint-pop { bottom: 12px; padding: 26px 18px 18px; }
.lw-game .sector { border-left-width: 2px; }
.lw-game .word-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.lw-game .word { font-size: .82rem; padding: 7px 2px; }
.lw-game .selector th.label { font-size: .62rem; letter-spacing: .06em; padding-right: 6px; }
.lw-game .sel-cell { width: 38px; }
.lw-game .sel-cell span { width: 32px; height: 32px; }
.lw-game .arch-cell.x::before, .lw-game .arch-cell.x::after { height: 2px; }
.lw-game .arch-cell.o::before { border-width: 2px; }
.lw-game .sd-cell { width: 33px; height: 33px; font-size: 1.15rem; }
.lw-game .sd-cell.given { font-size: .98rem; }
.lw-game .sudoku tbody th { padding-right: 4px; }
.lw-game .keypad { grid-template-columns: repeat(5, 52px); }
.lw-game .keypad .erase { grid-column: span 5; }
.lw-game .egrid thead th { width: auto; font-size: .7rem; }
.lw-game .egrid th.item { font-size: .8rem; padding-right: 6px; white-space: normal; }
.lw-game .eg-cell { min-width: 40px; }
.lw-game .ws-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lw-game .code-line { gap: 8px 14px; }
.lw-game .code-ch, .lw-game .code-ch input { width: 22px; }

}

