/* Identitat de Llemosí inspirada en la paleta i la tipografia de Renaixentista. */
@font-face{font-family:Cinzel;src:url('./fonts/cinzel-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{--ink:#33251c;--muted:#655e50;--blue:#785b24;--pale:#eee5d2;--line:#cfc2a6;--bg:#f7f5f0;--gold:#d6c293;--dark:#2c1d17;--green:#245d3c;--red:#983c36;font-family:Georgia,'Times New Roman',serif;background:var(--bg)}
body{background-color:var(--bg);background-image:url('./fonts/l-pattern.svg');background-size:48px 48px}
h1,h2,.word,.review-word,.brand,.setting-title,.primary,.secondary{font-family:Cinzel,Georgia,serif;font-weight:400}
button:focus-visible,a:focus-visible,.setting-option input:focus-visible+.setting-card{outline-color:#ae7b1e;outline-offset:4px}
.topbar{max-width:none;margin:0;padding:18px max(5%,calc((100vw - 1140px)/2));background:var(--dark);border-bottom:1px solid #d6c29355;color:var(--gold)}
.brand{color:var(--gold);font-size:1.55rem;letter-spacing:.025em;gap:10px}.brand-mark{background:none;color:var(--gold);font:36px Georgia;width:32px;height:36px;padding:0;border-radius:0}.beta{color:#b6a989;font-size:.7rem;letter-spacing:.1em}.quiet{color:inherit;font-size:1rem}.topbar .quiet{color:var(--gold)}.quiet span{border-color:#d6c29366}
.masthead{text-align:center;background:var(--dark);color:var(--gold);padding:28px 24px 23px;border-bottom:3px double #a58a54}.masthead h1{font-size:clamp(3.5rem,7vw,5.6rem);line-height:1.2;letter-spacing:.035em;margin:7px 0 10px}.masthead .eyebrow{color:#c1ae82;font-size:.75rem;font-weight:400;letter-spacing:.2em}.motto{font-size:clamp(1.1rem,2vw,1.4rem);font-style:italic;line-height:1.5;text-wrap:balance}.ornament{display:flex;align-items:center;justify-content:center;gap:13px;color:#b99854;font-size:34px;height:37px;max-width:260px;margin:0 auto 19px}.ornament:before,.ornament:after{content:'';width:58px;height:5px;border-block:1px solid #a58a5488}.ornament span{font-size:25px}.ornament-bottom{font-size:20px;margin:14px auto 0;height:28px}
.home-v2{max-width:1140px;padding:0 28px;margin:40px auto 45px;grid-template-columns:1.25fr .85fr;gap:48px;align-items:stretch}.setup-panel h2{font-size:1.7rem;line-height:1.3;margin:12px 0}.home-v2 .eyebrow{font-size:.73rem;letter-spacing:.12em}.home-v2 .intro{font-size:1.08rem}.home-v2 .intro br{display:none}.home-v2 .intro{max-width:470px}.eyebrow{color:var(--blue)}
fieldset{margin-top:22px}legend{font-size:1rem;font-weight:400;margin-bottom:9px}.setting-grid{max-width:none;gap:12px}.setting-card{background:#fdfbf6;border:1px solid var(--line);border-radius:3px;padding:15px 16px;box-shadow:0 2px 4px #332b1605}.setting-title{font-size:1.1rem}.setting-detail{font-size:.94rem;color:#655e50}.selection-dot{border-color:#9a8b6d;width:16px;height:16px}.setting-option input:checked+.setting-card{background:#38271e;color:var(--gold);border-color:#8c723f;box-shadow:inset 0 0 0 1px #d6c29333}.setting-option input:checked+.setting-card .setting-detail{color:#d1c7b1}.setting-option input:checked+.setting-card .selection-dot{border:4px solid var(--gold);background:#38271e}.setting-option:hover .setting-card{border-color:#8c723f}
.primary{color:#f3e8ce;background:#38271e;border:1px solid #987e48;border-radius:3px;font-size:1rem;letter-spacing:.035em;box-shadow:0 3px 8px #29201512;padding:16px 23px}.primary:hover{background:#503a27;color:#fff4d9}.home-v2 .start{max-width:none;margin-top:23px}.start small{font:1rem Georgia;border-color:#d6c29355;color:var(--gold)}.micro{font-size:.88rem}.stats{max-width:none;gap:18px;justify-content:space-between}.stat strong{font-family:Cinzel,Georgia,serif;font-size:1.45rem}.stat span{font-size:.88rem}
.home-v2 .illustration{background:#35251d;color:var(--gold);border-radius:3px;border:1px solid #a58a54;min-height:0;padding:28px 28px 24px;position:relative;display:flex;flex-direction:column;justify-content:center;outline:1px solid #a58a5466;outline-offset:-8px;box-shadow:0 8px 24px #2c241417}.book-ornament{font-size:50px;line-height:1;color:#b99854;text-align:center}.sample{background:none;border:0;border-radius:0;box-shadow:none;transform:none;margin:22px 0 0;max-width:none;padding:0 4px;text-align:center}.sample .eyebrow{font-size:.7rem;color:#c2ae80;line-height:1.6}.sample h2{font-size:4.4rem;letter-spacing:.01em;margin:19px 0 3px}.sample .pos{color:#c1b69e;font-size:1rem}.sample p{font-size:1.18rem;line-height:1.55;margin-top:24px}.sample .example{border-color:#b4985b66;color:#d3c8b1;font-size:1.05rem;line-height:1.6;padding-top:21px;margin-top:23px}.stamp{position:static;text-align:center;transform:none;background:none;border-radius:0;border-top:1px solid #b4985b66;box-shadow:none;margin:25px 4px 0;padding:20px 0 0;color:var(--gold);font-size:1rem;font-weight:400;font-style:italic}.home-v2 .illustration-caption{display:block;margin:13px 0 0;padding:0;text-align:center;color:#c1b69e;font-size:.82rem;letter-spacing:.08em}
footer{margin:0;background:var(--dark);padding:22px 5%;border-top:3px double #a58a54;color:#cbbd9f;font-size:.88rem}
.game,.result{margin-top:30px;margin-bottom:45px;max-width:900px}.game-top{font-size:1rem}.round-label,.score{font-size:1rem}.score{background:#fcfaf5;border-radius:3px}.progress{gap:9px}.step{height:5px;border-radius:0}.step.current{background:#9e7c36}.step.good{background:#477254}.step.bad{background:#ab5b50}.mode-label{font-size:.9rem;border-radius:2px;border:1px solid var(--line);background:#f1eadb;color:#685122}.question-head{margin-top:10px}.word{letter-spacing:0;font-size:clamp(2rem,5vw,3.8rem);line-height:1.2}.pos{font-size:1rem}.prompt{font-size:1.1rem}.timer{background:conic-gradient(#9d7d3b calc(var(--fraction)*360deg),#dfd5c0 0)}.timer-inner{background:#faf7ef}.timer b{font-family:Cinzel,Georgia,serif;font-weight:400}.timer small{font-size:.8rem}
.choice{background:#fefcf7;border:1px solid #c8b990;border-radius:3px;padding:21px 23px;gap:18px}.choice-key{font-family:Cinzel,Georgia,serif;background:#eee7d6;border-color:#c8b990;color:#78602d;border-radius:2px;font-size:1rem}.definition{font-size:1.13rem;font-weight:400;line-height:1.5}.example{font-size:1.05rem;color:#6b6253;line-height:1.5}.choice:not(:disabled):hover{border-color:#8e7137;box-shadow:inset 0 0 0 1px #8e7137;background:#faf4e6}.choice.correct{background:#edf4e9;border-color:#6e9273}.choice.wrong{background:#faeeea;border-color:#b77e73}.choice.false{background:#eeeae1}.choice-tag{font-size:.9rem;font-weight:400}.keyboard{font-size:.88rem}.feedback{background:#fcfaf4;border-radius:3px;border-color:var(--line)}.feedback h3{font-family:Cinzel,Georgia,serif;font-size:1.18rem;font-weight:400}.feedback p{font-size:1rem}.feedback a{font-size:.95rem}.feedback .primary{font-size:.85rem}
.result-icon{border-radius:50%;background:#eee3cb;border:1px solid #bda56f}.result h1{font-size:clamp(2rem,4vw,3.2rem);line-height:1.3}.result-score{color:#795f2b}.result-score span{font-family:Georgia,serif}.result .intro{font-size:1.1rem}.secondary{background:#fdfbf6;border-radius:3px;border-color:#b9a67c;font-size:.85rem}.review-title h2{font:1.15rem Cinzel,Georgia,serif;line-height:1.5}.review-title span{font-size:.9rem}.review{background:#fdfbf6;border-radius:3px}.review-word{font-size:1.5rem}.review-item p{font-size:1.1rem}.review-item .example{font-size:1rem}.badge{font-size:.85rem;border-radius:2px}.bank-note{font-size:.88rem}
dialog{background:#fcf9f1;border-radius:4px;border:1px solid #a88c50;box-shadow:0 20px 90px #0006}dialog::backdrop{background:#24160fd9}dialog h2{font-family:Cinzel,Georgia,serif;font-size:2rem}dialog p,dialog ol{font-size:1.05rem}.source-note{background:#eee7d7;border-radius:2px}.source-note p,.source-note a{font-size:.95rem}.source-note strong{font-size:1rem}
@media(min-width:1600px){.home-v2{margin-top:40px;margin-bottom:45px}}
@media(max-width:800px){.home-v2{gap:26px;padding:0 25px;grid-template-columns:1.2fr .85fr}.home-v2 .illustration{padding:24px 19px;min-height:0}.setting-card{padding:14px 12px}.setting-title{font-size:1rem}.setting-detail{font-size:.88rem}.stats{gap:12px}.stat strong{font-size:1.2rem}.stat span{font-size:.8rem}}
@media(max-width:620px){.topbar{padding:14px 18px;gap:10px}.brand{font-size:1.25rem}.brand-mark{font-size:29px;width:25px}.quiet{font-size:.9rem;padding:8px 0}.quiet span{margin-left:4px}.masthead{padding:22px 20px 19px}.masthead h1{font-size:3.6rem}.masthead .eyebrow{font-size:.65rem;letter-spacing:.12em}.motto{font-size:1.1rem;max-width:340px;margin:auto}.ornament{margin-bottom:14px;font-size:29px;height:30px}.ornament-bottom{margin-top:12px;margin-bottom:0;height:25px;font-size:18px}.home-v2{display:block;padding:0 20px;margin:28px auto 32px}.home-v2 .eyebrow{font-size:.66rem}.setup-panel h2{font-size:1.4rem}.home-v2 .intro{font-size:1rem}.setting-title{font-size:1rem}.setting-detail{font-size:.9rem}.setting-card{padding:14px 12px}.home-v2 .illustration{display:none}.stats{gap:10px}.stat strong{font-size:1.2rem}.stat span{font-size:.8rem}.micro{font-size:.85rem}.game,.result{padding:0 16px;margin-top:23px}.word{font-size:clamp(1.7rem,7vw,2.8rem)}.choice{padding:16px 13px;gap:12px}.definition{font-size:1.05rem}.example{font-size:1rem}.choice-key{min-width:27px}.question-head{gap:12px}.timer{min-width:70px}.feedback .primary{font-size:.9rem}.review-title{display:block}.review-title span{display:block;max-width:none;text-align:left;margin-top:5px}.review-head{flex-wrap:wrap;gap:8px}.result h1{font-size:2rem}footer{padding:20px;gap:7px;font-size:.83rem}.review-item{padding:20px 16px}}

/* Cal·ligrafia clàssica i paleta de marrons. */
@font-face{font-family:'Pinyon Script';src:url('./fonts/pinyon-script.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Petit Formal Script';src:url('./fonts/petit-formal-script.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.masthead h1{font-family:'Pinyon Script',Georgia,serif;font-size:clamp(5.5rem,10vw,8.5rem);font-weight:400;line-height:1.12;letter-spacing:0;margin:14px 0 20px;padding:0 12px}
.masthead .eyebrow,.motto{font-family:'Petit Formal Script',Georgia,serif;font-style:normal;font-weight:400;letter-spacing:0;text-transform:none}
.masthead .eyebrow{font-size:1.05rem;line-height:1.7;color:var(--gold)}
.motto{font-size:clamp(1.1rem,1.9vw,1.4rem);line-height:1.8;max-width:830px;margin:auto}
.brand{font-family:'Pinyon Script',Georgia,serif;font-size:2.4rem;letter-spacing:0;line-height:1.2}.brand .beta{font-family:Georgia,serif}
.feedback a{padding:10px 0;min-height:44px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:620px){.brand{font-size:2rem}.masthead h1{font-size:5.5rem;margin:10px 0 16px}.masthead .eyebrow{font-size:.95rem;letter-spacing:0}.motto{font-size:1.06rem;line-height:1.9;max-width:340px}}

/* Lectura còmoda del qüestionari i temps de resposta. */
.choice{padding:23px;gap:18px}.choices{gap:16px}.choice>span:last-child{min-width:0}
.choice .definition,.review-item>p:not(.example){font-family:Georgia,'Times New Roman',serif;font-size:1.375rem;font-weight:700;line-height:1.55;color:var(--ink)}
.choice .example,.review-item .example{font-family:Georgia,'Times New Roman',serif;font-size:1.375rem;font-weight:600;font-style:normal;line-height:1.6;color:#49392b;margin-top:12px}
.choice-key{min-width:35px;height:35px;font-size:1.1rem}.choice-tag{font-size:1.0625rem;line-height:1.5}.prompt{font-size:1.25rem}.pos{font-size:1.125rem}.feedback p,.feedback a{font-size:1.125rem;line-height:1.6}.feedback h3{font-size:1.35rem}.feedback .round-time{margin-top:8px;color:var(--ink)}
.result-metrics{display:flex;justify-content:center;gap:0;margin:19px auto 15px;max-width:640px;padding:18px 0;border-block:1px solid var(--line)}.result-metrics>div{flex:1;min-width:0;padding:0 18px}.result-metrics>div+div{border-left:1px solid var(--line)}.result-score,.result-time{font-family:Georgia,serif;font-size:3.8rem;line-height:1.2;color:#795f2b;margin:0;font-variant-numeric:tabular-nums}.result-score span,.result-time span{font-family:Georgia,serif;font-size:1.6rem;color:var(--muted)}.metric-label{font-size:1.125rem;color:var(--ink);margin-top:6px}.timing-note{font-size:1rem;line-height:1.6;color:var(--muted);max-width:550px;margin:0 auto 23px}
@media(max-width:620px){.choice{padding:19px 14px;gap:12px}.choice-key{min-width:29px;height:32px}.choice .definition,.choice .example,.review-item>p:not(.example),.review-item .example{font-size:1.375rem}.result-metrics>div{padding:0 10px}.result-score,.result-time{font-size:2.9rem}.result-score span,.result-time span{font-size:1.3rem}.metric-label{font-size:1rem;line-height:1.5}.timing-note{font-size:1rem}}
@media(max-width:360px){.result-metrics{flex-direction:column;gap:18px}.result-metrics>div+div{border-left:0;border-top:1px solid var(--line);padding-top:18px}}

/* El temps complet conserva les vuit posicions també al mòbil. */
.result-time{font-size:3rem;white-space:nowrap}
@media(max-width:620px){.result-time{font-size:1.8rem;line-height:1.94}}

/* Objectiu de puntuació i missatge específic per a cada resultat. */
.home-v2 .stats{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.score-goal{grid-column:1/-1;font-size:1.125rem;line-height:1.5;font-weight:400;color:var(--ink);margin:0}
.result .score-message{font-size:1.375rem;font-weight:600;line-height:1.6;max-width:640px;margin:20px auto}

.attribution,.review-item .attribution{font-size:1rem;font-weight:400;line-height:1.6;color:var(--muted);margin-top:14px}.attribution a{font-size:inherit}.source-page{max-width:800px;margin:35px auto;padding:0 24px}.source-page h1{font-size:2rem}.source-page h2{font-size:1.3rem;margin-top:28px}.source-page p{font-size:1.125rem;line-height:1.7;margin:16px 0}

/* Nivells i durades de la versió 1.0. */
.level-grid .setting-option:last-child{grid-column:1/-1}
.duration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.duration-grid .setting-card{padding:15px 10px}
.duration-grid .setting-title{font-size:1rem;gap:5px}
.progress{gap:4px}
@media(max-width:380px){.duration-grid{grid-template-columns:1fr}.duration-grid .setting-card{padding:13px 16px}}

.site-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-items:center;gap:24px;line-height:1.6}
.site-footer .footer-credit{text-align:center;text-wrap:balance}
.site-footer>span:last-child{text-align:right}
.site-footer .footer-credit a{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media(max-width:800px){.site-footer{grid-template-columns:1fr;gap:12px;text-align:center}.site-footer>span:last-child{text-align:center}.site-footer>span:empty{display:none}}

/* Historial personal i resultats compartits. */
[hidden]{display:none!important}
.header-actions{display:flex;gap:22px;align-items:center;flex-wrap:wrap}.header-actions .quiet{min-height:44px}
.personal-page{max-width:960px;margin:45px auto;padding:0 24px;line-height:1.65}.personal-page h1{font-size:clamp(2rem,5vw,3rem);margin:12px 0}.personal-page h2{font-size:1.4rem;margin:22px 0 12px}.personal-page p{font-size:1.125rem;margin:14px 0}.personal-page .history-intro{font-size:1.4rem}.history-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:26px 0}.history-filters label{font-size:1.125rem;display:grid;gap:8px}.history-filters select{appearance:none;background:#fffdf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2333251c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;border:1px solid var(--line);border-radius:3px;color:var(--ink);font:1.125rem Georgia;padding:13px 35px 13px 14px;width:100%}.history-tabs,.history-actions,.history-backup,.share-buttons,.social-links{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.history-actions{margin:25px 0}.history-backup{border-top:1px solid var(--line);padding-top:24px;margin:28px 0}.personal-best{background:#eee5d2;border-left:3px solid #987e48;padding:20px}.personal-best span{display:block;color:var(--muted);font-size:1rem;margin-top:6px}.history-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:3px;margin:20px 0;background:#fffdf8}.history-table{border-collapse:collapse;width:100%;font-size:1.125rem;text-align:left}.history-table th,.history-table td{padding:15px 18px;border-bottom:1px solid var(--line)}.history-table th{background:#eee5d2;font-weight:400}.history-table tr:last-child td{border:0}.numeric{font-variant-numeric:tabular-nums;white-space:nowrap}.history-empty{padding:30px;border:1px dashed var(--line);font-size:1.2rem;margin-top:20px}.save-note{color:var(--green);font-size:1.125rem;margin:18px 0}.storage-warning{color:var(--red);padding:14px;border:1px solid currentColor}.share-panel{text-align:left;background:#fcfaf4;border:1px solid var(--line);padding:24px;margin:28px 0;border-radius:3px;line-height:1.6}.share-panel h2{font-size:1.35rem;margin:0 0 12px}.share-panel p{font-size:1.0625rem;margin:10px 0 16px}.share-panel .secondary,.history-tabs .secondary,.history-actions .secondary,.history-backup .secondary,.shared-page>.secondary{font-size:1rem}.social-links{margin:18px 0}.social-links a{color:var(--ink);padding:8px 12px;border-bottom:1px solid var(--line);text-underline-offset:4px;min-height:44px}.share-link-label{font-size:1rem;display:block;margin-top:18px}.share-url{display:block;width:100%;font:1rem Georgia;padding:12px;border:1px solid var(--line);background:#fffdf8;color:var(--ink);border-radius:3px;margin-top:6px;box-sizing:border-box}.share-status{color:var(--green);min-height:1.6em}.share-panel .share-note{color:var(--muted);font-size:1rem}.result-actions{flex-wrap:wrap}.shared-page>.primary{margin:15px 0}.personal-page button:focus-visible,.personal-page select:focus-visible,.share-panel input:focus-visible{outline:3px solid #ae7b1e;outline-offset:3px}
@media(max-width:620px){.topbar{flex-wrap:wrap}.header-actions{justify-content:space-between;width:100%;gap:12px}.header-actions .quiet{font-size:1rem}.personal-page{padding:0 16px;margin:28px auto}.history-filters{gap:10px;grid-template-columns:1fr 1fr}.history-filters label:last-child{grid-column:1/-1}.history-table{font-size:1rem}.history-table th,.history-table td{padding:12px 9px}.share-panel{padding:18px 14px}.share-buttons>*{flex:1 1 180px}.social-links{gap:6px}.personal-page .history-actions>*{width:100%}}

/* Segona línia del peu: autoria i informació legal. */
.footer-legal{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;border-top:1px solid #d6c29355;padding-top:20px;margin-top:2px;font-family:Georgia,serif;font-size:.9em;line-height:1.6;text-align:left}.footer-author{white-space:nowrap}.footer-legal a{color:inherit;text-decoration:underline;text-underline-offset:4px;display:inline-flex;align-items:center;min-height:44px}.legal-page{max-width:920px;margin:40px auto;padding:0 24px;line-height:1.75;font-size:1.125rem}.legal-page h1{font-size:clamp(1.8rem,5vw,2.8rem);line-height:1.3;overflow-wrap:anywhere;margin:10px 0 16px}.legal-page h2{font-size:1.35rem;margin:30px 0 14px}.legal-page p,.legal-page ul{margin:16px 0}.legal-page li{margin:10px 0}.legal-page a{color:var(--ink);text-underline-offset:3px}.legal-date{color:var(--muted);font-size:1rem}.legal-table-wrap{overflow-x:auto}.legal-table{border-collapse:collapse;width:100%;font-size:1rem;background:#fffdf8}.legal-table th,.legal-table td{border:1px solid var(--line);padding:14px;text-align:left;vertical-align:top}.legal-table code{overflow-wrap:anywhere}.legal-table th{background:var(--pale)}.draft-notice,.legal-pending{border-left:3px solid #987e48;background:#eee5d2;padding:16px}.local-controls{padding:20px;border:1px solid var(--line);background:#fffdf8;margin:24px 0}.history-optin{display:flex;align-items:flex-start;gap:12px;font:1.0625rem/1.6 Georgia;margin:18px 0}.history-optin input{min-width:22px;height:22px;margin-top:3px;accent-color:#785b24}.history-optin-note{font:1rem/1.5 Georgia;color:var(--muted)}.skip-link{position:absolute;left:16px;top:-100px;background:#fffdf8;color:var(--ink);padding:12px;z-index:10}.skip-link:focus{top:10px}.legal-page :focus-visible{outline:3px solid #ae7b1e;outline-offset:4px}
@media(max-width:620px){.footer-legal{justify-content:center;gap:8px 18px;text-align:center}.footer-author{flex-basis:100%}.legal-page{padding:0 18px;margin:28px auto}.legal-table th,.legal-table td{padding:10px}.local-controls{padding:16px}}
.site-footer>span:nth-child(3){text-align:right}
@media(max-width:800px){.site-footer>span:nth-child(3){text-align:center}}

/* Four reading speeds; room for long labels and the time filter. */
.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:620px){.history-filters label:last-child{grid-column:auto}}
@media(max-width:420px){.reading-grid,.history-filters{grid-template-columns:1fr}}

/* Keep the release number readable on desktop and mobile. */
.brand .beta{display:inline;font-size:.875rem;letter-spacing:.03em;margin-left:4px;white-space:nowrap}
