.home > header,.home > #recursos,.section-page > header,.section-page > main{width:min(1080px,calc(100% - 2rem));margin-inline:auto}
.home > main{padding-bottom:3rem;container-type:inline-size}
.intro{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:center;gap:clamp(.9rem,3cqw,2rem);padding:clamp(1rem,3cqw,2rem) clamp(.8rem,3cqw,2rem);color:#253a2d}
.intro h1{font-size:clamp(1.65rem,7.5cqw,5.25rem);margin:.14em 0;line-height:.94;letter-spacing:-.07em;white-space:nowrap}
.intro p{max-width:38ch}
.intro .kicker{color:#374b2c}
.intro-art{display:grid;place-items:center}
.intro-art img{display:block;width:min(100%,23rem);height:auto;max-height:22rem;object-fit:contain;filter:drop-shadow(0 12px 20px #09282388)}

.theme-logica,#logica{--section-bg:#e9f2d5;--section-ink:#315228;--section-line:#b5cb88;--symbol-fill:#d1e99c}
.theme-problemas,#problemas{--section-bg:#e3edf9;--section-ink:#264e74;--section-line:#b6cce5;--symbol-fill:#bed8f2}
.theme-calculo,#calculo{--section-bg:#f9eed1;--section-ink:#674b1e;--section-line:#dcc385;--symbol-fill:#f6d887}
.theme-matemagia,#matemagia{--section-bg:#eee7fa;--section-ink:#573e79;--section-line:#d0bce9;--symbol-fill:#ddc5fd}
.theme-operaciones,#operaciones{--section-bg:#fbe9df;--section-ink:#793d29;--section-line:#e2b5a3;--symbol-fill:#ffc6a9}

.section-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem;margin:1.2rem 0 0}
.section-button{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:.45rem;grid-column:span 2;min-height:12rem;padding:1.15rem;border:2px solid var(--section-line);border-radius:21px;background:var(--section-bg);color:var(--section-ink);box-shadow:0 5px 0 var(--section-line);text-decoration:none;transition:transform .16s ease,box-shadow .16s ease}
a.section-button:hover{transform:translateY(-3px);box-shadow:0 8px 0 var(--section-line)}
a.section-button:active{transform:translateY(3px);box-shadow:0 2px 0 var(--section-line)}
.section-button strong{font-size:clamp(1.12rem,2.3vw,1.45rem);line-height:1.15}
.section-description{line-height:1.35}
.section-symbol,.section-emblem{display:grid;place-items:center;width:3.5rem;aspect-ratio:1;border-radius:21% 38% 31% 32%;background:var(--symbol-fill);color:var(--section-ink);font-size:2rem;font-weight:850;line-height:1;transform:rotate(-8deg);box-shadow:inset 0 -4px #2222}
.theme-problemas .section-symbol,.theme-operaciones .section-symbol{border-radius:45% 33% 43% 22%;transform:rotate(7deg)}
.theme-matemagia .section-symbol{border-radius:50%}

.section-page .catalog{margin-block:1rem 3rem;padding:clamp(1rem,4vw,2.4rem);border:1px solid var(--section-line);border-radius:22px;background:var(--section-bg)}
.section-emblem{margin-bottom:1rem}
.catalog h1{margin:0 0 1rem;color:var(--section-ink);font-size:clamp(2rem,5vw,4rem);line-height:1.05}
.catalog .section-heading{margin-bottom:1rem}
.catalog .section-heading h1{margin-bottom:0}
.catalog .construction-notice{display:block;width:min(100%,26.25rem);height:auto;margin:1rem auto;border-radius:10px;box-shadow:0 3px 8px #472a2433}
.catalog article{border-color:var(--section-line);box-shadow:0 3px 0 #20342b0d}
.logic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}
.logic-card{--x:0%;--y:0%;--card-fill:#e4f7ee;--card-ink:#15544d;display:grid;grid-template-rows:auto 1fr;min-width:0;overflow:hidden;border:1px solid #0002;border-radius:16px;background:var(--card-fill);color:var(--card-ink);text-decoration:none;box-shadow:0 3px 0 #22362125;transition:transform .16s ease,box-shadow .16s ease}
.logic-card:hover{transform:translateY(-3px);box-shadow:0 7px 0 #22362125}
.logic-card:active{transform:translateY(2px);box-shadow:0 1px 0 #22362125}
.logic-art{display:block;aspect-ratio:1;background:var(--card-fill) url('./retos-ilustrados.png') var(--x) var(--y)/400% 200% no-repeat}
.logic-sudoku {--card-fill:#e3e8f2;}
.logic-sudoku .logic-art {background:#3d4c69 url('./sudoku-artesano.jpg') center/cover no-repeat;}
.logic-arithmetic {--card-fill:#f3e1ca;}
.logic-arithmetic .logic-art {background:#9e5535 url('./cuadricula-artesana.jpg') center/cover no-repeat;}
.magic-cookies {--card-fill:#eee4f3;}
.magic-cookies .logic-art {background:#48446e url('./magia-galletitas.jpg') center/cover no-repeat;}
.magic-paper {--card-fill:#e6edda;}
.magic-paper .logic-art {background:#687959 url('./magia-papel.jpg') center/cover no-repeat;}
#matemagia .magic-grid {grid-template-columns:repeat(2,minmax(0,1fr));max-width:34rem;}
#operaciones .logic-grid {grid-template-columns:repeat(2,minmax(0,1fr));max-width:34rem;}
.operation-round .operation-round-art {
  display:block;
  width:min(100%,13rem);
  height:auto;
  border-radius:1rem;
  margin:0 0 .75rem;
  box-shadow:0 3px 7px #65472f55;
}
.round-settings {display:grid;gap:.65rem;margin-bottom:1rem;}
.round-intro {margin:.5rem 0;}
.round-count {display:flex;align-items:center;gap:.65rem;font-weight:700;}
.round-term-options label {display:grid;min-width:0;gap:.2rem;font-weight:700;}
.round-term-options select {width:100%;min-width:0;}
.round-advanced {border:1px dashed #9e7444;border-radius:.7rem;background:#fff7e5;}
.round-advanced > summary {padding:.65rem .75rem;}
.round-advanced-options {display:grid;gap:.5rem;padding:0 .55rem .55rem;}
.round-settings fieldset {
  margin:0;
  padding:.65rem .8rem;
  border:1px dashed #9e7444;
  border-radius:.7rem;
  background:#fff7e5;
  color:#35291c;
}
.round-settings legend {font-weight:750;}
.round-term-options,#round-signs:not([hidden]),#round-categories:not([hidden]) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem .5rem;}
#round-signs label,#round-categories label {display:flex;align-items:center;gap:.3rem;min-height:2.3rem;padding:.3rem .45rem;border:1px solid #d9c4a3;border-radius:.45rem;background:#fffaf0;font-size:.9rem;line-height:1.2;}
#round-signs label:has(:checked),#round-categories label:has(:checked) {background:#e8edd8;border-color:#87966a;}
#round-signs input,#round-categories input {display:inline-block;width:auto;margin:0;accent-color:#456044;}
#round-categories small {grid-column:1/-1;}
@media(max-width:420px) {
  .round-settings {font-size:.9rem;}
  .round-settings fieldset {padding:.45rem .5rem;}
  .round-settings select {padding-inline-start:.4rem;}
}
#round-copy-preview {margin-top:.7rem;}
#round-copy-text {display:block;width:calc(100% - 1rem);margin:0 .5rem .5rem;font:inherit;}
#round-question {font-size:clamp(1.15rem,5vw,1.65rem);font-weight:800;}
#round-batch-exercises {display:grid;gap:.5rem;padding-inline-start:1.65rem;}
#round-batch-exercises li {
  padding:.45rem .65rem;
  background:#fff7e5;
  border:1px dashed #9e7444;
  border-radius:.6rem;
  color:#35291c;
}
#round-batch-exercises label {display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;}
#round-batch-exercises input {width:7.5rem;margin:.15rem 0;}
#round-batch-exercises li > span {font-weight:700;}
.logic-title{display:flex;align-items:center;min-height:4.7rem;padding:.75rem .8rem;font-weight:800;line-height:1.25}
.logic-card:nth-child(4n+2){--x:33.3333%}
.logic-card:nth-child(4n+3){--x:66.6667%}
.logic-card:nth-child(4n+4){--x:100%}
.logic-card:nth-child(n+5){--y:100%}
.logic-card:nth-child(2){--card-fill:#f0e8fa;--card-ink:#56336f}
.logic-card:nth-child(3){--card-fill:#e5f0fb;--card-ink:#2d5277}
.logic-card:nth-child(4){--card-fill:#edf6d4;--card-ink:#355821}
.logic-card:nth-child(5){--card-fill:#ffedcf;--card-ink:#7b4219}
.logic-card:nth-child(6){--card-fill:#e8eafc;--card-ink:#3e3c70}
.logic-card:nth-child(7){--card-fill:#ddf5f6;--card-ink:#155261}
.logic-card:nth-child(8){--card-fill:#f8e8d6;--card-ink:#674229}
.filters{display:flex;flex-wrap:wrap;gap:.7rem;margin-bottom:1rem}
.catalog label{font-weight:650;color:var(--section-ink)}
.catalog label:has(select){display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.catalog summary{color:var(--section-ink)}
#round{display:grid;grid-template-columns:minmax(0,12rem) auto;gap:.45rem;width:max-content;max-width:100%;margin-top:1rem}
#round-question{grid-column:1/-1}
#round-answer{width:100%;margin:0}
#round-status:empty{display:none}
@media(max-width:760px){.section-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.section-button{grid-column:auto}.logic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){.intro{grid-template-columns:1fr;gap:.5rem}.intro-art img{max-height:13.5rem}.section-button{min-height:10.5rem;padding:.85rem}.section-description{font-size:.875rem}.catalog .cards{grid-template-columns:1fr}.logic-title{min-height:4rem;padding:.6rem;font-size:.95rem}.section-page .section-heading{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.section-button,.logic-card{transition:none}.logic-card:is(:hover,:active){transform:none}}

/* Illustrated entries and compact section headers */
.theme-problemas,#problemas{--section-bg:#e7eef0;--section-ink:#294952;--section-line:#b5c9ca;--art-x:0%;--art-y:0%}
.theme-calculo,#calculo{--section-bg:#f8eed6;--section-ink:#60451e;--section-line:#d8c094;--art-x:100%;--art-y:0%}
.theme-matemagia,#matemagia{--section-bg:#f0e4e9;--section-ink:#573445;--section-line:#d3b8c6;--art-x:0%;--art-y:100%}
.theme-operaciones,#operaciones{--section-bg:#f8e8dc;--section-ink:#743e2a;--section-line:#ddb7a2;--art-x:100%;--art-y:100%}
.catalog-art{display:block;flex:none;width:5.5rem;aspect-ratio:1;border-radius:14px;background:var(--section-line) url('./secciones-ilustradas.png') var(--art-x) var(--art-y)/200% 200% no-repeat;box-shadow:0 2px 4px #33221430}
.theme-calculo .catalog-art,#calculo .catalog-art,.theme-operaciones .catalog-art,#operaciones .catalog-art{background-image:url('./calculo-operaciones.png');background-size:200% 100%;background-position:0 0}
.theme-operaciones .catalog-art,#operaciones .catalog-art{background-position:100% 0}
.theme-logica .catalog-art,#logica .catalog-art{background:var(--section-line) url('./logica-rompecabezas.png') center/cover no-repeat}
.section-button:has(.catalog-art){justify-content:flex-start}
.section-button .catalog-art{margin-bottom:.25rem}
.catalog-banner{display:flex;align-items:center;gap:clamp(.7rem,3vw,1.5rem);margin-bottom:1rem}
.catalog .catalog-banner h1{margin:0}
.catalog .section-heading .catalog-banner{margin:0}
.catalog:has(.catalog-banner) article{background:#fffcf5;border-radius:16px}
.catalog:has(.catalog-banner) article h2{margin:0 0 .5rem;font-size:1.25rem;color:var(--section-ink)}
.catalog:has(.catalog-banner) article > details > summary{padding:.65rem .8rem;border-radius:9px;background:var(--section-bg);font-weight:750;cursor:pointer}
.catalog:has(.catalog-banner) details > details{margin-top:.8rem}
@media(max-width:530px){.catalog-banner .catalog-art{width:4rem}.section-button .catalog-art{width:4.5rem}}

/* Esparto backing and embroidered borders on the home menu. */
.theme-logica,#logica{--stitch:#607133}
.theme-problemas,#problemas{--stitch:#416e7b}
.theme-calculo,#calculo{--stitch:#9b671f}
.theme-matemagia,#matemagia{--stitch:#89556f}
.theme-operaciones,#operaciones{--stitch:#a5503b}

.home .section-button{
  padding:1.35rem;
  border-color:var(--stitch);
  background:linear-gradient(145deg,var(--section-bg),color-mix(in srgb,var(--section-bg) 72%,transparent)),
    url('./portada-esparto.png') left center/360% auto no-repeat var(--section-bg);
}
.home .section-button .catalog-art{
  outline:2px dashed var(--stitch);
  outline-offset:2px;
}
@media(max-width:530px){
  .home .section-button{padding:1rem}
}
@media(prefers-reduced-motion:reduce){
  .home .section-button:is(:hover,:active){transform:none}
}

/* Stitched section panels share the five home menu palettes. */
.section-page .catalog{
  position:relative;
  border-color:var(--stitch);
  background:linear-gradient(145deg,color-mix(in srgb,var(--section-bg) 90%,transparent),color-mix(in srgb,var(--section-bg) 77%,transparent)),
    url('./portada-esparto.png') left top/960px auto repeat var(--section-bg);
  box-shadow:0 4px 0 var(--section-line);
}
.section-page .catalog::before{
  content:"";
  position:absolute;
  inset:5px;
  border:2px dashed var(--stitch);
  border-radius:16px;
  pointer-events:none;
}
.catalog .catalog-art{
  outline:2px dashed var(--stitch);
  outline-offset:2px;
}
.catalog h1{
  color:var(--section-ink);
  text-shadow:0 1px #fff9ee,0 2px color-mix(in srgb,var(--stitch) 35%,transparent);
}
.catalog article h2,.catalog article h3,.catalog .tag{
  color:var(--section-ink);
}
.catalog .logic-card,.catalog article{
  border-color:var(--stitch);
}
.catalog .logic-title{
  border-top:2px dashed var(--stitch);
  text-shadow:0 1px #fffaf0;
}
.catalog .logic-card:hover,.catalog .logic-card:focus-visible{
  border-color:var(--section-ink);
}
.catalog:has(.catalog-banner) article > details > summary,
.catalog button{
  border:1px solid var(--stitch);
  background:var(--section-bg);
  color:var(--section-ink);
  text-shadow:0 1px #fffaf0;
  box-shadow:0 2px 0 var(--section-line);
}

/* Keep the illustrated materials around the page, outside the activity text. */
:is(.home,.logic-catalog-page,.workshop-page) {
  min-height:100vh;
  background:#eee0c8 url('./fondo-taller.png') center top / cover no-repeat fixed;
}
:is(.home,.logic-catalog-page,.workshop-page) > header > a {
  padding:.3rem .55rem;
  border-radius:9px;
  background:#fff7e8;
}
.workshop-page > .catalog {
  margin-bottom:0;
  background:linear-gradient(color-mix(in srgb,var(--section-bg) 92%,transparent),color-mix(in srgb,var(--section-bg) 84%,transparent)),
    url('./portada-esparto.png') left top/960px auto repeat var(--section-bg);
}
.workshop-page {
  padding-bottom:clamp(2rem,7vw,6rem);
}
.workshop-page .catalog article {
  border-style:dashed;
  background:#fffbf0;
}
.workshop-page .catalog article > details > summary,
.workshop-page .catalog button {
  background:repeating-linear-gradient(176deg,#65421f14 0 1px,transparent 2px 6px),
    linear-gradient(135deg,#fff2d9,var(--section-bg) 75%);
}
.workshop-page .catalog article > details > summary { padding:.75rem .9rem; }
.workshop-page .catalog button { min-height:44px; }
.workshop-page .catalog button.secondary { padding:.45rem .7rem; font-size:.9rem; }
@media(min-width:1000px) {
  .workshop-page > .catalog { width:min(1080px,67%); }
  .home > #recursos,.logic-catalog-page > .catalog { width:min(1080px,74%); }
  .home > header,.logic-catalog-page > header { width:min(1080px,74%); }
}
@media(max-width:650px) {
  .workshop-page > .catalog { margin-top:clamp(2rem,10vw,4rem); }
}

.theme-jeroglificos,#jeroglificos {
  --section-bg:#f1ebd8;
  --section-ink:#554a2c;
  --section-line:#cdbd8f;
  --stitch:#77643b;
}
.catalog-art.rebus-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.16em;
  background:repeating-linear-gradient(175deg,#6b441f15 0 1px,transparent 2px 7px),#e5c495;
  color:var(--section-ink);
  font:700 2rem/1 Georgia,serif;
}
.rebus-icon span { transform:rotate(10deg); }
.rebus-tiles { display:block; width:min(100%,32rem); height:auto; margin:1rem 0; border-radius:8px; }


/* Raised lettering on the woven home page. */
.home .intro h1 {
  color:#304c35;
  font-family:Georgia,serif;
  letter-spacing:-.045em;
  line-height:.98;
  filter:drop-shadow(0 .06em .06em #42301e42);
}
.home .intro h1 span {
  --led-base:#236054;
  --led-edge:#153d36;
  --led-tube:#f2ffc9;
  --led-glow:#beeb797f;
  color:var(--led-base);
  text-shadow:0 -.015em #fff0c9,0 .025em var(--led-edge),0 .043em var(--led-edge);
}
.home .intro h1 span:last-child {
  --led-base:#913d29;
  --led-edge:#58291e;
  --led-tube:#ffe5ad;
  --led-glow:#ffb95d8c;
}
.home .intro h1 .led-initial {
  font-weight:inherit;
  color:var(--led-edge);
  -webkit-text-stroke:.03em var(--led-tube);
  paint-order:fill stroke;
  text-shadow:0 .04em var(--led-edge),0 0 .08em var(--led-glow),0 0 .17em var(--led-glow);
}
.home .intro p:not(.kicker) { color:#534029; }
.home .section-button strong {
  color:color-mix(in srgb,var(--stitch) 73%,#211b16);
  font-family:Georgia,serif;
  letter-spacing:-.015em;
  text-shadow:0 -1px #fffaf0,0 1px color-mix(in srgb,var(--stitch) 38%,transparent),0 2px color-mix(in srgb,var(--stitch) 26%,transparent);
}
.home .section-description {
  color:var(--section-ink);
  text-shadow:0 1px #fffaf0;
}

.home > header #install { margin-inline-start:auto; }
@media(max-width:650px){
  .home .intro { grid-template-columns:minmax(0,1fr); }
  .home .intro h1 { font-size:clamp(1.5rem,11cqw,4.15rem); }
  .home .intro-art img { max-height:13.5rem; }
}
.home .intro { position:relative; isolation:isolate; }
@media(max-width:530px){
  }
.home .intro::after {
  content:"";
  position:absolute;
  left:clamp(.5rem,2vw,1.5rem);
  bottom:clamp(.35rem,1.5vw,1rem);
  width:clamp(2.6rem,7vw,5.5rem);
  aspect-ratio:3/2;
  background:url('./caracola-portada.png') center/contain no-repeat;
  transform:rotate(-12deg);
  filter:drop-shadow(0 2px 3px #58391645);
  pointer-events:none;
}

.rebus-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;margin-top:1rem;align-items:start}
.rebus-paper {
  aspect-ratio:1.8;
  margin-block:.75rem;
  border-radius:4px 7px 10px 5px;
  background:var(--rebus-sheet) var(--rebus-x,0%) var(--rebus-y,0%)/200% 200% no-repeat #f3e7ce;
  box-shadow:1px 4px 5px #5a421c35;
}
.rebus-sheet-1 {--rebus-sheet:url('./bocetos-jeroglificos-1.png')}
.rebus-sheet-2 {--rebus-sheet:url('./bocetos-jeroglificos-2.png')}
.rebus-sheet-3 {--rebus-sheet:url('./bocetos-jeroglificos-3.png')}
.rebus-sheet-4 {--rebus-sheet:url('./bocetos-jeroglificos-4.png')}
.rebus-quadrant-2,.rebus-quadrant-4 {--rebus-x:100%}
.rebus-quadrant-3,.rebus-quadrant-4 {--rebus-y:100%}
.rebus-feedback:empty{display:none}
.rebus-feedback{font-weight:700;color:#8a4434}
.rebus-feedback[data-correct="true"]{color:#375638}

/* Neon tubing and reflected light on the woven backdrop. */
.home .intro h1 {
  position:relative;
  isolation:isolate;
  filter:none;
}
.home .intro h1::before {
  content:"";
  position:absolute;
  inset:-12% -4% -18%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(ellipse at 36% 31%,#e1ffab5e 0%,transparent 65%),
    radial-gradient(ellipse at 32% 76%,#ffc27568 0%,transparent 65%);
  filter:blur(clamp(5px,1vw,13px));
}
.home .intro h1 span {
  --led-tube:#f9ffe7;
  --led-glow:#b4ee66;
  color:var(--led-edge);
  -webkit-text-stroke:.024em var(--led-tube);
  paint-order:fill stroke;
  text-shadow:
    0 .048em .022em #38281faa,
    0 0 .035em var(--led-tube),
    0 0 .095em var(--led-glow),
    0 0 .2em var(--led-glow);
}
.home .intro h1 span:last-child {
  --led-tube:#fff4d6;
  --led-glow:#ffa856;
}
.home .intro h1 .led-initial {
  -webkit-text-stroke-width:.03em;
  text-shadow:inherit;
}

.voilaprof-figure {position:relative;width:min(100%,18.33rem)}
.home .voilaprof-figure img {width:100%;max-height:none}
.voilaprof-motion {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.voilaprof-glints path {
  opacity:0;
  transform-box:fill-box;
  transform-origin:center;
  filter:drop-shadow(0 0 10px #ffdb5a);
  animation:voilaprof-glint 3.4s ease-in-out infinite;
}
.voilaprof-glints path:nth-child(2) {animation-delay:.8s}
.voilaprof-glints path:nth-child(3) {animation-delay:1.55s}
@keyframes voilaprof-glint {
  0%,68%,100% {opacity:0;transform:scale(.55)}
  79% {opacity:1;transform:scale(1.55)}
  92% {opacity:.4;transform:scale(.95)}
}
@media(max-width:650px){.voilaprof-figure{width:min(100%,11.25rem)}}
@media(prefers-reduced-motion:reduce){.voilaprof-motion{display:none}}
.detective-pupil {animation:detective-look 7s ease-in-out infinite;}
@keyframes detective-look {
  0%,15%,88%,100% {transform:translateX(0);}
  28%,52% {transform:translateX(-14px);}
  65%,76% {transform:translateX(1px);}
}
@media(prefers-reduced-motion:reduce) {
  .home .voilaprof-motion {display:block;}
  .detective-eyes,.voilaprof-glints {display:none;}
}

@media (prefers-reduced-motion: no-preference) {
  .home .intro h1 {
    animation:neon-encendido 1.65s ease-in-out 1;
  }

  @keyframes neon-encendido {
    0% { filter:brightness(.76) saturate(.78); }
    11%,32%,54%,77%,100% { filter:brightness(1) saturate(1); }
    21% { filter:brightness(.84) saturate(.82); }
    43% { filter:brightness(.88) saturate(.87); }
    65% { filter:brightness(.91) saturate(.91); }
    87% { filter:brightness(.94) saturate(.95); }
  }
}

#jeroglificos .rebus-grid article:has(.resource-entry[open]) {
  grid-column:1/-1;
}
#jeroglificos .resource-entry[open] > :is(p,.rebus-paper,.rebus-tiles,form) {
  width:min(100%,46rem);
  margin-inline:auto;
}
#jeroglificos .rebus-paper {
  position:relative;
  border-radius:4px 7px 17px 5px;
  box-shadow:0 3px 5px #50351938,3px 8px 12px -7px #50351980;
}
#jeroglificos .rebus-paper::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:
    linear-gradient(166deg,transparent 22%,#fff8eb38 23%,#59463216 24%,transparent 27%),
    linear-gradient(22deg,transparent 77%,#77573a1a 79%,#fffaf040 81%,transparent 84%);
}
#jeroglificos form input {max-width:32rem}
#jeroglificos form button {margin-top:.2rem}

.home > header > #install {
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:0 .3rem;
  min-height:44px;
  background:none;
  border:0;
  box-shadow:none;
}
.home > header > #install[hidden] { display:none; }
.home > header > #install::before { content:none; }
.home > header > #install img {
  display:block;
  width:clamp(8.5rem,20vw,12.5rem);
  height:auto;
  filter:drop-shadow(0 1px 0 #fff1ca) drop-shadow(0 2px 2px #35271385);
}
.home > header > #install::after {
  content:"✦";
  position:absolute;
  top:42%;
  left:10%;
  translate:-50% -50%;
  color:#fffbe7;
  font:.85rem/1 system-ui,sans-serif;
  text-shadow:0 0 3px #fff4be,0 0 7px #ffc963;
  pointer-events:none;
  opacity:0;
  animation:install-needle-glint 1.7s ease-in-out .25s both;
}
@keyframes install-needle-glint {
  0% { left:10%; top:42%; opacity:0; scale:.5; }
  14% { left:10%; top:42%; opacity:1; scale:1.15; }
  34% { left:30%; top:41%; opacity:.83; scale:.8; }
  59% { left:58%; top:46%; opacity:.9; scale:1; }
  82% { left:81%; top:42%; opacity:.8; scale:.8; }
  100% { left:96%; top:54%; opacity:0; scale:.4; }
}
@media (prefers-reduced-motion:reduce) {
  .home > header > #install::after { animation:none; opacity:.65; }
}

#problem-cards .problem-group {
  grid-column:1/-1;
  padding:.65rem .85rem;
  border:1px dashed var(--stitch);
  border-radius:14px;
  background:#fff9eb;
  box-shadow:0 2px 0 var(--section-line);
}
.problem-group > summary > span + span {
  display:inline-block;
  margin-inline-start:.65rem;
  font-size:.84rem;
  font-weight:600;
}
.problem-group > .cards { margin-top:.85rem; }

.problem-levels {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));
  gap:1rem;
}
.problem-level {
  display:grid;
  gap:.25rem;
  padding:1.2rem;
  border:2px dashed var(--stitch);
  border-radius:14px;
  background:#fff9eb;
  color:var(--section-ink);
  text-decoration:none;
  box-shadow:0 3px var(--section-line);
}
.problem-level:hover {background:var(--section-bg)}
.problem-level strong {font-size:1.15rem}
.problem-level-back {
  display:inline-block;
  margin-bottom:1rem;
  color:var(--section-ink);
  font-weight:700;
}
#problem-construction {font-weight:700}
.problem-form fieldset {margin:0 0 .75rem;padding:.55rem .65rem;border:1px dashed var(--stitch);border-radius:10px}
.problem-form legend {font-weight:700;color:var(--section-ink)}
.problem-form .problem-choice {display:flex;align-items:flex-start;gap:.55rem;padding:.25rem 0}
.problem-choice input {flex:none;width:auto;margin:.36em 0 0;accent-color:var(--stitch)}
.problem-feedback {font-weight:750;color:#8a4434}
.problem-feedback[data-correct="true"] {color:#375638}
.problem-feedback:empty {display:none}

#problem-cards .problem-picker {padding:.75rem 1.1rem .8rem;}
.problem-excerpt {
  display:block;
  margin-top:.22rem;
  font-size:.84rem;
  font-weight:500;
  line-height:1.3;
  overflow-wrap:anywhere;
}

.problem-repertoires > section + section {margin-top:2rem;border-top:1px dashed var(--stitch);padding-top:1rem}
.problem-repertoires h2 {font-size:clamp(1.35rem,3vw,2.05rem);color:var(--section-ink)}
.problem-art {
  width:clamp(5.5rem,15vw,10rem);
  aspect-ratio:1;
  margin:.85rem 0;
  border:1px solid #c8b78e;
  border-radius:10px;
  background:var(--problem-sheet) var(--problem-x,0%) var(--problem-y,0%)/400% 400% no-repeat;
}
.problem-sheet-1 {--problem-sheet:url('./problemas-dibujos-1.png')}
.problem-sheet-2 {--problem-sheet:url('./problemas-dibujos-2.png')}
.problem-sheet-3 {--problem-sheet:url('./problemas-dibujos-3.png')}
.problem-sheet-4 {--problem-sheet:url('./problemas-dibujos-4.png')}
.problem-sheet-5 {--problem-sheet:url('./problemas-dibujos-5.png')}
.problem-sheet-6 {--problem-sheet:url('./problemas-dibujos-6.png')}
.problem-sheet-7 {--problem-sheet:url('./problemas-dibujos-7.png')}
.problem-sheet-8 {--problem-sheet:url('./problemas-dibujos-8.png')}
.problem-sheet-9 {--problem-sheet:url('./problemas-dibujos-9.png')}
.problem-sheet-10 {--problem-sheet:url('./problemas-dibujos-10.png')}
.problem-sheet-11 {--problem-sheet:url('./problemas-dibujos-11.png')}
.problem-sheet-12 {--problem-sheet:url('./problemas-dibujos-12.png')}
.problem-art-0 {--problem-x:0.0000%;--problem-y:0.0000%}
.problem-art-1 {--problem-x:33.3333%;--problem-y:0.0000%}
.problem-art-2 {--problem-x:66.6667%;--problem-y:0.0000%}
.problem-art-3 {--problem-x:100.0000%;--problem-y:0.0000%}
.problem-art-4 {--problem-x:0.0000%;--problem-y:33.3333%}
.problem-art-5 {--problem-x:33.3333%;--problem-y:33.3333%}
.problem-art-6 {--problem-x:66.6667%;--problem-y:33.3333%}
.problem-art-7 {--problem-x:100.0000%;--problem-y:33.3333%}
.problem-art-8 {--problem-x:0.0000%;--problem-y:66.6667%}
.problem-art-9 {--problem-x:33.3333%;--problem-y:66.6667%}
.problem-art-10 {--problem-x:66.6667%;--problem-y:66.6667%}
.problem-art-11 {--problem-x:100.0000%;--problem-y:66.6667%}
.problem-art-12 {--problem-x:0.0000%;--problem-y:100.0000%}
.problem-art-13 {--problem-x:33.3333%;--problem-y:100.0000%}
.problem-art-14 {--problem-x:66.6667%;--problem-y:100.0000%}
.problem-art-15 {--problem-x:100.0000%;--problem-y:100.0000%}
.situation-group article:has(.resource-entry[open]) {grid-column:1/-1;min-width:0}
.situation-context table,.situation-task table {width:100%;border-collapse:collapse;margin:.85rem 0;table-layout:fixed}
.situation-context :is(th,td),.situation-task :is(th,td) {border:1px solid var(--section-line);padding:.45rem;text-align:left;overflow-wrap:anywhere}
.situation-context thead,.situation-task thead {background:var(--section-bg)}
.situation-context .chart {display:block;width:100%;max-width:40rem;fill:var(--section-ink);font:14px system-ui,sans-serif}
.situation-form ol {padding-inline-start:1.5rem}
.situation-task {margin:.8rem 0;padding-inline-start:.25rem}
.situation-form :is(input[type=text],textarea) {box-sizing:border-box;width:min(100%,22rem)}
.situation-form textarea {display:block}
.situation-field {display:block;margin-top:.35rem}
.situation-bar-builder progress {width:min(100%,22rem);accent-color:var(--stitch)}
.situation-context .pie-wrap {display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin:1rem 0}
.situation-context .pie {width:9rem;aspect-ratio:1;border-radius:50%}
.situation-context .pie-key {list-style:none;padding:0}
.situation-context .pie-key span {display:inline-block;width:.9rem;height:.9rem;margin-right:.55rem}


.home > header {min-height:0;padding-block:.5rem;}
.school-note {
  position:relative;
  width:clamp(7rem,15vw,10rem);
  margin:.65rem 0 .15rem .3rem;
  rotate:-3deg;
  border-radius:.65rem;
  box-shadow:1px 3px 5px #3e2d2a50,inset 0 1px #fff9;
}
.school-note img {
  display:block;
  width:100%;
  height:auto;
  border-radius:inherit;
}
.school-note-clip,.school-note-clip::after {
  position:absolute;
  border:2px solid #cfd4ce;
  border-radius:1rem;
  box-shadow:1px 1px 2px #443a33a0,inset 0 1px 1px #fff;
}
.school-note-clip {
  width:.55rem;
  height:1.35rem;
  top:-.55rem;
  left:-.32rem;
  rotate:24deg;
  border-bottom-color:#868d86;
}
.school-note-clip::after {
  content:"";
  inset:.13rem .04rem .15rem;
  border-width:1px;
  border-top-color:transparent;
}
.home > #recursos {margin-block:.3rem 2rem;}
.home .intro {
  max-width:67.5rem;
  margin-inline:auto;
  grid-template-columns:minmax(0,1fr) minmax(0,.3fr);
  column-gap:clamp(.55rem,1.7cqw,1.2rem);
  min-height:clamp(10.5rem,21.5cqw,14rem);
  padding:.4rem 0;
}
.home .intro-heading {position:relative;z-index:1;justify-self:center;}
.home .intro h1 {font-size:clamp(1.25rem,6.45cqw,5.25rem);white-space:nowrap;}
.home .intro-art {position:relative;isolation:isolate;justify-items:start;padding-right:11%;}
.home .voilaprof-figure {width:min(100%,12.75rem);}
.home .intro-art::after {
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  width:56%;
  aspect-ratio:3/2;
  background:url('./bordado-portada.png') center/contain no-repeat;
  z-index:-1;
  pointer-events:none;
}
.home .intro::after {left:max(0px,calc((100% - 64rem)/2));bottom:0;width:clamp(1.8rem,4cqw,3rem);}
@media(max-width:650px) {
  .school-note {width:clamp(3.5rem,16vw,5rem);}
  .home .intro {
    grid-template-columns:minmax(0,1fr);
    gap:.2rem;
    padding:.65rem 0 .55rem;
  }
  .home .intro-heading {justify-self:center;}
  .home .intro h1 {
    font-size:clamp(2rem,15.3cqw,5rem);
    line-height:1.03;
    text-align:center;
  }
  .home .intro h1 span {display:block;}
  .home .intro-art {width:min(69%,16rem);justify-self:center;padding-right:11%;}
  .home .voilaprof-figure {width:min(100%,13rem);}
  .home .intro::after {display:none;}
}

#jeroglificos .rebus-primo {
  position:relative;
  aspect-ratio:2;
  background:#e7ead2 url('./jeroglifico-primo.png') center/100% 100% no-repeat;
  container-type:inline-size;
}
#jeroglificos .rebus-result-frame {
  position:relative;
  width:min(100%,46rem);
  margin:.75rem auto;
}
#jeroglificos .rebus-result-frame > :is(.rebus-paper,.rebus-tiles) {width:100%;margin:0;}
.rebus-result-mark {
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  width:1.45em;
  aspect-ratio:1;
  border:3px solid currentColor;
  border-radius:50%;
  background:#fffaf2ed;
  box-shadow:0 4px 14px #38261945;
  font:900 clamp(2.75rem,11vw,6rem)/1 system-ui,sans-serif;
  pointer-events:none;
  z-index:2;
}
.rebus-result-mark:empty {display:none;}
.rebus-result-frame[data-correct="true"] .rebus-result-mark {color:#176b38;}
.rebus-result-frame[data-correct="false"] .rebus-result-mark {color:#b32228;}
#jeroglificos form [role="status"] {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.rebus-visita {position:relative;container-type:inline-size;}
.rebus-visita > img {display:block;width:100%;height:auto;border-radius:inherit;}
.rebus-visita > .rebus-signature {
  position:absolute;
  right:6%;
  bottom:7%;
  transform:rotate(-7deg);
  color:#364f70;
  font:italic 600 clamp(.75rem,3.7cqw,1.65rem)/1 'Segoe Print','Bradley Hand',cursive;
}
.rebus-primo > .rebus-signature {
  position:absolute;
  white-space:nowrap;
  inset:auto auto 8% 55%;
  transform:translateX(-50%) rotate(-7deg);
  color:#364f70;
  font:italic 600 clamp(.72rem,3.7cqw,1.65rem)/1 'Segoe Print','Bradley Hand',cursive;
  letter-spacing:-.06em;
}
.problem-share {margin:.5rem 0 .8rem;}
.problem-form textarea[name="enunciado"] {
  display:block;
  box-sizing:border-box;
  width:100%;
  min-height:6rem;
  margin:.25rem 0 .65rem;
  resize:vertical;
}
.individual-exercise {width:min(100%,42rem);margin:1rem auto;}
.individual-exercise .problem-art {margin-inline:auto;}
.problem-data {
  margin: .7rem 0 1rem;
  padding: .35rem .5rem;
  border: 1px dashed #9f8462;
  border-radius: .65rem;
  background: #fff7e6;
  color: #463522;
}
.problem-data > summary {cursor:pointer;font-weight:700;padding:.35rem .4rem;}
.problem-data-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));
  gap:.35rem;
  margin:.55rem 0;
}
.problem-data-card {
  padding:.4rem .5rem;
  border:1px solid #adac8a;
  border-radius:.45rem;
  background:#e9ecd9;
}
.problem-data-partes .problem-data-card:last-child {grid-column:1/-1;}
.problem-data-partes .problem-data-card {border-radius:.2rem;}
.problem-data-unknown {border-style:dashed;background:#f5ead5;}
.problem-data-card dd {margin:.15rem 0 0;font-size:1.15rem;font-weight:700;}
.problem-data-card small {display:block;font-size:.76rem;font-weight:500;}
.problem-data-groups {display:flex;flex-wrap:wrap;gap:.35rem;margin:.55rem 0;}
.problem-data-groups span {padding:.25rem .55rem;border:1px solid #adac8a;border-radius:.35rem;background:#e9ecd9;}
.primer-diagrama {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,8.5rem),1fr));
  gap: .4rem;
  max-width: 37rem;
  margin: .8rem auto;
}
.primer-diagrama svg {
  display: block;
  width: 100%;
  height: auto;
}
.primer-diagrama text {
  fill: #443526;
  text-anchor: middle;
  font-family: system-ui,sans-serif;
}
.second-grade-art {
  display: block;
  width: min(100%, 25rem);
  height: auto;
  margin: .85rem auto;
  border-radius: .65rem;
  box-shadow: 0 2px 8px #472a2426;
}

.problem-table-scroll {
  overflow-x: auto;
  margin: .75rem 0 1rem;
}
.problem-entry-table {
  width: 100%;
  min-width: 17rem;
  border-collapse: collapse;
  text-align: left;
}
.problem-entry-table th,
.problem-entry-table td {
  padding: .4rem;
  border: 1px solid #c8b79c;
}
.problem-entry-table th {
  background: #eee3cc;
}
.problem-entry-table td input {
  width: 100%;
  min-width: 3.5rem;
  margin: 0;
}
.difficulty-stars {
  display:block;
  width:max-content;
  margin:.3rem 0 .55rem;
  color:#754610;
  font:700 .95rem/1.2 system-ui,sans-serif;
  letter-spacing:.11em;
}
.difficulty-empty {color:#665a48;}
.logic-title:has(.difficulty-stars) {
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}
.logic-title .difficulty-stars {margin:.25rem 0 0;}
#number-board {
  display:grid;
  grid-template-columns:repeat(var(--board-size),minmax(0,1fr));
  width:min(100%,30rem);
  margin:1rem auto;
  border:3px solid #68452a;
  background:#faf1db;
  box-shadow:0 4px 12px #49341f44;
}
#number-board label {
  position:relative;
  display:block;
  aspect-ratio:1;
  border:1px solid #ba9e79;
}
#number-board label.puzzle-edge-top {border-top:3px solid #68452a;}
#number-board label.puzzle-edge-left {border-left:3px solid #68452a;}
#number-board small {position:absolute;top:1px;left:3px;font-weight:750;pointer-events:none;}
#number-board input {
  width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;
  background:transparent;color:#22433a;text-align:center;font-size:clamp(1rem,4vw,1.65rem);
}
#number-board input[readonly] {background:#e6d4af;color:#49321a;font-weight:800;}
#number-board input:focus {position:relative;z-index:1;outline-offset:-3px;}
#number-board label:has(small) input {padding-top:.55em;}
#number-board label:has(small) small {z-index:2;}
#grid-puzzles {
  padding:clamp(.75rem,3vw,1.5rem);
  border-radius:1rem;
  background:#fff9eb;
  color:#222;
}
#grid-puzzles h1 {color:#223a31;font-size:clamp(1.8rem,7vw,3.5rem);}
#sudoku-settings,#puzzle-key {
  display:flex;flex-wrap:wrap;gap:.5rem .75rem;
}
#sudoku-settings label {display:grid;gap:.2rem;font-weight:700;}
#sudoku-settings select {background-color:white;color:#222;}
#puzzle-key {justify-content:center;margin:.7rem 0 1rem;}
#puzzle-key button {min-width:2.4rem;padding:.35rem .55rem;}
#number-board {border-color:#202823;background:#fff;}
#number-board label {border-color:#777;}
#number-board label.puzzle-edge-top,#number-board label.puzzle-edge-left {border-color:#202823;}
#number-board input {color:#174f8a;}
#number-board input[readonly] {background:#eee4d3;color:#593416;font-weight:850;opacity:1;-webkit-text-fill-color:currentColor;}
#puzzle-legend {display:flex;flex-wrap:wrap;gap:.35rem .85rem;justify-content:center;margin:.75rem 0 0;}
.puzzle-legend-given {color:#593416;background:#eee4d3;padding:0 .35rem;border-radius:.25rem;font-weight:850;}
.puzzle-legend-entry {color:#174f8a;}
#number-board[data-theme="color"] label[data-block="0"] {background:#f5e7ca;}
#number-board[data-theme="color"] label[data-block="1"] {background:#e3f1ed;}
#number-board[data-theme="color"] input[readonly] {background:transparent;}
@media print {
  @page {margin:16mm;}
  body:has(#grid-puzzles) {background:white;color:black;}
  body:has(#grid-puzzles) > header,#sudoku-settings,#puzzle-key,#puzzle-legend,
  #grid-puzzles .actions,#puzzle-status {display:none!important;}
  #grid-puzzles {width:100%;margin:0;padding:0;background:white;}
  #grid-puzzles h1 {color:black;}
  #number-board {width:145mm;max-width:100%;break-inside:avoid;box-shadow:none;print-color-adjust:exact;}
  #number-board input {display:none;}
  #number-board label[data-given]::after {
    content:attr(data-given);
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    color:black;
    font-size:1.35rem;
    font-weight:800;
  }
}
#jeroglificos .resource-entry > .rebus-question {
  font-family:"Segoe Print","Bradley Hand","Chalkboard SE","Comic Sans MS",Georgia,serif;
  font-size:clamp(1rem,2.5vw,1.2rem);
  line-height:1.45;
  overflow-wrap:anywhere;
}
.logic-enigmas {--card-fill:#e8edd8;}
.logic-enigmas .logic-art {background:#d5bb8e url('./logica-rompecabezas.png') center/cover no-repeat;}
.enigma-bank #enigma-nav {margin-bottom:.7rem;gap:.5rem 1rem;}
.enigma-bank #enigma-nav a {color:inherit;font-weight:700;}
.enigma-bank .section-button {min-height:0;}
.enigma-levels {grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;}
.enigma-bank .enigma-level-card {
  --level-bg:#e5edcf;
  --level-ink:#405b35;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:.75rem;
  padding:.8rem;
  border:1px solid var(--level-ink);
  outline:1px dashed var(--level-ink);
  outline-offset:-5px;
  color:var(--level-ink);
  background:repeating-linear-gradient(176deg,#75451c13 0 1px,transparent 2px 7px),var(--level-bg);
  box-shadow:0 4px 0 #604a323a;
}
.enigma-bank .enigma-level-card:nth-child(2) {--level-bg:#dce9e9;--level-ink:#375666;}
.enigma-bank .enigma-level-card:nth-child(3) {--level-bg:#f3e3c5;--level-ink:#73501d;}
.enigma-bank .enigma-level-card:nth-child(4) {--level-bg:#eee0e7;--level-ink:#69465e;}
.enigma-level-letter {
  display:grid;place-items:center;
  width:3rem;aspect-ratio:1;border-radius:.65rem;
  border:1px solid #96714a;
  color:var(--level-ink);
  background:repeating-linear-gradient(178deg,#80501d17 0 1px,transparent 2px 6px),#f7dfb2;
  box-shadow:0 2px 0 #74532c60;
  font:700 1.7rem Georgia,serif;
}
.enigma-level-copy {display:grid;gap:.15rem;min-width:0;}
@media(max-width:530px) {.enigma-levels {grid-template-columns:1fr;}}
.enigma-bank .enigma-list {align-items:stretch;}
.enigma-bank .enigma-list strong {font-size:clamp(1rem,2.5vw,1.2rem);overflow-wrap:anywhere;}
.enigma-sheet {max-width:48rem;margin-inline:auto;}
.enigma-banner > .enigma-puzzle-heading {
  padding:.62rem .9rem;
  display:grid;
  gap:.3rem;
  letter-spacing:normal;
}
.enigma-puzzle-index {font:750 clamp(.8rem,2.7vw,1rem)/1.25 system-ui,sans-serif;}
.enigma-puzzle-name {font:700 clamp(1.35rem,6vw,2.35rem)/1.14 Georgia,serif;}
.enigma-art {
  display:block;
  width:min(100%,18rem);
  height:auto;
  aspect-ratio:1;
  margin:.6rem 0 1rem;
  border-radius:.8rem;
  box-shadow:0 3px 8px #472d203c;
}
.enigma-paragraph,.enigma-note {white-space:pre-wrap;overflow-wrap:anywhere;}
.enigma-note {padding:.55rem .7rem;border-inline-start:3px solid #a57241;background:#fff1d5;}
.enigma-bank details {margin-top:.65rem;}
#detective-welcome {
  position:fixed;
  z-index:99;
  inset:0;
  display:grid;
  align-items:center;
  padding:clamp(1rem,7vw,7rem);
  pointer-events:none;
  background:#102d2c url('./bienvenida-detective.jpg') center/cover no-repeat;
  color:#ffe5b0;
}
#detective-welcome span {display:grid;gap:.25rem;justify-self:start;text-shadow:0 2px 10px #09211f;}
#detective-welcome strong {font:700 clamp(3rem,9vw,7rem)/1 Georgia,serif;}
#detective-welcome small {font:600 clamp(1rem,3vw,1.6rem)/1.3 Georgia,serif;}
@media(max-aspect-ratio:4/5) {
  #detective-welcome {
    align-items:end;
    padding-bottom:max(14vh,env(safe-area-inset-bottom));
    background-image:linear-gradient(0deg,#0e2a28 5%,transparent 53%),url('./bienvenida-detective.jpg');
    background-position:center,82% center;
  }
  #detective-welcome span {justify-self:center;text-align:center;}
}
@media(prefers-reduced-motion:no-preference) {
  #detective-welcome {animation:detective-welcome 1s linear both;}
  @keyframes detective-welcome {0%,82%{opacity:1}100%{opacity:0}}
}

.tin-preview-link {
  display:inline-flex;
  align-items:center;
  gap:.65rem;
  max-width:100%;
  margin-block:.65rem 1rem;
  padding:.3rem .9rem .3rem .45rem;
  border:1px solid #875b3c;
  border-radius:12px;
  outline:1px dashed #9a6b49;
  outline-offset:-4px;
  background:repeating-linear-gradient(176deg,#8c53251a 0 1px,transparent 2px 7px),linear-gradient(105deg,#fff3dc,#e9ca9d);
  color:#3f2b1f;
  box-shadow:0 3px 0 #57361433;
  font:700 1.05rem/1.25 Georgia,serif;
  text-decoration:none;
}
.tin-preview-link img { flex:none; object-fit:contain; }
.tin-preview-link:hover { text-decoration:underline; }
.tin-preview-link:focus-visible { outline:3px solid #4e64b5; outline-offset:3px; }
