@font-face{font-family:"Aileron";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/Aileron-Regular-webfont.woff") format("woff")}
@font-face{font-family:"Aileron";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/Aileron-SemiBold-webfont.woff") format("woff")}
@font-face{font-family:"Aileron";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/Aileron-Bold-webfont.woff") format("woff")}
@font-face{font-family:"Aileron";font-style:normal;font-weight:900;font-display:swap;src:url("../fonts/Aileron-Black-webfont.woff") format("woff")}
@font-face{font-family:"Redaction";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/Redaction-Bold.woff2") format("woff2")}
:root{
  --paper:#cddcc5;      /* verde suave, tono beige de la marca */
  --ink:#3b3331;        /* texto y contornos de la marca */
  --oval:#e8dcd9;       /* relleno de los ovalos de la marca */
}
html,body{
  margin:0;height:100%;overflow:hidden;
  background:var(--paper);color:var(--ink);
  font-family:Aileron,Helvetica,Arial,sans-serif;
}
canvas#stage{
  position:fixed;inset:0;width:100%;height:100%;display:block;
  touch-action:manipulation;
}
/* Pointer from the Odd web: blue dot with exclusion blend, grows over interactive things */
.cursor{
  position:fixed;left:0;top:0;z-index:1000;pointer-events:none;
  width:16px;height:16px;border-radius:50%;
  background:#376ff7;mix-blend-mode:exclusion;
  translate:-50% -50%;transition:width .25s ease,height .25s ease,opacity .2s;opacity:0;
  will-change:transform;
}
.cursor.is-on{opacity:1}
.cursor.is-big{width:64px;height:64px}
@media (hover:hover) and (pointer:fine){
  html.has-cursor, html.has-cursor *{cursor:none !important}
}
.start{
  position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:clamp(18px,4vh,36px);
  padding:24px 16px 104px;background:var(--paper);text-align:center;
  transition:opacity .4s ease;
}
.start.is-gone{opacity:0;pointer-events:none}
.start__title{margin:0;font-size:min(7vw,88px);white-space:nowrap}   /* words and sweater stay on one line on wide screens */
.start__title small{display:block;font-family:Aileron,Helvetica,Arial,sans-serif;font-weight:600;font-size:clamp(14px,2vw,18px);letter-spacing:0;margin-top:clamp(36px,9vw,104px);opacity:.85}
/* Sweater set inside the title, between the words, like the inline image in the blog headlines */
.start__inline{
  display:inline-block;height:3.3em;width:auto;vertical-align:middle;margin:-1.1em .12em;   /* sticks out of the band */
}
/* Phones: three rows, with the sweater between the words and overlapping both bands */
@media (max-width:520px){
  .start__title{font-size:15vw;white-space:normal}
  .start__title small{margin-top:16px}
  .start__inline{display:block;position:relative;z-index:1;height:2.6em;margin:-.3em auto}
}
/* Black button from the Odd web: pill that turns into a square and grows a little on hover */
.start-btn{
  display:inline-flex;align-items:center;height:38px;padding:0 16px;white-space:nowrap;
  font:600 12px/1 Aileron,Helvetica,Arial,sans-serif;letter-spacing:.3px;text-transform:uppercase;
  background:#221d1c;color:#f6ebe8;border:0;border-radius:19px;cursor:pointer;
  transition:height .5s cubic-bezier(.19,1,.22,1),margin .5s cubic-bezier(.19,1,.22,1),border-radius 1.2s cubic-bezier(.19,1,.22,1);
}
.start-btn:hover,.start-btn:focus-visible{height:46px;margin-block:-4px;border-radius:0}
/* Button text tilts on hover, part of the Odd button system */
.btn-txt{display:inline-block;transition:rotate .5s cubic-bezier(.19,1,.22,1)}
.start-btn:hover .btn-txt,.start-btn:focus-visible .btn-txt,
.ghost:hover .btn-txt,.ghost:focus-visible .btn-txt,
.save-btn:not(:disabled):hover .btn-txt,.save-btn:not(:disabled):focus-visible .btn-txt{rotate:-15deg}
.start-btn:focus-visible{outline:2px solid #376ff7;outline-offset:4px}
/* Same type as the web labels: Aileron 700, 12px, uppercase, on a sand box */
.copy{
  position:fixed;left:0;right:0;bottom:16px;z-index:40;margin:0;text-align:center;
  font:700 12px/1.5 Aileron,Helvetica,Arial,sans-serif;letter-spacing:.3px;text-transform:uppercase;
  color:#221d1c;pointer-events:none;padding:0 16px;
}
.copy span{background:#e8dcd9;padding:1px 4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.copy__credit{font-size:10px;font-weight:400;text-transform:none}
.copy a{color:#376ff7;pointer-events:auto;text-decoration:none}
.copy a:hover{text-decoration:underline;text-underline-offset:4px}
/* Game over: name field like the web search field, square save button, ranking, actions */
.over{
  position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;
  background:var(--paper);overflow:auto;padding:32px 16px 120px;text-align:center;
}
.over[hidden]{display:none}
.over__box{width:min(480px,100%);display:grid;justify-items:center;gap:16px}
.over__title{margin:0;font-size:clamp(40px,8vw,64px)}
.over__sub{margin:0;font-weight:700;font-size:16px}
.over__score,.over__rank-title{margin:0;font-weight:700;font-size:12px;letter-spacing:.3px;text-transform:uppercase}
.over__note{margin:0;font-size:12px;font-weight:700}
.field{
  width:220px;max-width:100%;height:38px;padding:0 12px;background:#f6ebe8;color:#221d1c;
  border:1px solid #221d1c;border-radius:0;outline:none;
  font:600 12px/1 Aileron,Helvetica,Arial,sans-serif;letter-spacing:.3px;text-transform:uppercase;
}
.field::placeholder{color:#767676}
.field:disabled{opacity:.7}
.save{display:flex;gap:8px;justify-content:center;align-items:stretch}
.save-btn{
  height:38px;padding:0 20px;border:0;border-radius:0;background:#b5b5b5;color:#f6ebe8;
  font:700 12px/1 Aileron,Helvetica,Arial,sans-serif;letter-spacing:.3px;text-transform:uppercase;cursor:pointer;
}
.save-btn:not(:disabled){background:#221d1c}
.save-btn:disabled{cursor:default}
.rank{list-style:none;margin:0;padding:0;width:100%;max-width:360px;display:grid;gap:6px}
.rank li{
  display:flex;justify-content:space-between;gap:12px;padding:6px 12px;background:#e8dcd9;
  font:700 12px/1.5 Aileron,Helvetica,Arial,sans-serif;letter-spacing:.3px;text-transform:uppercase;
}
.rank li span:first-child{flex:1;text-align:left}
.rank li em{font-style:normal;font-weight:400;min-width:3em;text-align:right}
.over__actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;align-items:center}
.over__actions[hidden]{display:none}
.ghost{
  display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:19px;background:#e8dcd9;color:#221d1c;white-space:nowrap;
  font:600 12px/1 Aileron,Helvetica,Arial,sans-serif;letter-spacing:.3px;text-transform:uppercase;text-decoration:none;
  transition:height .5s cubic-bezier(.19,1,.22,1),margin .5s cubic-bezier(.19,1,.22,1),border-radius 1.2s cubic-bezier(.19,1,.22,1);
}
.ghost:hover,.ghost:focus-visible{height:46px;margin-block:-4px;border-radius:0}
.hud__right{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.sound{gap:6px;background:none;border:1px solid #221d1c;cursor:pointer;pointer-events:auto}
.sound__icon{width:16px;height:16px;flex:none}
.sound__wave,.sound__x{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.sound__x{display:none}
.sound.is-off .sound__wave{display:none}
.sound.is-off .sound__x{display:inline}
.hud{transition:opacity .4s ease}
.hud.is-hidden{opacity:0}
.hud{
  position:fixed;left:16px;right:16px;top:14px;
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  pointer-events:none;
}
/* Titles: Redaction Bold on the lavender band from the Odd web */
.title,.start__title,.over__title{font-family:Redaction,Georgia,"Times New Roman",serif;font-weight:700;line-height:1.15;letter-spacing:0}
.band{background:#d5d6ec;padding:0 .08em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.title{font-size:clamp(30px,6vw,56px)}
.title small{
  display:block;font-family:Aileron,Helvetica,Arial,sans-serif;font-weight:600;font-size:clamp(12px,1.8vw,16px);
  letter-spacing:0;margin-top:6px;opacity:.85;
}
.count{
  font-weight:700;font-size:clamp(14px,2.2vw,18px);white-space:nowrap;
  background:var(--oval);color:var(--ink);
  border:1px solid #221d1c;border-radius:999px;
  padding:8px 18px;
}
@media (max-width:520px){
  .hud{flex-direction:column;align-items:center;text-align:center}
  .hud__right{flex-direction:row;align-items:center;justify-content:center;gap:6px}
  .hud .count{display:flex;align-items:center;gap:.25em;box-sizing:border-box;height:38px;padding:0 12px;font-size:13px}
  .hud .sound{box-sizing:border-box;padding:0 10px}
}
@media (max-width:360px){
  .hud .sound .btn-txt{display:none}   /* icon only: both pills fit with a margin */
}
