.original-home #footer{font-size:11px;color:#5c554b;line-height:1.6}
:root{color-scheme:light}body{color:#555;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer;background:#f58026;border:1px solid #975c24;border-radius:3px;color:#30251c;padding:6px 10px}button:disabled{opacity:.55;cursor:wait}input:not([type=checkbox]),select,textarea{max-width:100%;box-sizing:border-box;border:1px solid #aaa;padding:5px;background:white;color:#333}label{display:block;margin:12px 0}label input:not([type=checkbox]){display:block;width:100%;margin-top:5px}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #d65e14;outline-offset:3px}.skip-link{position:absolute;top:-100px;left:8px;background:white;color:#333;padding:8px;z-index:100}.skip-link:focus{top:0}.withbackground,.footer_top,.footer_mid,.footer_bot{box-sizing:border-box;width:min(662px,100%);background-size:100% 100%}.content{color:#555}.content a,.content a:visited{color:#614d36;text-decoration:underline}.fluff{max-width:32%;margin-left:1%;width:200px}.fluff img{max-width:100%;height:auto}.content{box-sizing:border-box;width:62%;float:right;margin:0;text-align:left;padding:8px 8px 16px}.clear{clear:both}.archive-note,.access-note{font-size:11px;border-left:3px solid #d67a2e;padding:5px 8px;margin-bottom:18px;color:#5f5a50;line-height:1.5}.resource-nav{display:flex;justify-content:center;gap:11px;flex-wrap:wrap;font-size:11px;line-height:23px}.resource-nav a{color:#fff!important;text-decoration:underline}#mastermenu{display:inline-block;padding-top:6px}#mastermenu a{font-size:12px;margin-left:10px}.footer_mid p{font-size:10px;margin:8px 0 0}.original-home .page{max-width:100%}.original-home #loginform{font-size:12px;width:240px;line-height:1.65;margin-top:9px}.original-home #loginform p{margin:0 0 8px}.original-home #loginform a{color:#665548;text-decoration:underline}.original-home .plaque_btm{font-size:11px;line-height:24px}.restoration-home{font-size:11px;line-height:1.6;text-align:center;color:#5c554b;padding:15px 0}.restoration-home a{color:#665548}.game-page{background:#fff;margin:15px;color:#444;font:13px Arial,sans-serif}.game-page main{max-width:1100px;margin:auto}.game-page h1{font-size:18px;color:#887467;font-weight:normal;margin:5px 0}.game-tools{display:flex;gap:10px;margin:10px 0}.game-stage{width:100%;height:min(68vw,650px);min-height:300px;background:var(--game-background,#fff);overflow:hidden}.game-stage ruffle-player{width:100%;height:100%;display:block}.game-stage:fullscreen{width:100vw;height:100vh;background:var(--game-background,#fff)}.game-page #player-status{font-size:12px}.collection-card{display:block;width:100%;text-align:left;background:#f8f6ed;color:#665548;border:1px solid #d7cdbc;padding:10px;margin:8px 0}.artworks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.artworks img{width:100%;height:150px;object-fit:contain;background:white}.artworks figure{margin:0;font-size:11px}.admin-card{border:1px solid #d7cdbc;padding:10px;margin:12px 0;overflow-wrap:anywhere}.admin-card img{width:100px;height:100px;object-fit:contain}.admin-card pre{white-space:pre-wrap;max-height:200px;overflow:auto;font-size:11px}.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.status-line{font-size:12px}#search-results{padding-left:18px}#search-results li{margin:12px 0}.mobile-main-nav{display:none}
@media(min-width:601px){.original-home #for_teachers #loginform{width:185px;margin:18px 20px 0 0;font-size:11px}}

/* Keep the original 662px panel slices aligned under border-box sizing.
   The legacy #mainfoot width otherwise overrides .withbackground and clips
   the right-hand corner of col_btm.gif. Scale the slices on narrow screens. */
#main,#mainfoot,.footer_top,.footer_mid,.footer_bot{
  box-sizing:border-box;
  width:min(662px,100%);
}
#main{background-size:100% auto}
#mainfoot{background-size:100% 100%}

/* Phone layouts retain the original artwork inside flexible panels. */
@media(max-width:600px){
  body{font-size:16px;line-height:1.6}
  #headerone,#headertwo,#headerthree{background-size:100% 100%;padding:0}
  #headerone{height:calc((100vw - 16px) * 15 / 662)}
  #headertwo{height:calc((100vw - 16px) * 45 / 662)}
  #headerthree{height:calc((100vw - 16px) * 87 / 662)}
  #headerthree img{max-width:80%;max-height:100%;width:auto;height:auto;margin:0}
  #mastermenu{display:none}
  .mobile-main-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));box-sizing:border-box;max-width:662px;margin:0 auto;padding:8px;background:#fff;gap:4px}
  .mobile-main-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 4px;color:#665548;font-size:15px;text-decoration:underline}
  #headerfour{height:auto;min-height:16px;background:#939773;border-radius:0 0 16px 16px;padding:0 8px 8px;overflow:visible}
  .resource-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;line-height:1.4}
  #headerfour .resource-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:15px}
  .fluff{display:none}
  #main{padding:20px 12px 0}
  .content{width:100%;float:none;padding:8px 4px 16px;overflow-wrap:anywhere}
  .content img{max-width:100%;height:auto}
  .content li{margin-bottom:12px}
  .archive-note,.access-note{font-size:13px}
  .footer_mid{padding:8px 16px;line-height:1.9}
  .footer_mid a{display:inline-block;min-height:32px;padding:4px}
  #service a{font-size:15px}
  #legals a,.footer_mid p{font-size:12px}
  button,input,select,textarea{font-size:16px}
  button{min-height:44px}
  .original-home{font-size:15px;line-height:1.5}
  .original-home .page{width:calc(100% - 24px);max-width:530px;box-sizing:border-box}
  .original-home #header{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:none;overflow:visible}
  .original-home #for_kids,.original-home #for_teachers,.original-home .plaque_btm{grid-column:1 / -1}
  .original-home .page img{display:block;max-width:100%;height:auto}
  .original-home #for_kids img{width:100%}
  .original-home #for_kids{background:url('/gfx/splash/bg_plaque_b.gif') no-repeat top center;background-size:100% auto;overflow:hidden}
  .original-home #for_parents,.original-home #for_professionals{float:none;width:auto;margin:0;display:flex;align-items:center;justify-content:center;padding:8px;background:#fff;border-radius:14px;box-shadow:0 2px 0 #bebdb7;box-sizing:border-box;min-height:94px}
  .original-home #for_parents a,.original-home #for_professionals a{display:flex;align-items:center;justify-content:center;min-height:64px;width:100%}
  .original-home #for_teachers{margin:0;padding:16px 16px 0;background:#fff;border-radius:16px 16px 0 0}
  .original-home #for_teachers #ft{display:block;float:none;margin:0 auto;max-width:270px}
  .original-home #for_teachers #loginform{display:block;float:none;clear:both;width:auto;margin:12px 0 0;font-size:15px;line-height:1.5;text-align:center}
  .original-home #loginform a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
  .original-home #loginform p{margin:0 0 8px}
  .original-home .plaque_btm{height:auto;min-height:0;margin-top:-12px;padding:0 16px 16px;background:#fff;border-radius:0 0 16px 16px;box-shadow:0 2px 0 #bebdb7;text-align:center;font-size:13px;line-height:1.5}
  .original-home #friends a{height:auto;min-height:44px;background:#fff;border-radius:14px;box-shadow:0 2px 0 #bebdb7;overflow:hidden;margin-top:10px}
  .original-home #friends img{width:100%}
  .original-home #footer,.original-home .restoration-home{font-size:13px;line-height:1.6}
  .original-home .restoration-home a{display:inline-block;padding:8px 4px}
  .game-page{margin:8px;font-size:15px}
  .game-tools{flex-wrap:wrap}
  .game-stage{min-height:260px}
}

