@font-face{font-family:UnifrakturCook;src:url('assets/UnifrakturCook-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root{--ink:#13233b;--muted:#586373;--blue:#233e67;--pale:#e8edf4;--line:#c3c6cb;--bg:#f7f5f0;--gold:#dcc58c;--dark:#071b3a;--panel:#0c2850;--hover:#183b68;--green:#24613e;--red:#983c36}
body{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='62' height='62'%3E%3Ctext x='16' y='41' font-family='Georgia' font-size='22' fill='%23071b3a' opacity='.045'%3EJF%3C/text%3E%3C/svg%3E");background-size:62px 62px}
.brand,.masthead h1{font-family:UnifrakturCook,Georgia,serif;font-weight:700}.brand{font-size:2.1rem}.masthead{padding-top:27px;padding-bottom:24px}.masthead h1{font-size:clamp(4.5rem,10vw,8.5rem);line-height:1.13;color:#e3c88a;text-shadow:0 2px 0 #0004;margin:8px 0 16px}.masthead .eyebrow{font-family:Georgia,serif;font-size:.95rem;letter-spacing:.13em;text-transform:uppercase}.motto{font-size:1.35rem}.home{gap:40px;margin-top:35px;grid-template-columns:1.17fr .83fr}.setup-panel h2{color:var(--dark)}.setting-grid.mode-grid{grid-template-columns:1fr 1fr}.setting-card{padding:13px 15px}.setting-title{font-size:1.05rem;font-weight:600}.setting-detail{font-size:.92rem}.reading-grid{grid-template-columns:1fr 1fr}.illustration{position:relative;padding:55px 32px}.harp-wrap{width:256px;max-width:100%;margin:0 auto 25px}.harp-wrap img{display:block;width:100%;height:auto;object-fit:contain}.sample{margin-top:0}.sample h2{font-size:2.4rem;line-height:1.25;margin:12px 0 8px}.sample .eyebrow{font-size:.9rem;letter-spacing:.1em}.sample p{font-size:1.13rem;margin-top:20px}.illustration-caption{font-size:.9rem}.stamp{margin-top:25px;padding-top:20px}.save-choice{display:flex;align-items:flex-start;gap:12px;margin:22px 0 0;font-size:1rem;cursor:pointer}.save-choice input{width:20px;height:20px;accent-color:var(--panel);flex:none;margin-top:3px}.save-choice small{display:block;color:var(--muted);font-size:.88rem;line-height:1.45;margin-top:3px}.choice{min-height:84px}.choice .definition{font-size:1.25rem}.word{font-size:clamp(1.9rem,4.2vw,3rem)}.eyebrow{font-size:.875rem}.mode-label{color:var(--panel);background:#e8edf4;border-color:#bbc6d5}.step.current{background:var(--panel)}.game,.result{max-width:950px}.question-head{margin-top:24px}.timer{background:conic-gradient(var(--panel) calc(var(--fraction)*360deg),#dce2eb 0)}.source-list{display:flex;gap:15px;flex-wrap:wrap;margin-top:12px}.source-list a{font-size:.94rem;text-underline-offset:3px;color:#23436d}.feedback .fact{margin-top:12px;font-size:1.1rem;line-height:1.5}.feedback .note{font-size:1rem;line-height:1.6;margin-top:10px;color:var(--muted)}.feedback{align-items:flex-start}.feedback>div{flex:1;min-width:0}.feedback .primary{flex:none}.date-hint{margin-top:10px;font-size:1rem;color:var(--muted)}.review-item{line-height:1.55}.review-item p{margin-top:8px}.review-word{font-size:1.3rem}.score-message{font-size:1.25rem}.history-filters{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.history-filters label{display:flex;flex-direction:column;gap:6px}.history-filters select{font:1rem Georgia;padding:10px 28px 10px 10px;background:#fff;border:1px solid var(--line);border-radius:3px;color:var(--ink)}.history-table{width:100%;border-collapse:collapse;font-size:1rem}.history-table td,.history-table th{padding:12px 8px;text-align:left;border-bottom:1px solid var(--line)}.storage-warning{color:var(--red)}.empty{text-align:center;padding:25px 0;color:var(--muted)}.loading{padding:40px;text-align:center}.source-note{margin:18px 0}#source-dialog p{line-height:1.65;margin-bottom:12px}dialog h2{color:var(--dark);font-size:1.7rem}dialog ol{line-height:1.7}dialog li{margin-bottom:10px}.header-actions{gap:20px}button:focus-visible,a:focus-visible{outline-color:#a66a13}.quiet{min-height:44px}.home .score-goal{font-size:1.08rem}.question-head .eyebrow{line-height:1.5}.game .pos{line-height:1.5}.save-note{font-size:1rem}.other-games summary{font-size:1rem}.review-head{gap:15px}.review-item .badge{white-space:nowrap}html{scroll-behavior:auto}body:has(.game) .topbar{position:static}
@media(max-width:800px){.topbar{padding:14px 20px;flex-wrap:wrap}.header-actions{gap:15px;flex-wrap:wrap;width:100%;justify-content:space-between}.brand{font-size:2rem}.masthead{padding:21px 20px}.masthead h1{font-size:clamp(4rem,14vw,6.7rem)}.masthead .eyebrow{font-size:.875rem}.motto{font-size:1.18rem;line-height:1.7}.home{display:flex;flex-direction:column;margin:26px auto 34px;padding:0 20px;gap:28px}.illustration{padding:42px 28px}.harp-wrap{width:220px}.sample h2{font-size:2rem}.game,.result{padding:0 18px}.question-head{gap:12px}.timer{width:80px;height:80px}.timer-inner{width:68px;height:68px}.timer b{font-size:1.75rem}.choice{padding:15px;gap:12px}.choice .definition{font-size:1.15rem}.feedback{flex-direction:column;gap:20px}.feedback .primary{width:100%}.keyboard{display:none}.review-head{align-items:flex-start;flex-direction:column}.history-table{font-size:.9rem}.history-table td,.history-table th{padding:10px 5px}footer{justify-content:center;text-align:center}.word{font-size:1.9rem}.setting-detail{font-size:.9rem}.setting-grid{gap:9px}.setting-card{padding:13px 11px}.setting-title{font-size:1rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.laurel-corner,.laurel-base{position:absolute;display:block;pointer-events:none;z-index:1}
.laurel-corner{width:82px;height:82px;background:#c9ae73;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2096%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2092V2H92%20M3%2077C7%2038%2022%2017%2076%203%20M3%2052C14%2026%2032%2011%2052%203%20M13%2037Q8%2020%2024%2013Q30%2029%2013%2037%20M24%2025Q36%2034%2051%2018Q35%2016%2024%2025%20M38%2015Q37%205%2050%204Q51%2011%2038%2015%20M8%2058Q19%2050%2023%2038Q7%2039%208%2058%20M51%2010Q61%2019%2075%209Q63%205%2051%2010%20M29%2029C44%2029%2046%2043%2037%2047C29%2051%2024%2042%2029%2038%22%2F%3E%3Ccircle%20cx%3D%2228%22%20cy%3D%2221%22%20r%3D%222.6%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2248%22%20r%3D%222.3%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2096%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2092V2H92%20M3%2077C7%2038%2022%2017%2076%203%20M3%2052C14%2026%2032%2011%2052%203%20M13%2037Q8%2020%2024%2013Q30%2029%2013%2037%20M24%2025Q36%2034%2051%2018Q35%2016%2024%2025%20M38%2015Q37%205%2050%204Q51%2011%2038%2015%20M8%2058Q19%2050%2023%2038Q7%2039%208%2058%20M51%2010Q61%2019%2075%209Q63%205%2051%2010%20M29%2029C44%2029%2046%2043%2037%2047C29%2051%2024%2042%2029%2038%22%2F%3E%3Ccircle%20cx%3D%2228%22%20cy%3D%2221%22%20r%3D%222.6%22%2F%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2248%22%20r%3D%222.3%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat}
.laurel-corner.tl{left:8px;top:8px}.laurel-corner.tr{right:8px;top:8px;transform:scaleX(-1)}.laurel-corner.bl{left:8px;bottom:8px;transform:scaleY(-1)}.laurel-corner.br{right:8px;bottom:8px;transform:rotate(180deg)}
.laurel-base{width:142px;height:36px;left:50%;bottom:-1px;transform:translateX(-50%);background:var(--panel)}
.laurel-base::before{content:"";position:absolute;inset:0;background:#c9ae73;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20184%2046%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2036H53Q75%2036%2092%2014Q109%2036%20131%2036H182%20M92%204L101%2014%2092%2024%2083%2014Z%20M92%2030L98%2036%2092%2042%2086%2036Z%20M79%2029Q54%208%2027%2024Q52%2036%2079%2029%20M105%2029Q130%208%20157%2024Q132%2036%20105%2029%20M60%2034Q45%2018%2035%2017%20M124%2034Q139%2018%20149%2017%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2236%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22164%22%20cy%3D%2236%22%20r%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20184%2046%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%2036H53Q75%2036%2092%2014Q109%2036%20131%2036H182%20M92%204L101%2014%2092%2024%2083%2014Z%20M92%2030L98%2036%2092%2042%2086%2036Z%20M79%2029Q54%208%2027%2024Q52%2036%2079%2029%20M105%2029Q130%208%20157%2024Q132%2036%20105%2029%20M60%2034Q45%2018%2035%2017%20M124%2034Q139%2018%20149%2017%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2236%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%22164%22%20cy%3D%2236%22%20r%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat}
@media(max-width:800px){.illustration{padding:38px 23px}.laurel-corner{width:62px;height:62px}.laurel-base{width:116px;height:30px}}
@media(max-width:800px){.illustration{display:block;width:100%;padding:48px 28px}}

/* Volutes i rombe: una floritura permanent, una segona en seleccionar. */
.setup-panel .setting-card{position:relative;padding-top:27px;padding-bottom:27px;--option-ornament:#9a7a3d}
.setup-panel .setting-card::before,.setup-panel .setting-card::after{content:"";position:absolute;left:50%;width:76px;height:19px;transform:translateX(-50%);background:var(--option-ornament);mask:url('assets/floritura-opcions.svg') center/contain no-repeat;-webkit-mask:url('assets/floritura-opcions.svg') center/contain no-repeat;pointer-events:none}
.setup-panel .setting-card::before{top:3px}
.setup-panel .setting-card::after{bottom:3px;transform:translateX(-50%) rotate(180deg);display:none}
.setup-panel input:checked+.setting-card{--option-ornament:#e3c88a}
.setup-panel input:checked+.setting-card::after{display:block}
@media(max-width:420px){.setup-panel .setting-card::before,.setup-panel .setting-card::after{width:64px;height:16px}.setup-panel .setting-card{padding-top:24px;padding-bottom:24px}}
