/* Memory-only child presentation; cards, categories, and matching rules stay intact. */
body.memory-game-route.game-focus-route .game-focus-top .language-picker>span{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0
}
body.memory-game-route.game-focus-route #main .game-head{display:none}
body.memory-game-route.game-focus-route #main .playground-top{
  display:contents;min-height:0;padding:0;background:transparent
}
body.memory-game-route.game-focus-route #main .playground-top>div{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0
}
body.memory-game-route.game-focus-route #main .playground-top .eyebrow{display:none}
body.memory-game-route.game-focus-route #main .playground-top h1{
  font-size:1px;line-height:1px
}
body.memory-game-route.game-focus-route #main .playground-top .round-audio{
  grid-column:2;grid-row:1;justify-self:end;
  width:48px;height:48px;min-width:48px;min-height:48px;margin:0
}
body.memory-game-route.game-focus-route #main .memory-category-menu{
  position:relative;z-index:5;grid-column:3;grid-row:1;
  align-self:center;width:max-content;margin:0 0 0 8px
}
body.memory-game-route.game-focus-route #main .memory-category-menu>summary{
  position:relative;display:flex;align-items:center;justify-content:center;gap:5px;
  width:50px;height:48px;min-width:48px;min-height:48px;
  padding:3px;border:2px solid #d5e5dc;border-radius:16px;
  background:#f1f7f1;color:#28534c;box-shadow:0 3px 0 #24455312;
  cursor:pointer;list-style:none
}
body.memory-game-route.game-focus-route #main .memory-category-menu>summary::-webkit-details-marker{display:none}
body.memory-game-route.game-focus-route #main .memory-category-menu>summary::after{
  content:"✓";position:absolute;top:-4px;right:-4px;display:grid;place-items:center;
  width:17px;height:17px;border:2px solid #fff;border-radius:50%;
  background:#087e80;color:#fff;font:700 10px/1 system-ui,sans-serif
}
body.memory-game-route.game-focus-route #main .memory-category-menu>summary>span:first-child{
  font-size:1.6rem;line-height:1
}
body.memory-game-route.game-focus-route #main .memory-category-chevron{
  position:absolute;right:3px;bottom:0;font-size:.78rem;line-height:1
}
body.memory-game-route.game-focus-route #main .memory-category-menu>summary:focus-visible,
body.memory-game-route.game-focus-route #main .memory-category-options button:focus-visible{
  outline:3px solid #125b68;outline-offset:3px;z-index:2
}
body.memory-game-route.game-focus-route #main .memory-category-options{
  position:absolute;top:calc(100% + 7px);left:50%;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;
  width:min(286px,calc(100vw - 32px));max-height:min(54dvh,220px);
  overflow:auto;padding:10px;border:1px solid #dce8e0;border-radius:18px;
  background:#fff;box-shadow:0 12px 30px #193f4930;
  transform:translateX(-50%);z-index:20
}
body.memory-game-route.game-focus-route #main .memory-category-options button{
  position:relative;display:grid;place-items:center;min-width:48px;min-height:48px;
  padding:3px;border:2px solid transparent;border-radius:14px;
  background:var(--memory-topic-color,#edf4ef);color:#284a48;
  box-shadow:0 3px 0 #24455312;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease
}
body.memory-game-route.game-focus-route #main .memory-category-options button>span{
  font-size:1.65rem;line-height:1
}
body.memory-game-route.game-focus-route #main .memory-category-options button[aria-pressed="true"]{
  border-color:#087e80;box-shadow:0 0 0 2px #087e8030,0 3px 0 #087e8020;
  transform:translateY(-1px)
}
body.memory-game-route.game-focus-route #main .memory-category-options button[aria-pressed="true"]::after{
  content:"✓";position:absolute;top:-4px;right:-4px;display:grid;place-items:center;
  width:17px;height:17px;border:2px solid #fff;border-radius:50%;
  background:#087e80;color:#fff;font:700 10px/1 system-ui,sans-serif
}
body.memory-game-route.game-focus-route #main .memory-tile:focus-visible{
  outline:3px solid #125b68;outline-offset:3px;z-index:2
}
body.memory-game-route.game-focus-route #main .game-session-progress{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0
}
body.memory-game-route.game-focus-route #main .game-feedback{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0
}
body.memory-game-route #toast[data-notice="missing-audio"]{display:none}
body.memory-game-route.game-focus-route #main .memory-board{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  flex:0 0 auto;align-content:start;justify-content:center;
  width:min(100%,980px);max-width:980px;margin:0 auto;
  gap:clamp(6px,1.15vw,10px);padding:0
}
body.memory-game-route.game-focus-route #main .playground{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto minmax(0,1fr);
  grid-template-rows:48px auto;align-content:start;align-items:start;
  width:100%;height:auto;min-height:0;margin:0 auto;background:#e9e3df;
  gap:clamp(4px,.8vh,7px);padding:4px clamp(4px,1.2vw,10px) 8px
}
body.memory-game-route.game-focus-route #main .game-body{
  grid-column:1/-1;grid-row:2;display:block;flex:0 0 auto;
  width:100%;min-width:0;min-height:0;margin:0;
  justify-content:flex-start;gap:0;padding:0
}
body.memory-game-route.game-focus-route #main .memory-tile{
  position:relative;isolation:isolate;display:grid;place-items:center;
  width:100%;min-width:44px;min-height:44px;
  height:clamp(100px,calc((100dvh - 312px)/4),136px);
  padding:clamp(5px,1vw,10px);
  overflow:hidden;border:2px solid transparent;
  border-radius:clamp(15px,2vw,22px);background:#e9f5ee;
  box-shadow:0 5px 0 #24455316,0 8px 16px #2445530b;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation
}
body.memory-game-route.game-focus-route #main .memory-tile:not(.flipped){
  border-color:var(--memory-card-edge,#d6e6dd);
  background:linear-gradient(145deg,#fff 0%,var(--memory-card-back,#e9f5ee) 100%)
}
body.memory-game-route.game-focus-route #main .memory-tile:not(.flipped)::before{
  content:"";position:absolute;inset:7px;border:1.5px dashed #ffffffc9;
  border-radius:inherit;pointer-events:none
}
body.memory-game-route.game-focus-route #main .memory-tile:not(.flipped):nth-child(4n+1){
  --memory-card-back:#fce8ed;--memory-card-edge:#efcad5
}
body.memory-game-route.game-focus-route #main .memory-tile:not(.flipped):nth-child(4n+2){
  --memory-card-back:#e5f3fb;--memory-card-edge:#c7dfeb
}
body.memory-game-route.game-focus-route #main .memory-tile:not(.flipped):nth-child(4n+3){
  --memory-card-back:#fff1d8;--memory-card-edge:#ead8b5
}
body.memory-game-route.game-focus-route #main .memory-tile:not(.flipped):nth-child(4n){
  --memory-card-back:#e7f3e6;--memory-card-edge:#cbdcce
}
body.memory-game-route.game-focus-route #main .memory-tile .back-star{
  z-index:1;display:grid;place-items:center;width:clamp(38px,5.2vw,54px);
  height:clamp(38px,5.2vw,54px);border-radius:50%;background:#ffffffa8;
  color:#34716c;font-size:clamp(1.65rem,3.2vw,2.3rem);
  text-shadow:0 1px 0 #fff
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped{
  border-color:#efd987;background:#fff8df;
  animation:memory-card-reveal 220ms cubic-bezier(.2,.75,.25,1) both
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped.matched{
  border-color:#9bcbb0;background:#e8f5ec;
  box-shadow:0 4px 0 #a9ccb716,0 0 0 1px #a9ccb72b
}
body.memory-game-route.game-focus-route #main .memory-tile.just-matched{
  animation:memory-match-glow 620ms ease-out both,memory-match-bounce 520ms cubic-bezier(.2,.75,.25,1) both
}
body.memory-game-route.game-focus-route #main .memory-tile.just-matched::before,
body.memory-game-route.game-focus-route #main .memory-tile.just-matched::after{
  position:absolute;top:4px;color:#e6aa43;font-size:.9rem;line-height:1;
  pointer-events:none;animation:memory-match-sparkle 620ms ease-out both
}
body.memory-game-route.game-focus-route #main .memory-tile.just-matched::before{
  content:"✦";left:6px;animation-delay:40ms
}
body.memory-game-route.game-focus-route #main .memory-tile.just-matched::after{
  content:"✧";right:6px;animation-delay:120ms
}
body.memory-game-route.game-focus-route #main .memory-tile.mismatch{
  animation:memory-mismatch-settle 300ms ease-out both,memory-card-reveal 220ms cubic-bezier(.2,.75,.25,1) both
}
body.memory-game-route.game-focus-route #main .memory-tile.returning{
  animation:memory-card-return 230ms cubic-bezier(.3,.7,.3,1) both
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped img{
  width:88%!important;height:84%!important;max-width:88%!important;max-height:84%!important;
  margin:auto;object-fit:contain!important;object-position:center!important;transform:none!important
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped .emoji{
  font-size:clamp(2.15rem,5.4vw,3.1rem);line-height:1
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped b{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0
}
@keyframes memory-card-reveal{
  from{opacity:.82;transform:perspective(560px) rotateY(64deg) scale(.97)}
  to{opacity:1;transform:perspective(560px) rotateY(0) scale(1)}
}
@keyframes memory-card-return{
  from{opacity:.9;transform:perspective(560px) rotateY(-55deg) scale(.98)}
  to{opacity:1;transform:perspective(560px) rotateY(0) scale(1)}
}
@keyframes memory-match-glow{
  0%,100%{box-shadow:0 4px 0 #a9ccb716,0 0 0 1px #a9ccb72b}
  45%{box-shadow:0 4px 0 #a9ccb716,0 0 0 5px #90c8a95c}
}
@keyframes memory-match-sparkle{
  0%,100%{opacity:0;transform:scale(.65) rotate(-10deg)}
  42%{opacity:.82;transform:scale(1.08) rotate(8deg)}
}
@keyframes memory-match-bounce{
  0%{opacity:.84;transform:perspective(560px) rotateY(64deg) scale(.96)}
  38%{opacity:1;transform:perspective(560px) rotateY(0) translateY(-4px) scale(1.025)}
  66%{transform:perspective(560px) rotateY(0) translateY(1px) scale(.99)}
  100%{transform:perspective(560px) rotateY(0) translateY(0) scale(1)}
}
@keyframes memory-mismatch-settle{
  0%,100%{box-shadow:0 5px 0 #24455316,0 8px 16px #2445530b}
  45%{box-shadow:0 5px 0 #24455316,0 0 0 3px #e6bd83a3}
}
@media(max-width:700px){
  body.memory-game-route.game-focus-route .game-focus-top{min-height:54px;padding:2px 0}
  body.memory-game-route.game-focus-route #main .playground{padding:3px 4px 7px}
  body.memory-game-route.game-focus-route #main .memory-board{
    grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:520px;
    align-content:start;gap:clamp(6px,1.8vw,9px);padding:0
  }
  body.memory-game-route.game-focus-route #main .memory-tile{
    min-height:44px;height:clamp(100px,calc((100dvh - 312px)/4),136px);
    border-radius:16px;padding:4px
  }
  body.memory-game-route.game-focus-route #main .memory-tile.flipped .emoji{font-size:clamp(2rem,8vw,2.6rem)}
  body.memory-game-route.game-focus-route #main .memory-tile .back-star{
    width:clamp(42px,12vw,54px);height:clamp(42px,12vw,54px);
    font-size:clamp(1.8rem,7vw,2.1rem)
  }
  body.memory-game-route.game-focus-route #main .memory-category-options{width:min(286px,calc(100vw - 28px))}
}
@media(max-width:359px){
  body.memory-game-route.game-focus-route #main .memory-tile{
    min-height:44px;height:clamp(94px,calc((100dvh - 312px)/4),116px);
    border-radius:13px;padding:3px
  }
}
@media(min-width:701px){
  body.memory-game-route.game-focus-route #main .memory-board{
    grid-template-columns:repeat(4,minmax(0,1fr));
    width:min(100%,680px);max-width:680px;
    gap:clamp(10px,1.2vw,14px)
  }
  body.memory-game-route.game-focus-route #main .memory-tile{
    min-height:150px;height:clamp(150px,calc((100dvh - 240px)/4),200px)
  }
  body.memory-game-route.game-focus-route #main .memory-tile.flipped img{
    width:88%!important;height:88%!important;max-width:88%!important;max-height:88%!important;
    object-fit:contain!important;object-position:center!important;transform:none!important
  }
}
@media(prefers-reduced-motion:reduce){
  body.memory-game-route.game-focus-route #main .memory-category-menu>summary,
  body.memory-game-route.game-focus-route #main .memory-category-options button,
  body.memory-game-route.game-focus-route #main .memory-tile{
    transition:none!important;animation:none!important;transform:none!important
  }
  body.memory-game-route.game-focus-route #main .memory-tile.just-matched::before,
  body.memory-game-route.game-focus-route #main .memory-tile.just-matched::after{display:none}
}