/* Ordinary HTML navigation is available independently of the Flash menus. */
.activity-picker{padding:12px;margin:12px 0;background:#f8f6ed;border:1px solid #d7cdbc;border-radius:8px}
.activity-picker label{margin:0 0 8px}
.activity-picker>div{display:flex;gap:8px;flex-wrap:wrap}
.activity-picker select{flex:1;min-width:0;min-height:44px}
.activity-picker button{min-height:44px}
.touch-help{font-size:13px;line-height:1.5}
.activity-directory{padding:0;list-style:none}
.content .activity-directory li{margin:8px 0}
.content .activity-directory a{display:flex;align-items:center;min-height:44px;padding:6px 12px;border:1px solid #d7cdbc;border-radius:6px;background:#f8f6ed}
.mobile-game-entry{display:none}
@media(max-width:600px){
 .original-home .mobile-game-entry{display:block;text-align:center;margin-top:12px}
 .mobile-game-entry a{display:flex;align-items:center;justify-content:center;min-height:48px;background:#fff;border-radius:12px;color:#665548;text-decoration:underline;padding:4px 12px;box-shadow:0 2px 0 #bebdb7}
 .activity-picker select{flex-basis:100%;width:100%}
 .activity-picker button{width:100%}
}
.level-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.level-links a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;background:#f8f6ed;border:1px solid #d7cdbc;border-radius:6px;color:#665548}
#wallpaper-downloads{margin:24px 0;scroll-margin-top:16px}
.wallpaper-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
.wallpaper-card{border:1px solid #d7cdbc;border-radius:8px;padding:12px;background:#f8f6ed;min-width:0}
.wallpaper-card h3{margin:0 0 8px}
.wallpaper-card img{display:block;width:100%;height:auto}
.wallpaper-card>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.wallpaper-card a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;color:#665548;text-decoration:underline}
#postoffice-messages{margin:24px 0;line-height:1.6;max-width:760px;overflow-wrap:anywhere;scroll-margin-top:16px}
.postoffice-message{border:1px solid #d7cdbc;border-radius:6px;padding:10px 12px;margin:10px 0}
.postoffice-message summary{cursor:pointer;min-height:32px;padding:6px 0;color:#665548;font-weight:bold}
.postoffice-message h3{font-size:15px;color:#887467;margin:12px 0 4px}
/* The town opens straight into the original map, without a page toolbar. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.town-page .game-stage{height:auto;min-height:0;aspect-ratio:760/420}
.game-page .game-stage{position:relative}
button.map-expand-control{position:absolute;z-index:2;left:0;top:0;margin:0;padding:0;min-height:0;min-width:0;background:transparent;border:0;border-radius:0;box-shadow:none;cursor:pointer}
button.map-expand-control:focus-visible{outline:3px solid #d65e14;outline-offset:1px}
.game-page .game-stage:fullscreen,.game-page .game-stage.is-window-filled{width:100vw;height:100vh;height:100dvh;min-height:0;max-width:none;aspect-ratio:auto;background:var(--game-background,#fff)}
.game-page .game-stage.is-window-filled{position:fixed;inset:0;z-index:1000}
body.game-window-filled{overflow:hidden}

button.map-expand-control::before{content:"";position:absolute;left:var(--arrow-inset,5px);top:var(--arrow-inset,5px);width:0;height:0;border-top:var(--arrow-size,13px) solid #fff;border-right:var(--arrow-size,13px) solid transparent;filter:drop-shadow(1px 1px 1px #555);pointer-events:none}
button.map-expand-control[aria-pressed="true"]::before{transform:rotate(180deg)}

.original-home #featured-promo{display:block;width:100%;aspect-ratio:544/130;margin:10px 0 20px;overflow:hidden}
.original-home #featured-promo ruffle-player{display:block;width:100%;height:100%;pointer-events:none}

.game-page #player-status:empty{display:none}

.original-home #footer a,.original-home #footer a:visited{color:inherit;font-size:inherit;text-decoration:underline}

/* Readable archive context complements the original illustrated homepage. */
.original-home .home-intro,.original-home .home-answers{font-size:13px;line-height:1.6;color:#5c554b;text-align:left;margin-top:18px;margin-bottom:22px}
.original-home .home-intro h1{font-size:20px;line-height:1.3;font-weight:normal;color:#887467;text-align:left;margin:0 0 10px}
.original-home .home-intro p{margin:0 0 10px}
.original-home .home-intro a,.original-home .home-answers a{color:#665548;text-decoration:underline}
.original-home #featured>h2,.original-home #affiliates>h2{clear:both;text-align:center;font-size:16px;font-weight:bold;margin-top:5px}
.original-home .home-answers h2{font-size:18px;color:#887467;margin-bottom:8px}
.original-home .home-answers details{border-top:1px solid #bdb7a7;padding:8px 0}
.original-home .home-answers summary{cursor:pointer;font-weight:bold;min-height:28px}
.original-home .home-answers p{margin:8px 0}
.original-home #featured-promo{position:relative}
.original-home #featured-promo ruffle-player{position:absolute;inset:0}
.featured-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:100%;box-sizing:border-box;background:linear-gradient(#080869,#2452c5);color:#fff;border:3px solid #fff;text-align:center;padding:8px;font:14px/1.4 Arial,sans-serif}
.featured-preview strong{font-size:22px}
.activity-about{font-size:13px;line-height:1.6;color:#665548;margin:16px 0;max-width:760px}
.activity-about summary{cursor:pointer;padding:6px 0}
.activity-about a{color:inherit;text-decoration:underline}
.activity-directory li{margin:14px 0}
.activity-directory p{margin:5px 0;font-size:13px;line-height:1.5}
@media(max-width:600px){.original-home .home-intro,.original-home .home-answers{font-size:15px}.original-home .home-intro nav a{display:inline-block;padding:6px 0}.original-home .home-answers summary{padding:8px 0}.featured-preview{font-size:12px}.featured-preview strong{font-size:18px}}

.original-home .home-intro{box-sizing:border-box;padding:18px 20px;background:#fff;border:1px solid #e5e2dc;border-radius:16px;box-shadow:0 3px 1px #bebdb7}
.original-home .home-intro p:last-child{margin-bottom:0}
/* The desktop panels' GIF artwork is inset 15px inside its 530px wrapper. */
@media(min-width:601px){.original-home .home-intro{width:500px}}

.original-home .home-intro em{font-style:italic}

/* No Anorak has a 950 x 650 stage, not the other games' wider proportions.
   The home strip is outside the SWF but inside the fullscreen container. */
.noanorak-page .game-stage{display:flex;flex-direction:column;width:min(950px,100%);height:auto;min-height:0;aspect-ratio:auto;margin-inline:auto}
.noanorak-page #game-viewport{position:relative;width:100%;aspect-ratio:950/650;flex:none;min-height:0;overflow:hidden}
.noanorak-page .game-home-strip{flex:none;padding:4px 10px;background:#fff;border-top:1px solid #ddd;text-align:left}
.noanorak-page #game-home{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:#614d36;text-decoration:underline;font-size:14px}
.noanorak-page #game-home img{display:block;width:72px;height:44px;object-fit:contain}
.noanorak-page .game-stage:fullscreen #game-viewport,.noanorak-page .game-stage.is-window-filled #game-viewport{flex:1 1 0;aspect-ratio:auto}

.noanorak-page .noanorak-links{max-width:950px;margin:8px auto 0;font-size:13px;line-height:1.6;color:#665548}
.noanorak-page .noanorak-links .activity-about{display:inline;margin:0;max-width:none;font:inherit}
.noanorak-page .noanorak-links summary{display:inline;padding:0;text-decoration:underline;cursor:pointer}
.noanorak-page .noanorak-links summary::-webkit-details-marker{display:none}
.noanorak-page .noanorak-links summary::after{content:" ▾"}
.noanorak-page .noanorak-links details[open] summary::after{content:" ▴"}
