/* Approved character pictures and simple, generically labeled nature props. */
.matching-section{padding-block:76px;background:#fff0c9;border-block:1px solid #ead8ae}
.matching-intro .eyebrow{color:#56633d}
.matching-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:72px;align-items:center}
.matching-intro>p:not(.eyebrow){max-width:365px;margin-top:23px;font-size:18px;color:#596348}
.matching-intro>p.matching-note{font-size:16px;margin-top:18px}
.matching-intro>p.matching-keyboard{font-size:12px;margin-top:27px}
.matching-game{text-align:center;max-width:590px;width:100%;justify-self:center}
.matching-game[hidden]{display:none}
.matching-mode{display:flex;justify-content:center;gap:12px;margin-bottom:18px}
.matching-mode button{min-height:52px;padding:10px 18px;border:2px solid #b79ac0;border-radius:18px;background:#fffdf6;color:#57315d;font-weight:900;cursor:pointer}
.matching-mode button[aria-pressed=true]{background:#744179;color:#fff;border-color:#57315d;box-shadow:0 3px 0 #d4bedc}
.matching-difficulty-control{display:flex;flex-direction:column;align-items:center;gap:7px;margin-bottom:19px}
.matching-difficulty-control label{font-weight:900;font-size:15px}
.matching-difficulty{width:100%;max-width:330px;min-height:52px;border:2px solid #bda984;border-radius:16px;padding:10px 30px 10px 14px;background:#fffdf6;color:#343e31;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.matching-difficulty:focus-visible{outline:3px solid #25637c;outline-offset:4px}
.matching-difficulty-control>span{font-size:11px;color:#596348}
.matching-rules{font-size:13px;line-height:1.5;min-height:42px;margin:0 0 17px;color:#596348}
.matching-scoreboard{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.matching-scoreboard[hidden]{display:none}
.matching-scoreboard>div{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:93px;padding:9px 13px;border:2px solid #d8ceb7;border-radius:19px;background:#fffdf6;line-height:1.35;font-size:12px}
.matching-scoreboard>div>span:first-child{font-weight:900;font-size:14px}
.matching-scoreboard strong{font-size:25px;font-weight:1000}
.matching-scoreboard>div.is-current{border-color:#744179;background:#f2e4f6}
.matching-turn{font-size:14px;font-weight:900;line-height:1.4;color:#57315d}
.matching-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.matching-card{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1/1.13;min-height:144px;padding:10px;border:3px solid #b79ac0;border-radius:25px;background:#e5c4f2;color:#57315d;box-shadow:0 5px 0 #d4bedc;cursor:pointer;overflow:hidden;transition:background .15s,transform .15s,border-color .15s}
.matching-card:hover:not([aria-disabled=true]){transform:translateY(-2px);background:#deb3ef}
.matching-card:focus-visible{outline:4px solid #25637c;outline-offset:4px;border-radius:25px;z-index:1}
.matching-card-back{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:14px;line-height:1.3;font-weight:900;gap:7px}
.matching-card-back>span:first-child{display:grid;place-items:center;width:57px;height:57px;border:2px solid #b99bc1;border-radius:50%;font-size:35px;line-height:1;background:#f7edf9}
.matching-card-face{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;gap:6px}
.matching-card-face img,.matching-card-face svg{width:100%;height:95px;min-height:0;object-fit:contain;background:#fff;border-radius:13px}
.matching-card-name{font-size:17px;font-weight:1000;line-height:1.2}
.matching-card-mark{display:block;font-size:11px;font-weight:900;line-height:1.2;min-height:14px}
.matching-card [hidden]{display:none}
.matching-card[data-state=up]{background:#fffdf6;border-color:#96719e;box-shadow:0 5px 0 #d4bedc;cursor:default}
.matching-card[data-state=matched]{background:#def3ba;border-color:#759353;box-shadow:0 5px 0 #c5d6aa;color:#3f572c;cursor:default}
.matching-status{display:grid;place-items:center;min-height:76px;padding:18px 5px 12px;font-size:16px;font-weight:900;line-height:1.45;color:#4d6142}
.matching-restart{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:54px;padding:11px 23px;border:2px solid #a9bf91;border-radius:20px;background:#e6f2cd;color:#3f572c;box-shadow:0 3px 0 #cbdbb8;font-weight:900;cursor:pointer}
.matching-restart:hover{background:#dcebbf}
.matching-restart>span{font-size:25px;line-height:1}
.matching-fallback{padding:25px;border:2px dashed #b79ac0;border-radius:24px}
#main-nav a[href="game.html"]{background:#e9d9f3;border-color:#cdb5dc;box-shadow:0 3px 0 #d5c0e0}
#main-nav a[href="#show"]{background:#d7edec;border-color:#b7d6d4;box-shadow:0 3px 0 #bfd6d4}
#main-nav a[href="#books"]{background:#f5dfed;border-color:#e1c8d7;box-shadow:0 3px 0 #e1c8d7}
@media(min-width:761px) and (max-width:1100px){.header-inner{gap:12px}.brand{width:120px}#main-nav{gap:7px}#main-nav a{font-size:13px;padding-inline:11px}#main-nav a.nav-parent{padding-inline:11px;gap:7px}.matching-layout{gap:34px;grid-template-columns:1fr 1.4fr}.matching-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.matching-card{padding:7px;border-radius:20px;min-height:134px;aspect-ratio:1.15}.matching-card-face img,.matching-card-face svg{height:91px}.matching-card-name{font-size:15px}.matching-card-mark{font-size:10px}.matching-card-back{font-size:12px}.matching-card-back>span:first-child{width:47px;height:47px;font-size:30px}}
@media(max-width:760px){.matching-section{padding-block:51px}.matching-layout{grid-template-columns:1fr;gap:28px}.matching-intro{text-align:center}.matching-intro .eyebrow{font-size:10px}.matching-intro>p:not(.eyebrow){font-size:16px;max-width:350px;margin:18px auto 0}.matching-intro>p.matching-note{font-size:14px;margin-top:14px}.matching-intro>p.matching-keyboard{font-size:11px;margin-top:15px}.matching-game{max-width:430px}.matching-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.matching-card{aspect-ratio:1/1.06;min-height:147px;border-radius:23px;padding:8px}.matching-card-face img,.matching-card-face svg{height:110px}.matching-card-back{font-size:14px}.matching-card-name{font-size:16px}.matching-status{min-height:79px;font-size:15px}.matching-restart{min-height:54px}}
@media(max-width:359px){.matching-grid{gap:12px}.matching-card{min-height:150px;padding:7px;border-radius:21px}.matching-card-face img,.matching-card-face svg{height:94px}.matching-card-name{font-size:15px}.matching-card-back{font-size:13px}.matching-card-mark{font-size:10px}.matching-status{font-size:14px}.matching-mode{gap:10px}.matching-mode button{font-size:15px;padding-inline:16px}.matching-scoreboard{gap:7px}.matching-scoreboard>div{min-width:85px;padding-inline:8px}.matching-turn{font-size:12px}}
@media(prefers-reduced-motion:reduce){.matching-card{transition:none}.matching-card:hover:not([aria-disabled=true]){transform:none}}
@media print{.matching-section{display:none}}

/* Dedicated game page and a small invitation on the main site. */
.play-teaser{padding-block:59px;background:#fff0c9;border-block:1px solid #ead8ae}
.play-teaser-layout{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:65px}
.play-teaser .eyebrow{color:#56633d}
.play-teaser h2{font-size:clamp(31px,3.2vw,44px)}
.play-teaser-layout>div>p:not(.eyebrow){max-width:540px;font-size:16px;line-height:1.7;margin-top:18px;color:#596348}
.play-teaser-action{text-align:center}
.play-teaser-pictures{display:flex;justify-content:center;gap:13px}
.play-teaser-pictures img{height:78px;width:78px;object-fit:cover;border:3px solid #fffdf6;border-radius:24px;box-shadow:0 4px 0 #e4d4b0}
.play-teaser-pictures img:nth-child(2){object-fit:contain;background:#fff}
.play-teaser-action .button{margin-top:24px;min-width:200px}
.play-teaser-layout .play-teaser-action>p{font-size:12px;margin-top:16px}
.game-page{background:#fff0c9}
.game-stage{min-height:100vh;background:#fff0c9}
.game-header{border-bottom:1px solid #ead8ae;background:#fff9ea}
.game-header-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.game-back{display:inline-flex;align-items:center;gap:11px;min-height:52px;padding:11px 17px;border:2px solid #cbd7ae;border-radius:19px;background:#e7efcf;text-decoration:none;font-weight:900;font-size:15px;color:#3f572c;box-shadow:0 3px 0 #cbd7ae}
.game-back:hover{background:#dce9bf}
.game-header-name{font-size:21px;font-weight:1000;color:#42624b;letter-spacing:-.035em}
.fullscreen-control{display:flex;flex-direction:column;align-items:flex-end;max-width:315px}
.fullscreen-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:10px 17px;border:2px solid #b79ac0;border-radius:18px;background:#ead8ef;color:#57315d;font-weight:900;font-size:14px;cursor:pointer}
.fullscreen-button[hidden]{display:none}
.fullscreen-button:disabled{cursor:wait;opacity:.8}
.fullscreen-status{max-width:315px;margin-top:5px;font-size:11px;line-height:1.35;color:#596348;text-align:right}
.fullscreen-status:empty{display:none}
.game-page .matching-section{padding-block:35px 48px;border:0}
.game-page .matching-layout{grid-template-columns:minmax(215px,.57fr) minmax(0,1.43fr);gap:48px;align-items:start}
.game-page .matching-intro{padding-top:24px}
.game-page .matching-intro h1{font-size:clamp(36px,3.6vw,51px);line-height:1.1;margin-bottom:0}
.game-page .matching-intro>p:not(.eyebrow){font-size:17px}
.game-page .matching-intro>p.matching-note{font-size:15px}
.game-page .matching-intro>p.matching-keyboard{font-size:12px}
.game-page .matching-game{max-width:780px}
.game-settings{display:grid;grid-template-columns:1fr 1fr;gap:23px;align-items:center}
.game-page .matching-mode{margin:0;gap:10px}
.game-page .matching-mode button{padding-inline:16px;font-size:15px}
.game-page .matching-difficulty-control{margin:0;gap:5px}
.game-page .matching-difficulty-control label{font-size:13px}
.game-page .matching-difficulty{min-height:49px;font-size:13px}
.game-page .matching-difficulty-control>span{font-size:10px}
.game-page .matching-rules{margin:17px 0 16px;min-height:20px}
.game-page .matching-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.game-page .matching-card{aspect-ratio:auto;height:168px;min-height:168px}
.game-page .matching-card-face img,.game-page .matching-card-face svg{height:101px}
.game-page .matching-status{min-height:63px;padding-block:14px 11px;font-size:15px}
.game-page .matching-scoreboard{max-width:480px;margin:0 auto 19px}
.game-footer{padding:0 20px 27px;font-size:11px;text-align:center;color:#596348}
.game-stage:fullscreen{width:100%;height:100%;overflow:auto;background:#fff0c9}
.game-stage:fullscreen .game-header{position:sticky;top:0;z-index:20}
@media(max-width:1100px) and (min-width:761px){.game-page .matching-layout{grid-template-columns:1fr;gap:23px;max-width:800px}.game-page .matching-intro{padding:0;text-align:center}.game-page .matching-intro h1{font-size:37px}.game-page .matching-intro h1 br{display:none}.game-page .matching-intro .eyebrow{margin-bottom:10px}.game-page .matching-intro>p:not(.eyebrow){max-width:none;font-size:15px;margin-top:10px}.game-page .matching-intro>p.matching-note{display:none}.game-page .matching-intro>p.matching-keyboard{font-size:11px;margin-top:8px}.game-page .matching-card{height:164px;min-height:164px}.game-header-name{font-size:18px}.game-header-inner{gap:14px}}
@media(max-width:760px){.play-teaser{padding-block:44px}.play-teaser-layout{grid-template-columns:1fr;gap:29px;text-align:center}.play-teaser .eyebrow{font-size:10px}.play-teaser-layout>div>p:not(.eyebrow){font-size:14px;margin-top:16px}.play-teaser-pictures img{height:70px;width:70px;border-radius:21px}.play-teaser-layout .play-teaser-action>p{font-size:11px}.game-header-inner{min-height:78px;gap:13px}.game-back{font-size:13px;gap:8px;padding-inline:13px;min-height:48px}.game-header-name{font-size:18px;max-width:110px;line-height:1.2;text-align:right}.fullscreen-control{display:none}.game-page .matching-section{padding-block:27px 35px}.game-page .matching-layout{grid-template-columns:1fr;gap:23px}.game-page .matching-intro{padding:0}.game-page .matching-intro h1{font-size:37px}.game-page .matching-intro .eyebrow{margin-bottom:12px}.game-page .matching-intro>p:not(.eyebrow){font-size:15px;margin-top:14px}.game-page .matching-intro>p.matching-note{font-size:13px;margin-top:10px}.game-page .matching-intro>p.matching-keyboard{font-size:10px;margin-top:11px}.game-settings{grid-template-columns:1fr;gap:19px}.game-page .matching-mode button{min-height:52px;padding-inline:23px;font-size:16px}.game-page .matching-difficulty{min-height:52px;font-size:14px}.game-page .matching-difficulty-control label{font-size:15px}.game-page .matching-difficulty-control>span{font-size:11px}.game-page .matching-game{max-width:430px}.game-page .matching-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.game-page .matching-card{height:171px;min-height:171px}.game-page .matching-card-face img,.game-page .matching-card-face svg{height:105px}.game-page .matching-rules{font-size:12px;max-width:350px;margin:16px auto}.game-page .matching-status{min-height:77px;font-size:14px}.game-footer{font-size:10px}}
@media(max-width:359px){.game-page .matching-intro h1{font-size:32px}.game-page .matching-grid{gap:12px}.game-page .matching-card{height:159px;min-height:159px}.game-page .matching-card-face img,.game-page .matching-card-face svg{height:94px}.game-back{padding-inline:10px;font-size:12px}.game-header-name{font-size:17px}.game-page .matching-mode button{padding-inline:19px;font-size:15px}}
@media(hover:none) and (pointer:coarse){.fullscreen-control{display:none}}
