*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;font-family:ui-rounded,'Trebuchet MS',sans-serif;color:#19394b}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.65}#game{position:relative;height:100dvh;background:linear-gradient(#90d7ef,#e7f8ee);overflow:hidden;touch-action:none}canvas{width:100%;height:100%;display:block}header{position:absolute;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;display:flex;gap:8px;align-items:center;pointer-events:none}header>*{pointer-events:auto}header>a,header>button{border:2px solid #fff9;background:#ffffffdc;border-radius:18px;width:48px;height:48px;flex-shrink:0;text-align:center;display:grid;place-items:center;text-decoration:none;font-size:27px;box-shadow:0 4px 0 #28527118}header>button{margin-left:auto}.wallet,.score{background:#fffef0ed;padding:8px 13px;border:2px solid white;border-radius:20px;font-size:20px;box-shadow:0 4px 0 #28527118;white-space:nowrap}.wallet span{color:#d99d21}.star{color:#e8a91b}.score small{color:#6c7f85;font-size:12px}.place{position:absolute;left:16px;top:78px;display:flex;flex-direction:column;gap:4px;pointer-events:none;max-width:68%;text-shadow:0 2px white}.place span{font-size:16px;font-weight:bold}.place small{font-size:12px;color:#3d6269}.toolbar{position:absolute;right:12px;top:78px;display:grid;gap:7px}.toolbar button{border:2px solid #fff;background:#fffef0e8;border-radius:17px;width:64px;min-height:60px;font-size:25px;box-shadow:0 4px 0 #28527114}.toolbar small{display:block;font-size:10px;margin:3px 0;font-weight:bold}#toast{position:absolute;top:145px;left:10px;right:82px;text-align:center;font-size:20px;font-weight:bold;color:#275b4e;text-shadow:0 2px white;pointer-events:none}#compat{position:absolute;bottom:8px;right:10px;font-size:10px;opacity:.65;pointer-events:none}#joystick{position:absolute;bottom:max(45px,env(safe-area-inset-bottom));left:24px;width:148px;height:148px;border-radius:50%;background:#ffffff58;border:3px solid #ffffffc9;box-shadow:inset 0 3px 15px #26586818,0 7px 20px #26586812;touch-action:none}#knob{position:absolute;left:33px;top:33px;width:76px;height:76px;background:linear-gradient(#fff,#e5f5ee);border-radius:50%;border:3px solid white;display:grid;place-items:center;box-shadow:0 5px 0 #407b8b3b;pointer-events:none;font-size:38px;color:#3b8c86}.walk-hint{position:absolute;bottom:20px;left:33px;font-size:11px;letter-spacing:1px;font-weight:bold;color:#315e68}#hop{position:absolute;right:23px;bottom:43px;border:3px solid #fff;width:64px;height:64px;border-radius:50%;background:#fff8d5df;font-size:32px;box-shadow:0 5px 0 #47777525}#action{position:absolute;right:16px;bottom:122px;border:3px solid white;border-radius:25px;padding:12px 14px;min-width:124px;max-width:160px;min-height:108px;background:linear-gradient(#fffbdc,#ffe7a4);box-shadow:0 6px 0 #ad8b4140;display:grid;place-items:center;gap:3px}#action[hidden]{display:none}#action-icon{font-size:30px}#action-title{font-size:16px}#action-sub{font-size:11px}.overlay{position:absolute;inset:0;display:grid;place-items:center;padding:16px;background:#c1e6ed91;backdrop-filter:blur(8px);overflow:auto;touch-action:pan-y}.overlay[hidden]{display:none}.card{width:min(440px,100%);text-align:center;padding:28px 22px;background:#fffef2fa;border:3px solid white;border-radius:30px;box-shadow:0 22px 80px #316b7d30}.pill{font-size:10px;letter-spacing:2px;font-weight:bold;color:#54847c}h1{font-size:clamp(44px,9vw,66px);line-height:.98;letter-spacing:-2px;margin:22px 0}h1 em{font-style:normal;color:#328b7b}h2{font-size:28px;line-height:1.1;margin:10px 0}p{line-height:1.5}.instructions{display:flex;justify-content:space-around;margin:24px 0;font-size:32px}.instructions small{display:block;font-size:11px;color:#315b61;margin-top:8px}.primary{display:block;width:100%;padding:16px;border:0;border-radius:18px;background:#287e70;color:white;font-weight:bold;font-size:20px;box-shadow:0 5px 0 #1a5b50;margin:16px 0}.small,.note{font-size:12px;color:#5b757b}details{font-size:13px;text-align:left;border-top:1px solid #cddcd5;padding-top:14px}summary{cursor:pointer}#reset,.secondary{padding:12px 15px;min-height:46px;border:1px solid #abc9bf;border-radius:12px;background:#fff;margin:6px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:4px solid #e89f28;outline-offset:3px}.panel-card{width:min(620px,100%);max-height:calc(100dvh - 32px);overflow:auto;text-align:left;padding:18px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-18px;background:#fffef2;z-index:2;padding:6px 0 12px}.panel-heading h2{font-size:25px}.panel-heading button{width:46px;height:46px;flex-shrink:0;border:1px solid #c4d9cc;background:white;border-radius:50%;font-size:22px}.tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile{border:1px solid #cfdecf;border-radius:20px;padding:15px 10px;background:white;text-align:center;min-height:118px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}.tile .emoji{font-size:34px}.tile strong{font-size:15px}.tile small{font-size:11px;line-height:1.35;color:#5d7377}.tile.owned{background:#e5f2df;border-color:#88b783}.tile.selected{outline:3px solid #348878}.tile.locked{background:#f1efe5}.price{font-weight:bold;color:#8f6515}.buy-button{padding:10px 12px;min-height:44px;border:0;border-radius:11px;background:#287e70;color:white}.home-intro{padding:12px 16px;border-radius:20px;background:linear-gradient(120deg,#dcefe4,#fff0cd);text-align:center;margin-bottom:16px}.home-intro .emoji{font-size:48px}.swatches{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.swatches button{border:2px solid white;outline:1px solid #9bbfb5;min-width:50px;min-height:46px;border-radius:12px;font-size:11px}.quest-row{padding:15px;border-radius:17px;border:1px solid #d4dfcc;margin:10px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}.quest-row strong{display:block}.quest-row small{display:block;font-size:12px;margin-top:5px;color:#54726b}.map-intro{margin-top:0}.panel-message{min-height:24px;text-align:center;font-weight:bold;color:#287e70}.pet-pill{padding:8px 12px;border-radius:14px;background:#f4e6bf}.empty{padding:16px;text-align:center;color:#5b757b}@media(min-width:700px){.toolbar{display:flex;top:78px}.toolbar button{width:70px}.place{max-width:50%}.tile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#toast{right:10px}}@media(max-height:560px){.card{padding:16px;max-width:550px}h1{font-size:40px;margin:8px}h1 br{display:none}.instructions{margin:8px}.primary{padding:12px;margin:10px 0}.place{top:67px}.toolbar{top:68px;display:flex}.toolbar button{width:52px;min-height:51px;font-size:21px}.toolbar small{font-size:9px}#joystick{width:124px;height:124px;bottom:31px}#knob{left:21px;top:21px}.walk-hint{bottom:9px}#action{bottom:91px;min-height:90px;padding:6px}#hop{bottom:15px;width:58px;height:58px}#toast{top:112px}.panel-card{max-width:650px;padding:16px}.panel-heading{top:-16px}.tile{min-height:100px}}@media(max-width:350px){.wallet,.score{padding:8px;font-size:17px}header{gap:5px}.toolbar button{width:56px}.toolbar{right:8px}#joystick{left:14px;width:136px;height:136px}#knob{left:27px;top:27px}#action{min-width:116px;right:10px}.walk-hint{left:24px}.place span{font-size:14px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
/* Easy mode is the default; the joystick remains an optional control. */
#joystick[hidden],#direction-pad[hidden]{display:none}#direction-pad{position:absolute;left:16px;bottom:max(42px,env(safe-area-inset-bottom));width:198px;height:198px;display:grid;grid-template-columns:repeat(3,62px);grid-template-rows:repeat(3,62px);gap:6px;touch-action:none}#direction-pad button{border:3px solid white;background:linear-gradient(#fffef4,#dceee4);border-radius:22px;box-shadow:0 4px 0 #47777535;font-size:28px;color:#347e76;padding:0;touch-action:none;user-select:none;-webkit-user-select:none}#direction-pad button:active,#direction-pad button.is-held{background:#8bd1b2;box-shadow:0 1px 0 #47777535;transform:translateY(3px)}.pad-up{grid-area:1/2}.pad-left{grid-area:2/1}.pad-stop{grid-area:2/2;font-size:19px!important;color:#8da79d!important;background:#ffffff8a!important}.pad-right{grid-area:2/3}.pad-down{grid-area:3/2}.walk-hint{left:18px;font-size:9px;letter-spacing:.3px}#control-mode{font-size:14px}.tap-help{font-size:12px;padding:10px;background:#e7f0dc;border-radius:12px}@media(max-width:350px){#direction-pad{left:12px;width:174px;height:174px;grid-template-columns:repeat(3,54px);grid-template-rows:repeat(3,54px)}#direction-pad button{border-radius:19px;font-size:25px}.walk-hint{left:12px;font-size:8px}}@media(max-height:560px) and (min-aspect-ratio:6/5){#direction-pad{bottom:25px;width:162px;height:162px;grid-template-columns:repeat(3,50px);grid-template-rows:repeat(3,50px)}#direction-pad button{border-radius:17px;font-size:24px}.walk-hint{bottom:8px}}
.big-button{display:none}.big-play .wallet,.big-play .score,.big-play .place small,.big-play .walk-hint,.big-play #hop,.big-play #direction-pad,.big-play #joystick,.big-play #action,.big-play .toolbar #pets,.big-play .toolbar #home,.big-play .toolbar #quests{display:none!important}.big-play .big-button{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:140px;height:124px;bottom:max(26px,env(safe-area-inset-bottom));border:5px solid white;border-radius:36px;box-shadow:0 7px 0 #33574a35;font-weight:bold;touch-action:manipulation;user-select:none}.big-button span{font-size:46px;line-height:1}.big-button strong{font-size:30px;line-height:1.15}.big-button:active{transform:translateY(4px);box-shadow:0 2px 0 #33574a35}.big-play #big-run{left:14px;background:linear-gradient(#b7f19d,#63c58a);color:#205e43}.big-play #big-bash{right:14px;background:linear-gradient(#ffe68f,#ffb96c);color:#80552c}.big-play .toolbar #map{width:80px;min-height:76px;font-size:35px;border-radius:24px}.big-play .toolbar #map small{font-size:12px}.big-play .toolbar{top:78px}.big-play .place span{font-size:20px;max-width:220px}.big-play #toast{font-size:28px;top:170px}.big-play .place{max-width:70%}@media(max-width:350px){.big-play .big-button{width:136px;height:124px;bottom:24px;left:12px}.big-play #big-bash{right:12px;left:auto}.big-play .place span{font-size:17px;max-width:200px}}@media(max-height:560px) and (min-aspect-ratio:6/5){.big-play .big-button{bottom:18px;width:142px;height:122px}.big-play .toolbar #map{min-height:65px;width:70px}.big-play #toast{top:100px}.big-play .place{top:73px}}
.big-play #play{font-size:28px;min-height:72px}.big-play .instructions{font-size:42px}.big-play .instructions small{font-size:15px}
/* Real generated artwork, shared between the game and its collection menus. */
.pet-picture{display:block;width:105px;height:105px;background-image:url('art/pets-v1.webp');background-size:400% 200%;background-repeat:no-repeat}.prop-picture{display:block;width:100px;height:100px;overflow:hidden}.island-picture{display:block;width:120px;height:105px;overflow:hidden}.home-intro>.prop-picture{width:180px;height:170px;margin:0 auto}.tile-grid .tile{gap:7px}.card{background:#fff9ecf5;border-color:#fff9e6;box-shadow:0 22px 80px #203b4f45}.big-play #start .instructions{color:#c99335}#start .pill{color:#796345}.panel-card .tile{background:#fffaf0}.panel-card .tile.owned{background:#e7f0d8}@media(max-width:350px){.pet-picture{width:90px;height:90px}.prop-picture{width:85px;height:85px}.island-picture{width:100px;height:90px}}@media(max-height:560px){.pet-picture,.prop-picture{width:80px;height:80px}.island-picture{width:100px;height:80px}}
/* Quiet overview: effects stay out of the player's face. */
.big-play #toast{top:112px;font-size:17px;max-width:240px;margin:0 auto;text-shadow:0 1px #fff}.place span{background:#fff9e9db;border-radius:12px;padding:5px 9px;text-shadow:none}.big-play .place span{font-size:16px}.big-play .big-button{height:110px;width:136px;bottom:20px}.big-button strong{font-size:27px}.big-button span{font-size:40px}@media(max-width:350px){.big-play .big-button{height:110px;width:132px;bottom:20px}.big-play .place span{font-size:14px}}@media(max-height:560px) and (min-aspect-ratio:6/5){.big-play .big-button{width:136px;height:110px;bottom:15px}.big-play #toast{top:92px}}

/* Island explorer uses an illustrated field-book cover and thumb-size controls. */
.overlay { background: linear-gradient(135deg,#1a45625e,#48532d3b); backdrop-filter: blur(2px); }
.card { background: #fff4d9; color: #253a4e; border-radius: 28px 12px 28px 12px; border: 3px solid #fff9e8; box-shadow: 0 5px 0 #c3945f,0 18px 60px #243b5b66; }
#start .card h1 { color: #284565; font-weight: 900; letter-spacing: -.055em; }
#start .pill { color: #8b453e; }
.primary { color: #382919; background: #ffce71; box-shadow: 0 4px 0 #b67840; }
.toolbar button, header > a, header > button { color: #fff2ca; background: #233c5be8; border-color: #f8d59e; }
.big-play #big-run { color: #163e36; background: linear-gradient(#ccffd3,#6ed8a8); }
.big-play #big-bash { color: #523318; background: linear-gradient(#fff2bb,#ffbd67); }
.panel-card .tile.owned { border-color: #488b74; background: #e3f4de; }
.place span { color: #fff5dc; background: #263e58ed; }

#fair-count { align-self:flex-start; border-radius:10px; padding:4px 9px; background:#fff1c9ed; color:#4c3746; text-shadow:none; font-size:14px; line-height:1.25; }

#start { backdrop-filter:none; background:linear-gradient(90deg,#203b4b4b,transparent 85%); place-items:center start; padding:clamp(12px,4vw,64px); }
#start .card { max-width:390px; }
#start .card a { color:#36566d; }
@media(max-width:650px) and (min-height:520px){
 #start { place-items:end stretch; padding:12px; background:linear-gradient(0deg,#23384688,transparent 68%); }
 #start .card { max-width:none; padding:12px 16px; max-height:40dvh; text-align:left; }
 #start .card h1 { margin:6px 0; font-size:31px; }
 #start .card h1 br { display:none; } #start .card h1 em { margin-left:.16em; }
 #start .instructions { display:none; }
 #start .card p { margin:5px 0; font-size:13px; } #start .card a { font-size:12px; }
 .big-play #start #play { min-height:48px; font-size:20px; padding:10px; margin:7px 0; }
}