/* Vendespil: a little meadow-side card table, isolated from every other game. */
body.memory-game-route{
  --memory-ink:#38566a;--memory-teal:#0e7892;--memory-cream:#fff7df;
  min-height:100dvh;overflow-x:hidden;
  background:#8dd7ee url("/assets/memory-gameplay-background.webp") center/cover no-repeat;
}
body.memory-game-route.game-focus-route .main-shell{
  width:100%;max-width:1500px;min-height:100dvh;
  padding:max(4px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
  background:transparent;
}
body.memory-game-route.game-focus-route .game-focus-top{min-height:58px;padding:3px 0 7px;background:transparent}
body.memory-game-route.game-focus-route .game-focus-top .top-actions{
  grid-template-columns:minmax(0,1fr) auto 48px;gap:7px
}
body.memory-game-route.game-focus-route .game-overview-exit{
  border:2px solid #f6d58c;background:#fff8e6;color:#4d684f;
  box-shadow:0 4px 0 #97652f2b;border-radius:18px 18px 8px 18px
}
body.memory-game-route.game-focus-route #main{
  width:100%;max-width:1040px;min-width:0;margin:0 auto;padding:0;background:transparent
}
body.memory-game-route.game-focus-route #main .game-head{display:none}
body.memory-game-route.game-focus-route #main .memory-playground{
  position:relative;isolation:isolate;display:flex;align-items:center;flex-direction:column;
  gap:8px;width:min(100%,860px);height:auto;
  min-height:0;margin:0 auto;padding:clamp(10px,1.5vw,18px) 0;
  border:0;border-radius:0;background:transparent;box-shadow:none
}
body.memory-game-route.game-focus-route #main .memory-playground::before{
  display:none
}
body.memory-game-route.game-focus-route #main .memory-playground>.playground-top{
  display:flex;align-items:center;justify-content:center;position:relative;
  width:min(100%,680px);min-height:56px;padding:0;background:transparent;text-align:center
}
body.memory-game-route.game-focus-route #main .memory-playground>.playground-top>div{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0
}
body.memory-game-route.game-focus-route #main .memory-playground .eyebrow{display:none}
body.memory-game-route.game-focus-route #main .memory-playground .playground-top h1{
  margin:0;color:#3d6652;font:700 clamp(1rem,2.2vw,1.35rem)/1.1 "Fredoka","Trebuchet MS",sans-serif;
  letter-spacing:.01em
}
body.memory-game-route.game-focus-route #main .memory-playground .round-audio{
  position:absolute;left:50%;right:auto;top:50%;transform:translate(-50%,-50%);
  display:grid;place-items:center;width:56px;height:56px;min-width:56px;min-height:56px;
  border:2px solid #e1c781;border-radius:50%;background:#fff9e9;box-shadow:0 3px 0 #9b702c28;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation
}
body.memory-game-route.game-focus-route #main .memory-playground .round-audio img{width:32px;height:32px}
body.memory-game-route.game-focus-route #main .memory-category-menu{
  display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:clamp(4px,1vw,9px);
  width:100%;min-width:0;margin:0
}
body.memory-game-route.game-focus-route #main .memory-category-button{
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;
  min-width:0;min-height:54px;padding:3px;border:2px solid #edcf8e;
  border-radius:14px;background:#fff8e8;color:#526a52;
  box-shadow:0 3px 0 #9b702c22;font:600 clamp(.57rem,1vw,.72rem)/1.05 "Fredoka","Trebuchet MS",sans-serif;
  cursor:pointer;touch-action:manipulation;transition:transform .16s ease,border-color .16s ease
}
body.memory-game-route.game-focus-route #main .memory-category-button img{width:29px;height:29px;object-fit:contain}
body.memory-game-route.game-focus-route #main .memory-category-button[aria-pressed="true"]{
  border-color:#e89d37;background:#fff0c4;box-shadow:0 0 0 2px #efb54a3b,0 3px 0 #9b702c22
}
body.memory-game-route.game-focus-route #main .memory-category-button:focus-visible,
body.memory-game-route.game-focus-route #main .memory-tile:focus-visible,
body.memory-game-route.game-focus-route #main .round-audio:focus-visible{
  outline:3px solid #0c7188;outline-offset:3px;z-index:2
}
body.memory-game-route.game-focus-route #main .memory-progress{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important
}
body.memory-game-route.game-focus-route #main .memory-playground>.game-body{
  display:block;flex:0 0 auto;width:100%;min-width:0;min-height:0;margin:0;padding:0
}
body.memory-game-route.game-focus-route #main .memory-board{
  position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  align-content:center;gap:clamp(5px,1.05vw,12px);
  width:min(100%,680px);max-width:680px;margin:0 auto;
  padding:clamp(23px,4.3vw,38px);background:transparent
}
body.memory-game-route.game-focus-route #main .memory-board::before{
  content:"";position:absolute;z-index:-1;inset:0;
  background:url("/assets/memory-board-frame.svg") center/100% 100% no-repeat;
  filter:drop-shadow(0 8px 10px #624c2f3d);pointer-events:none
}
body.memory-game-route.game-focus-route #main .memory-tile{
  position:relative;isolation:isolate;display:grid;place-items:center;
  width:100%;min-width:0;min-height:44px;height:auto;aspect-ratio:.88;
  padding:8px;overflow:hidden;border:0;border-radius:clamp(13px,1.6vw,21px);
  background:#fff8e9 url("/assets/memory-card-front-frame.svg") center/100% 100% no-repeat;
  box-shadow:0 4px 0 #84552348,0 7px 13px #4b64312b;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation
}
body.memory-game-route.game-focus-route #main .memory-tile:not(.flipped){
  background:#fff6df url("/assets/memory-card-back.png") center/100% 100% no-repeat;
  border:0;box-shadow:0 4px 0 #15578050,0 7px 13px #4b64312b
}
body.memory-game-route.game-focus-route #main .memory-tile:not(.flipped)::before{display:none}
body.memory-game-route.game-focus-route #main .memory-tile .back-star{display:none}
body.memory-game-route.game-focus-route #main .memory-tile.flipped{
  border:0;background:#fff8e9 url("/assets/memory-card-front-frame.svg") center/100% 100% no-repeat
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped img{
  width:83%!important;height:79%!important;max-width:83%!important;max-height:79%!important;
  margin:auto;object-fit:contain!important;object-position:center!important;transform:none!important
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped .emoji{
  font-size:clamp(2rem,5vw,3.4rem);line-height:1
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped b{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0
}
body.memory-game-route.game-focus-route #main .memory-tile.flipped.matched{
  background-color:#fff4d8;box-shadow:0 4px 0 #82af7860,0 0 0 2px #8fc58b55
}
body.memory-game-route.game-focus-route #main .memory-category-menu button{min-width:0}
body.memory-game-route.game-focus-route #main .memory-feedback{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important
}
body.memory-game-route.game-focus-route #main .memory-celebration{
  position:relative;isolation:isolate;display:grid;place-items:center;align-content:center;
  gap:9px;width:100%;min-height:min(760px,calc(100dvh - 72px));padding:24px 16px;
  overflow:hidden;border-radius:30px;background:#a8def1 url("/assets/memory-completion-background.webp") center/cover no-repeat;
  text-align:center
}
body.memory-game-route.game-focus-route #main .memory-celebration-panel{
  position:relative;display:flex;align-items:center;flex-direction:column;
  width:min(100%,440px);padding:clamp(20px,4vw,34px) 20px 22px;
  border:5px solid #d99543;border-radius:36px;background:#fff4d4ed;
  box-shadow:inset 0 0 0 4px #ffe9ad,0 10px 24px #603d2552
}
body.memory-game-route.game-focus-route #main .memory-success-star{
  width:clamp(126px,23vw,205px);height:auto;margin-top:-5px;
  filter:drop-shadow(0 5px 4px #875a3133)
}
body.memory-game-route.game-focus-route #main .memory-completion-sparkle{
  position:absolute;top:28px;right:13%;width:34px;height:34px
}
body.memory-game-route.game-focus-route #main .memory-celebration h1{
  margin:3px 0;color:#785229;font:700 clamp(1.7rem,4vw,2.6rem)/1.05 "Fredoka","Trebuchet MS",sans-serif
}
body.memory-game-route.game-focus-route #main .memory-celebration p{margin:5px 0;color:#526a52;font-weight:600}
body.memory-game-route.game-focus-route #main .memory-celebration .game-result-score{
  color:#bb741f;font:700 1.15rem/1.2 "Fredoka","Trebuchet MS",sans-serif
}
body.memory-game-route.game-focus-route #main .memory-completion-actions{
  display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px
}
body.memory-game-route.game-focus-route #main .memory-completion-action{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-width:54px;min-height:52px;padding:7px 15px;border:2px solid #dfbd77;
  border-radius:18px;background:#fff9e8;color:#41635c;text-decoration:none;
  box-shadow:0 4px 0 #9b702c2b;font:600 .95rem "Fredoka","Trebuchet MS",sans-serif
}
body.memory-game-route.game-focus-route #main .memory-completion-action img{width:27px;height:27px;object-fit:contain}
body.memory-game-route.game-focus-route #main .memory-treasure{
  position:absolute;right:clamp(4px,7vw,90px);bottom:8px;width:clamp(95px,18vw,190px);
  pointer-events:none
}
body.memory-game-route.game-focus-route #main .memory-sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0
}
@media(max-width:700px){
  body.memory-game-route.game-focus-route #main .memory-playground{
    gap:4px;padding:0 0 8px
  }
  body.memory-game-route.game-focus-route #main .memory-playground>.playground-top{min-height:56px}
  body.memory-game-route.game-focus-route #main .memory-category-menu{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  body.memory-game-route.game-focus-route #main .memory-category-button{
    min-height:44px;padding:2px 1px;border-radius:11px;font-size:.58rem
  }
  body.memory-game-route.game-focus-route #main .memory-category-button img{width:25px;height:25px}
  body.memory-game-route.game-focus-route #main .memory-board{
    width:min(100%,520px);gap:clamp(5px,1.4vw,8px);padding:clamp(18px,4.3vw,24px);
    margin:-4px auto 0
  }
  body.memory-game-route.game-focus-route #main .memory-tile{
    height:auto;min-height:44px;padding:5px
  }
  body.memory-game-route.game-focus-route #main .memory-tile.flipped img{
    width:84%!important;height:80%!important;max-width:84%!important;max-height:80%!important
  }
  body.memory-game-route.game-focus-route #main .memory-celebration{
    min-height:calc(100dvh - 70px);padding:18px 10px
  }
  body.memory-game-route.game-focus-route #main .memory-treasure{right:0;bottom:0;width:100px}
}
@media(max-width:359px){
  body.memory-game-route.game-focus-route #main .memory-playground{padding:0 0 8px}
  body.memory-game-route.game-focus-route #main .memory-category-menu{gap:2px}
  body.memory-game-route.game-focus-route #main .memory-category-button{font-size:.46rem}
  body.memory-game-route.game-focus-route #main .memory-category-button img{width:23px;height:23px}
  body.memory-game-route.game-focus-route #main .memory-board{padding:17px}
  body.memory-game-route.game-focus-route #main .memory-tile{height:auto}
}
@media(min-width:701px){
  body.memory-game-route.game-focus-route #main .memory-playground{gap:12px;padding:16px 0 20px}
  body.memory-game-route.game-focus-route #main .memory-category-button{min-height:62px}
  body.memory-game-route.game-focus-route #main .memory-category-button img{width:34px;height:34px}
  body.memory-game-route.game-focus-route #main .memory-board{padding:clamp(30px,4vw,42px)}
}
@media(prefers-reduced-motion:reduce){
  body.memory-game-route.game-focus-route #main .memory-category-button,
  body.memory-game-route.game-focus-route #main .memory-tile,
  body.memory-game-route.game-focus-route #main .memory-tile.just-matched{transition:none!important;animation:none!important;transform:none!important}
}