:root{--bg:#071921;--panel:#102b31;--line:#27535a;--muted:#96b5b9;--mint:#6af1c2;--gold:#f3cb72}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#06161d;color:#f5fffb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}.header{height:83px;display:flex;align-items:center;gap:25px;padding:0 max(3%,calc((100vw - 1360px)/2));border-bottom:1px solid #21454d;background:#091c24}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:20px;font-weight:900;letter-spacing:-.05em}.brand img{border-radius:12px}.brand em{font-style:normal;color:var(--mint)}.header nav{display:flex;gap:26px;margin:auto;font-size:13px;font-weight:700;color:#bed8d8}.header nav a:hover{color:var(--mint)}.head-actions{display:flex;gap:15px;align-items:center}.chain{font-size:11px;color:#7af5b9;white-space:nowrap}.wallet,.primary{border:0;border-radius:12px;padding:13px 20px;background:var(--mint);color:#052c2d;font-weight:850}.wallet{white-space:nowrap}.wallet:hover,.primary:hover{background:#b0ffdf}.outline{background:transparent;color:#d1e8e5;border:1px solid #4a737a;border-radius:12px;padding:12px 19px;font-weight:800}.outline:hover{border-color:#a3ead5}.hero{max-width:1360px;margin:0 auto;min-height:540px;display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:30px;padding:70px 3% 60px}.overline{font-size:11px;font-weight:900;letter-spacing:.16em;color:#69e3bc}.hero h1{font-size:clamp(50px,6vw,88px);line-height:1.03;margin:20px 0 21px;letter-spacing:-.07em;font-weight:750}.hero h1 em{color:var(--mint);font-style:normal}.hero p{color:#a9c8c9;font-size:17px;line-height:1.8;max-width:670px}.hero-buttons{display:flex;gap:13px;margin:30px 0}.hero-buttons a{display:inline-flex;align-items:center}.micro{color:#a3c1be;font-size:12px}.micro strong{color:#f6d888;font-weight:550}.hero-art{height:370px;position:relative;display:grid;place-items:center;isolation:isolate}.hero-art img{width:min(68%,305px);z-index:2;border-radius:25%;filter:drop-shadow(0 20px 45px #2aab7980)}.hero-art .orbit{position:absolute;border:1px solid #287c79;border-radius:50%;width:78%;height:90%;transform:rotate(-25deg)}.hero-art .orbit.two{width:96%;height:63%;transform:rotate(34deg);border-color:#bd9b56}.bubble{position:absolute;font-size:28px;color:var(--gold);text-shadow:0 0 12px #ffeeb7}.bubble.a{top:12%;left:17%}.bubble.b{bottom:10%;right:6%}.bubble.c{top:4%;right:11%}.section{max-width:1360px;margin:0 auto;padding:65px 3%}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:25px}.section h2{font-size:clamp(29px,3.4vw,45px);margin:12px 0;letter-spacing:-.05em}.section p{color:#9dbbbf;line-height:1.75}.section-head p{margin-bottom:0}.mode{padding:10px 12px;border:1px solid #6e6342;background:#302b18;border-radius:30px;color:#f5d589;font-size:10px;font-weight:850;white-space:nowrap}.game-layout{display:grid;grid-template-columns:1.4fr .86fr;gap:22px}.map-card,.panel,.cards article,.tiers article{background:#10252c;border:1px solid #31545a;border-radius:22px}.map-card{overflow:hidden}.map-top{padding:20px 23px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px}.map-top span{font-size:11px;color:#a3d8d0}.spark{color:var(--gold)}.map-view{height:430px;position:relative;overflow:hidden;background:repeating-linear-gradient(0deg,transparent,transparent 54px,#33535d 55px,#33535d 68px,transparent 69px),repeating-linear-gradient(90deg,#1b3d46,#1b3d46 58px,#33535d 59px,#33535d 72px);isolation:isolate}.map-view:before{content:"";position:absolute;inset:0;background:linear-gradient(130deg,transparent 40%,#78b1bb39 41% 45%,transparent 46% 55%,#78b1bb30 56% 60%,transparent 61%)}.map-park{position:absolute;background:#27665675;border-radius:30px;transform:rotate(20deg)}.map-park.one{width:130px;height:115px;left:5%;top:9%}.map-park.two{width:130px;height:170px;right:8%;bottom:10%}.map-radar{position:absolute;left:50%;top:52%;width:145px;height:145px;border:2px dashed #76f3d4;border-radius:50%;transform:translate(-50%,-50%);display:grid;place-items:center;background:#70e2d40e;box-shadow:0 0 0 65px #5afbe307}.user-dot{border:3px solid #fce2a3;border-radius:50%;background:#0c3034;width:54px;height:54px;display:grid;place-items:center;box-shadow:0 0 0 4px #0b2529cc,0 0 22px #62f2c08c;overflow:hidden;position:relative;z-index:2}.user-logo-marker img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;pointer-events:none;user-select:none}.marker{position:absolute;top:27%;left:68%;width:48px;height:48px;border:2px solid #ffdf84;background:#715522;color:#ffdf84;border-radius:50%;display:grid;place-items:center;font-size:29px;filter:drop-shadow(0 0 10px #ffec91)}.marker small{font-size:9px;position:absolute;top:47px;white-space:nowrap;background:#071b20;border-radius:5px;padding:3px 6px}.marker[hidden]{display:none}.map-tag{position:absolute;bottom:12px;left:12px;font-size:10px;background:#071b21db;padding:7px 10px;border-radius:7px;color:#b4d3d0}.map-actions{display:flex;gap:10px;padding:18px;flex-wrap:wrap}.map-actions button{flex:1}.tiny{font-size:11px;margin:0 18px 19px}.panels{display:flex;flex-direction:column;gap:20px}.panel{padding:23px}.panel h3{font-size:40px;letter-spacing:-.06em;margin:9px 0 18px;color:#83f0c6}.stat{border-top:1px solid #254951;padding:12px 0;display:flex;justify-content:space-between;gap:18px;font-size:12px;color:#a9c5c8}.stat b{color:white;font-size:12px;text-align:right;overflow-wrap:anywhere}.full{width:100%;margin-top:12px}.subhead{margin:26px 0 12px;font-size:11px;letter-spacing:.12em;color:var(--mint);font-weight:800}.history{font-size:12px;color:#a5c3c1}.history-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #31545a}.cards,.tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:25px}.cards article{padding:28px}.cards h3{font-size:20px}.card-icon{font-size:33px;color:var(--gold)}.tiers{grid-template-columns:repeat(4,1fr)}.tiers article{padding:23px}.tiers h3{font-size:20px}.tiers strong{color:var(--mint);font-size:13px}.notice{border:1px solid #605738;border-radius:21px;background:#2b291a;margin-top:40px;margin-bottom:60px}.notice p{color:#d2c9a8}footer{border-top:1px solid #294a50;max-width:100%;padding:30px max(3%,calc((100vw - 1360px)/2));display:flex;justify-content:space-between;color:#8eadaf;font-size:12px;gap:20px}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#163b3e;color:#f1fffd;border:1px solid #62d8ba;border-radius:12px;padding:14px 21px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10;max-width:90vw}#toast.show{opacity:1}@media(max-width:1050px){.header nav{display:none}.chain{display:none}.head-actions{margin-left:auto}.game-layout{grid-template-columns:1fr}.panels{display:grid;grid-template-columns:1fr 1fr}.hero h1{font-size:55px}}@media(max-width:680px){.header{padding:0 14px;height:69px}.brand{font-size:15px}.brand img{width:34px;height:34px}.wallet{font-size:11px;padding:10px}.hero{grid-template-columns:1fr;padding:50px 18px}.hero h1{font-size:52px}.hero-art{height:240px}.hero-art img{max-width:200px}.section{padding:45px 16px}.section-head{align-items:start;flex-direction:column}.map-view{height:370px}.panels,.cards,.tiers{display:grid;grid-template-columns:1fr}.map-actions button{font-size:12px;padding:11px}.mode{white-space:normal}footer{padding:30px 16px;flex-direction:column}}
/* Optional personal map-marker image. Images never leave the user's browser. */
.avatar-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:0 18px 13px}
.avatar-upload,.avatar-reset{font-size:12px;font-weight:800;border-radius:10px;border:1px solid #49847b;min-height:38px;padding:10px 13px;background:#173e3d;color:#baf6e2;cursor:pointer}
.avatar-upload:hover,.avatar-reset:hover{background:#21594d}
.avatar-tools #avatar-info{color:#a8c4c3;font-size:11px;flex:1;min-width:125px}
.user-logo-marker img{object-fit:cover}
#treasure-range{color:var(--mint)}
@media(max-width:680px){.avatar-tools{gap:8px}.avatar-upload,.avatar-reset{font-size:11px}.avatar-tools #avatar-info{flex-basis:100%}}

/* Original illustrated schematic map, scaled to a 50-metre hunt radius. */
.map-context{display:inline-flex;align-items:center;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.radius-pill{font-size:11px;color:#002e29;background:#8cf4d0;border-radius:999px;padding:5px 9px;font-weight:900;white-space:nowrap}
.map-view{background-color:#1b3d46}
.map-radar{width:88px;height:88px;box-shadow:0 0 0 12px #5afbe30d}
#treasure-marker{transform:translate(-50%,-50%);z-index:3}
@media(max-width:680px){.map-context{gap:7px}.radius-pill{font-size:10px;padding:4px 8px}.map-top{gap:5px}.map-top>strong{white-space:nowrap}}


/* Search diagnostics are visible below the buttons; never silently hide why search cannot start. */
.find-status{margin:0 18px 14px;padding:10px 12px;border:1px solid #346868;background:#103738;border-radius:9px;color:#bce9d8;font-size:12px;line-height:1.6;min-height:39px}
#find:disabled{cursor:progress}

/* Display per-treasure amount. Practice previews are illustrative, never claimable. */
#treasure-marker #treasure-value{position:absolute;top:47px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 8px;min-width:84px;border-radius:8px;background:#092f34;color:#ffe7a2;border:1px solid #b68d46;font-weight:850;font-size:11px;text-align:center;box-shadow:0 3px 9px #06131cbb;pointer-events:none}
#practice-history .history-row{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}
#practice-history .history-row strong{color:#f1d793}
#practice-history .history-row span{color:#8eceb8}


/* Bright, accessible adventure wallet chooser. Options are real EIP-1193 providers only. */
.wallet-picker[hidden],#wallet-picker-empty[hidden]{display:none!important}
.wallet-picker{
 position:fixed;inset:0;z-index:35;
 display:flex;align-items:center;justify-content:center;
 padding:20px;
 background:rgba(11,42,47,.72);
 backdrop-filter:blur(7px);
 -webkit-backdrop-filter:blur(7px);
}
.wallet-picker-card{
 color:#194853;
 position:relative;isolation:isolate;
 width:min(100%,480px);max-height:min(92dvh,780px);overflow-y:auto;
 padding:clamp(20px,4vw,30px);
 background:linear-gradient(155deg,#fffdf1 0%,#f1fff2 55%,#e5f8fd 100%);
 border:3px solid #8ed7be;border-radius:28px;
 box-shadow:0 10px 0 #e0b961,0 24px 72px rgba(7,35,43,.42);
}
.wallet-picker-card::before{
 content:"";position:absolute;inset:0 0 auto;height:9px;
 background:linear-gradient(90deg,#8fe3ce,#fed77c,#b9dcff,#f6bee4);
 border-radius:24px 24px 0 0;pointer-events:none;
}
.wallet-picker-heading{display:flex;align-items:center;gap:15px;margin:5px 0 12px}
.wallet-picker-mascot{
 width:57px;height:57px;display:grid;place-items:center;flex:none;
 border:2px solid #e3b84a;border-radius:18px;
 background:linear-gradient(135deg,#fff3bf,#ffd977);
 box-shadow:0 4px 0 #e8c26d;font-size:29px;
}
.wallet-picker-eyebrow{
 display:block;color:#218a8b;font-size:10px;font-weight:950;
 letter-spacing:1.25px;margin-bottom:3px;
}
.wallet-picker-card h3{
 color:#145568;font-size:clamp(22px,5vw,27px);
 font-weight:950;line-height:1.2;margin:0;
}
.wallet-picker-card p{color:#456e75;font-size:13px;line-height:1.65;margin:0 0 15px}
.wallet-picker-list-heading{
 display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:7px;margin:20px 0 10px;
 font-size:13px;font-weight:900;color:#185a67;
}
#wallet-picker-count{
 display:inline-block;color:#227c7b;background:#d6f7e9;
 padding:6px 10px;border-radius:999px;font-size:11px;
 border:1px solid #a8e2d3;font-weight:850;
}
.wallet-options{display:grid;gap:11px;margin:10px 0 14px}
.wallet-option{
 display:flex;align-items:center;gap:12px;
 width:100%;padding:11px 13px;
 border:2px solid #b7ded1;border-radius:16px;
 background:#fff;color:#164b56;
 box-shadow:0 4px 0 #d3e9d9;
 font-size:15px;font-weight:850;text-align:left;
 transition:background .17s ease,transform .17s ease,box-shadow .17s ease;
}
.wallet-option:nth-child(4n+2){border-color:#f0d39b;box-shadow:0 4px 0 #f0e3c2}
.wallet-option:nth-child(4n+3){border-color:#b3d5ef;box-shadow:0 4px 0 #d5e9f7}
.wallet-option:nth-child(4n+4){border-color:#d8bfea;box-shadow:0 4px 0 #efddf5}
.wallet-option:hover{background:#f1fff5;transform:translateY(-2px)}
.wallet-option:active{transform:translateY(2px);box-shadow:0 1px 0 #d3e9d9}
.wallet-option-icon{
 display:grid;place-items:center;flex:none;
 width:42px;height:42px;border-radius:13px;
 background:linear-gradient(140deg,#c4f9e5,#a8e9da);
 color:#165d61;font-size:18px;font-weight:1000;
}
.wallet-option:nth-child(4n+2) .wallet-option-icon{background:linear-gradient(140deg,#fff2c6,#ffda84)}
.wallet-option:nth-child(4n+3) .wallet-option-icon{background:linear-gradient(140deg,#deefff,#b1d7fa)}
.wallet-option:nth-child(4n+4) .wallet-option-icon{background:linear-gradient(140deg,#f2e5ff,#ddc8f8)}
.wallet-option-name{flex:1;min-width:0;overflow-wrap:anywhere}
.wallet-option-arrow{font-size:21px;color:#1b8c83;font-weight:900}
.wallet-picker-footer{
 margin-top:20px;padding-top:16px;border-top:1px dashed #b8d7cb;
}
.wallet-picker-card .wallet-picker-mobile-label{
 font-size:12px;margin:0 0 9px;font-weight:850;color:#30616c;
}
.wallet-app-links{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 13px}
.wallet-app-links a{
 flex:1;min-width:130px;text-align:center;
 color:#255b67;background:#fffdf7;border:1px solid #aed9d7;
 border-radius:12px;padding:10px 12px;font-size:12px;font-weight:850;
}
.wallet-app-links a:hover{background:#e6fff5;border-color:#70c7b5}
.wallet-retry{
 background:#e1f8eb;color:#236b65;border:2px solid #addfcd;
}
.wallet-cancel{
 background:#ffe09a;color:#26535c;border:2px solid #e9bd5b;
 box-shadow:0 4px 0 #e8c067;font-weight:950;
}
.wallet-retry,.wallet-cancel{
 width:100%;padding:12px 14px;margin-top:9px;border-radius:13px;
 font-size:13px;cursor:pointer;
}
.wallet-retry:hover{background:#caf4df}
.wallet-cancel:hover{background:#ffedb6}
.wallet-picker-card :is(button,a):focus-visible{
 outline:3px solid #167b98;outline-offset:3px;
}
.wallet-picker-card #wallet-picker-empty{
 margin:10px 0;padding:13px 14px;
 border-radius:13px;background:#fff2ca;border:1px solid #e8ce8d;
 color:#7b5b24;font-weight:650;
}
@media(max-width:500px){
 .wallet-picker{padding:12px}
 .wallet-picker-card{max-height:calc(100dvh - 28px);padding:19px;border-radius:22px}
 .wallet-picker-mascot{width:47px;height:47px;font-size:24px}
 .wallet-option{padding:10px}
 .wallet-option-icon{width:38px;height:38px}
}
@media(prefers-reduced-motion:reduce){.wallet-option{transition:none}}

/* Live motion of the player GPS avatar, without falsifying collection coordinates. */
#map .map-radar{transition:transform .9s cubic-bezier(.22,.61,.36,1);will-change:transform}
#treasure-marker{transition:left .75s ease-out,top .75s ease-out}
#map .user-dot{box-shadow:0 0 0 4px #0b2529cc,0 0 24px #62f2c0ab}
@media (prefers-reduced-motion:reduce){
 #map .map-radar,#treasure-marker{transition:none}
}


/* Maze replaces the GPS map, with mobile-first directional controls. */
#legacy-gps-controls{display:none!important}
.maze-card{min-width:0;background:linear-gradient(155deg,#12353a,#091e28 80%);border:1px solid #386e6b;border-radius:22px;padding:20px;overflow:hidden}
.maze-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.maze-top h3{font-size:clamp(19px,2vw,25px);margin:6px 0 0;color:#effff9}
.maze-mode{font-size:10px;letter-spacing:.1em;border:1px solid #bfa365;padding:8px 12px;border-radius:99px;color:#f1dd98;white-space:nowrap}
.maze-meta{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;margin:12px 0;font-size:12px;color:#aed7d2}
.maze-meta strong{color:#ffdc85}
.maze-board-wrap{display:grid;place-items:center;border-radius:16px;background:#071b22;border:1px solid #244d50;padding:12px;min-height:280px}
.maze-board{--maze-size:20;display:grid;width:min(100%,440px);aspect-ratio:1;position:relative;overflow:hidden;border:3px solid #7b9e8e;border-radius:10px;box-shadow:0 0 25px #43c9a522;touch-action:manipulation}
.maze-placeholder{grid-column:1/-1;place-self:center;color:#bdece2;text-align:center;font-size:40px}
.maze-placeholder p{font-size:14px}
.maze-tile{aspect-ratio:1;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;position:relative}
.maze-wall{background:linear-gradient(135deg,#2d6565,#1a494e);box-shadow:inset 1px 1px 0 #65918b55,inset -1px -1px 0 #08252c}
.maze-floor{background:#d4e7ca;background-image:linear-gradient(135deg,#ffffff44,transparent 75%)}
.maze-start-cell{background:#b7e0b8}
.maze-goal{background:#f8e09b;overflow:visible;z-index:2}
.maze-gem{font-size:clamp(13px,2vw,22px);filter:drop-shadow(0 0 5px #b37415)}
.maze-goal small{position:absolute;bottom:95%;left:50%;transform:translateX(-50%);background:#102d30;color:#ffe2a1;border:1px solid #e0bd71;border-radius:6px;white-space:nowrap;padding:2px 4px;font-weight:850;font-size:10px;z-index:6;pointer-events:none}
.maze-player{position:absolute;z-index:4;width:clamp(15px,5.4%,26px);height:clamp(15px,5.4%,26px);border-radius:50%;overflow:hidden;transform:translate(-50%,-50%);border:2px solid #f5cb68;background:#052c2d;box-shadow:0 1px 8px #0009;transition:left .13s ease-out,top .13s ease-out;pointer-events:none}
.maze-player img{display:block;width:100%;height:100%;object-fit:cover}
.maze-controls{display:flex;gap:16px;align-items:center;justify-content:space-around;padding:15px 2px}
.maze-dpad{display:grid;grid-template-columns:repeat(3,54px);grid-template-rows:repeat(3,54px);gap:5px;flex-shrink:0}
.maze-direction{border:1px solid #7ed7b5;border-radius:13px;background:#215956;color:#eefff7;font-size:30px;font-weight:900;touch-action:manipulation;user-select:none;min-width:54px;min-height:54px;box-shadow:0 3px 0 #0c3030}
.maze-direction:active:not(:disabled){background:#87e9bf;color:#063531;transform:translateY(2px);box-shadow:0 1px 0 #0c3030}
.maze-up{grid-area:1/2}.maze-left{grid-area:2/1}.maze-down{grid-area:2/2}.maze-right{grid-area:2/3}
.maze-buttons{flex:1;max-width:220px;display:grid;gap:12px}
.maze-buttons button{min-height:50px;padding:12px 10px}
.maze-status{margin:4px 0 10px!important;padding:10px 12px;background:#0f3739;border:1px solid #3a7c70;border-radius:10px;color:#e4fff3!important;line-height:1.5;font-size:12px}
.maze-notice{font-size:11px;line-height:1.6;color:#a5c6c2}
@media(max-width:600px){.maze-card{padding:13px}.maze-board-wrap{padding:6px;min-height:280px}.maze-controls{gap:8px}.maze-dpad{grid-template-columns:repeat(3,51px);grid-template-rows:repeat(3,51px);gap:4px}.maze-direction{min-width:51px;min-height:51px;font-size:27px}.maze-buttons{max-width:170px}.maze-buttons button{font-size:12px;min-height:49px}}
@media(prefers-reduced-motion:reduce){.maze-player{transition:none}}


/* 2026 separate-page navigation */
.header{height:auto;min-height:82px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
.header nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:center}
.header nav a{padding:8px 11px;white-space:nowrap;border:1px solid transparent;border-radius:10px;transition:background .15s}
.header nav a:hover,.header nav a[aria-current="page"]{background:#174741;border-color:#398b75;color:#a4ffdf}
.header .head-actions a.wallet{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.app-only[hidden],.panels[hidden]{display:none!important}
.page-intro{padding-top:48px;padding-bottom:18px}
.page-intro h1{font-size:clamp(35px,5vw,62px);letter-spacing:-.055em;line-height:1.06;margin:12px 0;color:#ecfff8}
.page-intro p{max-width:780px;margin:0;color:#accbc9}
.maze-page{padding-top:22px}
.maze-full{display:grid;grid-template-columns:1fr;justify-items:center}
.maze-full .maze-card{width:100%;max-width:1100px}
.maze-full .maze-board{width:min(100%,620px)}
.maze-full .maze-board-wrap{min-height:360px;padding:18px}
.maze-board{background-size:cover;background-position:center;background-repeat:no-repeat}
.maze-board[data-scene="jungle"],.maze-board-wrap[data-scene="jungle"]{background-image:linear-gradient(#0b373a11,#10272433),url("/scenes/jungle.webp")}
.maze-board[data-scene="desert"],.maze-board-wrap[data-scene="desert"]{background-image:linear-gradient(#4b26091a,#371e1b30),url("/scenes/desert.webp")}
.maze-board[data-scene="pirate"],.maze-board-wrap[data-scene="pirate"]{background-image:linear-gradient(#06233c11,#071c3944),url("/scenes/pirate.webp")}
.maze-board[data-scene="sky"],.maze-board-wrap[data-scene="sky"]{background-image:linear-gradient(#b9e3ed16,#0a3d6733),url("/scenes/sky.webp")}
.maze-board-wrap[data-scene]{background-size:cover;background-position:center;box-shadow:inset 0 0 65px #061c2580}
.maze-floor{background:rgba(220,252,227,.53);box-shadow:inset 0 0 3px #fff9}
.maze-start-cell{background:rgba(112,247,188,.67)}
.maze-wall{background:linear-gradient(135deg,rgba(29,90,91,.96),rgba(11,55,66,.96));box-shadow:inset 1px 1px 0 #c1eccc55,inset -1px -1px 0 #071d2b}
.maze-player{width:clamp(43px,13%,74px);height:clamp(43px,13%,74px);border-width:3px;border-color:#ffe290;box-shadow:0 2px 12px #000b,0 0 0 3px #fff0a533;z-index:10;transition:left .18s ease-out,top .18s ease-out}
.maze-player img{object-fit:cover}
.maze-goal{background:rgba(255,218,129,.72);overflow:visible;z-index:5}
.maze-coin{position:relative;width:68px;height:68px;max-width:none;flex-shrink:0;z-index:9;filter:drop-shadow(0 3px 3px #38221a) drop-shadow(0 0 9px #ffd866);animation:coin-shine 2.8s ease-in-out infinite alternate;pointer-events:none}
.maze-goal small{font-size:12px;padding:4px 7px;z-index:12;bottom:calc(100% + 6px);box-shadow:0 2px 8px #0008}
@keyframes coin-shine{from{filter:drop-shadow(0 2px 3px #38221a) drop-shadow(0 0 5px #ffd866)}to{filter:drop-shadow(0 2px 3px #38221a) drop-shadow(0 0 12px #ffeab0)}}
.maze-meta{font-size:13px}
.maze-meta strong{font-size:16px}
.maze-direction{font-size:34px;border-radius:16px}
.maze-dpad{grid-template-columns:repeat(3,65px);grid-template-rows:repeat(3,65px)}
.maze-direction{min-width:65px;min-height:65px}
.maze-buttons button{min-height:56px;font-size:14px}
.single-panel{display:flex;flex-direction:column;align-items:center;gap:18px}
.single-panel>.panel{width:min(100%,800px)}
.profile-avatar-panel{width:min(100%,800px);display:flex;align-items:center;gap:22px;padding:24px;border:1px solid #31545a;background:#10252c;border-radius:22px}
.profile-avatar{width:106px;height:106px;flex-shrink:0;border-radius:50%;overflow:hidden;border:3px solid #f4cf72}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-avatar-panel p{font-size:12px;margin:5px 0 18px}
.avatar-info{display:block;font-size:11px;color:#bde3db;margin:12px 0 0}
.home-quicklinks .cards article{display:flex;flex-direction:column;align-items:flex-start}
.home-quicklinks .cards article .outline{margin-top:auto}
.game-disclaimer{padding-top:0}
.game-disclaimer p{font-size:12px}
.hero-art img{width:min(85%,365px);max-width:365px}
@media(max-width:1050px){
 .header{gap:9px 12px}
 .header nav{display:flex;order:3;width:100%;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;margin:0;padding:6px 0 2px;scrollbar-width:thin}
 .header nav a{font-size:12px;padding:8px 10px}
}
@media(max-width:680px){
 .header{height:auto;padding:10px 14px 8px;gap:7px}
 .header nav{margin:0;gap:5px}
 .header .brand{font-size:17px}
 .header .head-actions{margin-left:auto}
 .page-intro{padding-top:26px}
 .maze-full .maze-card{padding:12px}
 .maze-full .maze-board-wrap{min-height:245px;padding:6px}
 .maze-player{width:clamp(40px,16%,52px);height:clamp(40px,16%,52px)}
 .maze-coin{width:48px;height:48px}
 .maze-goal small{font-size:10px}
 .maze-dpad{grid-template-columns:repeat(3,53px);grid-template-rows:repeat(3,53px);gap:5px}
 .maze-direction{min-width:53px;min-height:53px;font-size:30px}
 .maze-buttons{max-width:165px}
 .maze-buttons button{font-size:12px;min-height:52px}
 .profile-avatar-panel{padding:15px;gap:14px}
 .profile-avatar{width:76px;height:76px}
}
@media(prefers-reduced-motion:reduce){.maze-coin{animation:none}}

/* Generated illustrated landscapes remain visible beneath the maze corridors. */
.maze-board .maze-floor{background:rgba(225,248,232,.34)}
.maze-board[data-scene] .maze-goal{background:rgba(255,223,130,.70)}

/* HD mascot scenes and unique jungle/temple/ship/cloud maze masonry. */
.maze-board[data-scene="jungle"],.maze-board-wrap[data-scene="jungle"]{background-image:url("/scenes/jungle-hd.webp")}
.maze-board[data-scene="desert"],.maze-board-wrap[data-scene="desert"]{background-image:url("/scenes/desert-hd.webp")}
.maze-board[data-scene="pirate"],.maze-board-wrap[data-scene="pirate"]{background-image:url("/scenes/pirate-hd.webp")}
.maze-board[data-scene="sky"],.maze-board-wrap[data-scene="sky"]{background-image:url("/scenes/sky-hd.webp")}
.maze-board[data-scene],.maze-board-wrap[data-scene]{background-position:center;background-size:cover;background-repeat:no-repeat}
.maze-board[data-scene] .maze-floor{background:rgba(245,255,243,.055);box-shadow:inset 0 0 0 1px rgba(234,255,237,.19)}
.maze-board[data-scene] .maze-start-cell{background:rgba(111,252,176,.42);box-shadow:inset 0 0 0 2px rgba(175,255,201,.6)}
.maze-board[data-scene] .maze-goal{background:rgba(252,204,93,.42);box-shadow:inset 0 0 0 2px rgba(255,235,169,.74)}
.maze-board[data-scene="jungle"] .maze-wall{background:#1d5950 url("/textures/jungle-wall.svg") center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px #0f3738}
.maze-board[data-scene="desert"] .maze-wall{background:#c59158 url("/textures/desert-wall.svg") center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px #79422b}
.maze-board[data-scene="pirate"] .maze-wall{background:#674738 url("/textures/pirate-wall.svg") center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px #213647}
.maze-board[data-scene="sky"] .maze-wall{background:#8cbbca url("/textures/sky-wall.svg") center/100% 100% no-repeat;box-shadow:inset 0 0 0 1px #4279a0}
.maze-wall-ornament::after{content:attr(data-emblem);position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(12px,2.5vw,23px);font-weight:900;color:#f3e4a6;text-shadow:0 1px 3px #18352e,0 0 5px #cfb37099;pointer-events:none}
.maze-board[data-scene="jungle"] .maze-wall-ornament::after{color:#c6fb9d}
.maze-board[data-scene="desert"] .maze-wall-ornament::after{color:#fff3b6}
.maze-board[data-scene="pirate"] .maze-wall-ornament::after{color:#f5cf84}
.maze-board[data-scene="sky"] .maze-wall-ornament::after{color:#fff4c3}


/* Restored compact 620px maze. The mascot face remains part of ONE continuous
   stage background; paths are translucent windows, walls overlay the illustration.
   This avoids double-scaled imagery that can split the face across tiles. */
.maze-full .maze-board-wrap{
  width:100%;
  padding:18px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
}
.maze-full .maze-board{
  width:min(100%,620px);
  max-width:620px;
  background:transparent;
  box-shadow:0 0 22px #03151b55;
}
.maze-full .maze-board[data-scene]{
  background-image:none;
  background-color:transparent;
}
@media(max-width:680px){
  .maze-full .maze-board-wrap{padding:6px}
  .maze-full .maze-board{width:100%;max-width:620px}
}


/* ==========================================================
   Home Adventure v1 — COLORFUL GAME LANDING PAGE
   Intentionally scoped: Maze, Treasury, Profile, How and Tiers
   retain their existing theme and behavior.
   ========================================================== */
.home-game{
 --home-ink:#164753;--home-teal:#168f8c;--home-blue:#1e92c4;--home-yellow:#ffd467;
 --home-mint:#c7f6dc;--home-paper:#fffaf0;--home-edge:#264c58;
 color:var(--home-ink);background:var(--home-paper);
 overflow-x:hidden;
}
.home-game .header{
 position:relative;z-index:5;background:#fffdf5;color:#184350;
 border-bottom:3px solid #cde4d7;box-shadow:0 4px 0 #ffffff90;
}
.home-game .brand{color:#164753}
.home-game .brand em{color:#118d8b}
.home-game .header nav{color:#315f68}
.home-game .header nav a{font-weight:850}
.home-game .header nav a:hover,.home-game .header nav a[aria-current="page"]{
 color:#174452;background:#ffdb75;border-color:#edb343;
}
.home-game .chain{color:#127a75;font-weight:750}
.home-game .wallet{
 color:#294759;background:#ffd46d;border:2px solid #db9b33;
 box-shadow:0 4px 0 #ca873a;transition:transform .15s,box-shadow .15s;
}
.home-game .wallet:hover{background:#ffe6a3;transform:translateY(-2px)}
.home-game main{overflow:hidden}
.home-game a:focus-visible{outline:3px solid #148caa;outline-offset:4px}
.home-hero{
 position:relative;isolation:isolate;
 background:#adf1f9 url("/home-adventure-sky.svg") center center/cover no-repeat;
 border-bottom:4px solid #b7e6c9;
}
.home-hero:before{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
 background:linear-gradient(95deg,rgba(219,252,251,.68) 0%,rgba(234,253,250,.37) 50%,transparent 100%);
}
.home-hero-inner{
 max-width:1360px;margin:0 auto;min-height:630px;
 padding:76px 45px 90px;display:grid;grid-template-columns:1.05fr 1fr;
 align-items:center;gap:42px;position:relative;
}
.home-hero-copy{position:relative;z-index:2}
.home-kicker{
 display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap;
 font-size:12px;letter-spacing:.1em;font-weight:950;color:#166475;
 background:#fff9dc;border:2px solid #f0c574;border-radius:100px;
 padding:11px 17px;box-shadow:0 4px 0 #e4b05c75;transform:rotate(-2deg);
}
.home-kicker span{color:#ecaa27;font-size:18px}
.home-hero h1{
 max-width:720px;margin:28px 0 18px;
 font-size:clamp(44px,5.25vw,78px);line-height:1.07;font-weight:950;
 letter-spacing:-.065em;color:#174d59;text-wrap:balance;
 text-shadow:0 2px 0 #fff9;
}
.home-hero h1 span{color:#e99d25;text-shadow:2px 3px 0 #fff0b7}
.home-story{
 max-width:520px;font-size:clamp(16px,1.6vw,19px);
 line-height:1.65;color:#2e6871;font-weight:650;
}
.home-hero-actions{display:flex;flex-wrap:wrap;gap:13px;margin:30px 0 27px}
.home-btn{
 display:inline-flex;align-items:center;justify-content:center;gap:10px;
 padding:16px 24px;border-radius:17px;border:3px solid #285563;
 min-height:59px;color:#234a57;font-size:15px;font-weight:950;
 text-align:center;box-shadow:0 6px 0 #285563;
 transition:transform .17s ease,box-shadow .17s ease,background .17s ease;
}
.home-btn:hover{transform:translateY(-3px);box-shadow:0 9px 0 #285563}
.home-btn:active{transform:translateY(4px);box-shadow:0 2px 0 #285563}
.home-btn-gold{background:#ffcc5a}
.home-btn-gold:hover{background:#ffe08c}
.home-btn-white{background:#fffdf1}
.home-btn-white:hover{background:#e4fff3}
.home-mini-perks{display:flex;flex-wrap:wrap;gap:11px}
.home-mini-perks span{
 display:inline-flex;align-items:center;gap:6px;
 background:#ffffffc9;border:1.5px solid #83cdbd;border-radius:11px;
 padding:8px 10px;font-size:12px;font-weight:850;color:#24717a;
}
.home-hero-visual{
 position:relative;min-width:0;
 transform:rotate(1.5deg);
}
.home-hero-picture{
 position:relative;overflow:hidden;
 aspect-ratio:1.27;border:7px solid #fff7d7;border-radius:40px;
 box-shadow:0 0 0 4px #357f88,0 19px 0 #25637e38,0 24px 43px #0c506b45;
 background:#1d827f;
}
.home-hero-picture>img{
 display:block;width:100%;height:100%;object-fit:cover;object-position:center;
}
.home-visual-caption{
 position:absolute;bottom:17px;left:18px;right:18px;
 width:max-content;max-width:calc(100% - 36px);
 padding:10px 16px;border:2px solid #ffe6a4;border-radius:12px;
 background:rgba(17,84,89,.9);color:#fff9d1;
 font-weight:850;font-size:13px;
 box-shadow:0 4px 12px #082f40a1;
}
.home-floating-coin{
 position:absolute;z-index:3;width:100px;height:100px;object-fit:contain;
 top:-47px;right:-34px;
 filter:drop-shadow(0 7px 0 #916a24a1);
 animation:home-bob 4s ease-in-out infinite;
}
.home-floating-star{
 position:absolute;z-index:3;color:#fff7bd;font-size:65px;
 text-shadow:0 3px 0 #eba62c,0 0 19px #fff;
 animation:home-twinkle 2.8s ease-in-out infinite alternate;
}
.home-star-one{top:2%;left:-5%}
.home-star-two{bottom:12%;right:-6%;font-size:80px;animation-delay:.8s}
.home-hero-sticker{
 position:absolute;bottom:-29px;right:-26px;z-index:3;
 background:#ffec95;border:3px solid #c98b37;border-radius:14px;
 padding:13px 17px;font-weight:1000;font-size:13px;color:#8b5227;
 box-shadow:0 5px 0 #a46927;transform:rotate(-7deg);
}
.home-hero-scallop{
 height:16px;position:absolute;bottom:-6px;left:0;right:0;
 background:radial-gradient(circle at 16px 0,#fffaf0 16px,transparent 17px) repeat-x;
 background-size:34px 18px;
}
.home-inner{max-width:1360px;padding:0 45px;margin:0 auto}
.home-worlds-zone{padding:76px 0 73px;background:#fffaf0}
.home-section-heading{text-align:center;margin:0 auto 34px;max-width:800px}
.home-section-eyebrow{
 display:inline-block;color:#168f89;font-weight:1000;letter-spacing:.14em;font-size:12px;
}
.home-section-heading h2{
 font-size:clamp(32px,4vw,54px);color:#205365;font-weight:1000;
 letter-spacing:-.06em;line-height:1.12;margin:13px 0;
}
.home-section-heading p{font-size:16px;line-height:1.65;color:#567c7d;margin:0 auto}
.home-world-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-world-card{
 display:flex;flex-direction:column;background:#fff;border:3px solid #2f6972;
 border-radius:24px;overflow:hidden;color:#174c5e;
 box-shadow:0 8px 0 #2a728069;
 transition:transform .2s ease,box-shadow .2s ease;min-width:0;
}
.home-world-card:hover{transform:translateY(-8px) rotate(-.7deg);box-shadow:0 16px 0 #2a728044}
.home-world-image{position:relative;aspect-ratio:1.15;overflow:hidden;background:#89c9d3}
.home-world-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.home-world-card:hover img{transform:scale(1.07)}
.home-world-emoji{
 position:absolute;top:12px;right:12px;font-size:27px;
 width:48px;height:48px;background:#fffdf3e8;display:grid;place-items:center;
 border:2px solid #f6d17b;border-radius:15px;box-shadow:0 3px 0 #7b77428a;
}
.home-world-info{position:relative;padding:16px 18px 22px;flex:1}
.home-world-number{font-size:10px;font-weight:1000;letter-spacing:.13em;color:#177f80}
.home-world-info h3{font-size:21px;font-weight:1000;letter-spacing:-.04em;margin:5px 0}
.home-world-info p{font-size:13px;color:#567b7e;line-height:1.5;margin:0;padding-right:12px}
.home-world-arrow{
 position:absolute;right:14px;bottom:15px;border-radius:50%;
 background:#ffdd84;border:2px solid #e5ac41;
 width:30px;height:30px;display:grid;place-items:center;font-weight:1000;color:#774d29;
}
.home-world-jungle .home-world-info{background:#e4f8d6}
.home-world-desert .home-world-info{background:#fff0c5}
.home-world-pirate .home-world-info{background:#dfedfc}
.home-world-sky .home-world-info{background:#e4e4ff}
.home-world-hint{text-align:center;color:#4b7975;font-size:13px;font-weight:750;margin:30px auto 0}
.home-steps-zone{
 padding:74px 0 82px;
 background:linear-gradient(180deg,#d9f9f6 0%,#d0f2ed 60%,#d5f3d9 100%);
 border-top:3px solid #b3e5d8;border-bottom:3px solid #b3d7bd;
}
.home-steps-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px}
.home-step{
 position:relative;text-align:center;background:#fffdf5;border:3px solid #69b5ad;
 border-radius:29px;padding:31px 24px 29px;box-shadow:0 8px 0 #64b5a661;
}
.home-step-num{
 position:absolute;left:16px;top:14px;background:#ffe094;border:2px solid #e0b14b;
 border-radius:13px;padding:6px 10px;color:#946428;font-weight:1000;font-size:12px;
}
.home-step-icon{
 width:93px;height:93px;border-radius:28px;background:#ffedbf;
 border:3px solid #f3cd75;display:grid;place-items:center;
 font-size:47px;margin:0 auto 17px;transform:rotate(-5deg);
}
.home-step:nth-child(2) .home-step-icon{background:#ddf5ff;border-color:#9acade;transform:rotate(5deg)}
.home-step:nth-child(3) .home-step-icon{background:#fff4b5;border-color:#eec75a}
.home-step h3{font-size:24px;color:#205565;margin:0 0 9px;font-weight:1000}
.home-step p{font-size:14px;color:#578080;line-height:1.6;max-width:260px;margin:0 auto}
.home-quick-nav{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:35px}
.home-quick-nav a{
 background:#fff;border:2px solid #99d8c7;padding:12px 17px;border-radius:13px;
 font-size:13px;font-weight:900;color:#2a6c71;transition:transform .15s;
}
.home-quick-nav a:hover{background:#fff3d0;transform:translateY(-3px)}
.home-last-call{
 background:#1c6082 url("/scenes/pirate-hd.webp") center 53% /cover no-repeat;
 padding:88px 22px;border-bottom:5px solid #ffd277;
}
.home-last-inner{
 max-width:790px;margin:0 auto;text-align:center;
 color:#fffef4;padding:38px 32px 48px;
 border:3px solid #ffe0a4;border-radius:27px;
 background:rgba(16,70,87,.88);box-shadow:0 10px 0 #05293660;
}
.home-last-kicker{font-size:12px;letter-spacing:.11em;color:#ffeab2;font-weight:1000}
.home-last-call h2{font-size:clamp(30px,4vw,50px);letter-spacing:-.055em;line-height:1.12;margin:15px 0 12px}
.home-last-call p{color:#e3f4ea;font-size:17px;margin:0 auto 26px}
.home-last-inner .home-btn{min-width:205px}
.home-safety-note{
 max-width:1170px;margin:35px auto 42px;padding:14px 22px;text-align:center;
 font-size:12px;color:#5a7b7b;line-height:1.6;
}
.home-safety-note strong{color:#1e6565}
.home-game footer{
 background:#f8f2df;color:#5e7c7b;border-top:3px solid #c9e9db;
}
.home-game footer a:hover{color:#127f80;text-decoration:underline}
@keyframes home-bob{50%{transform:translateY(-13px) rotate(10deg)}}
@keyframes home-twinkle{to{opacity:.45;transform:scale(.8)}}
@media(max-width:1100px){
 .home-hero-inner{grid-template-columns:1fr 1fr;padding:60px 26px 80px;gap:28px}
 .home-hero h1{font-size:clamp(39px,5.6vw,64px)}
 .home-inner{padding:0 26px}
 .home-world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .home-world-image{aspect-ratio:1.6}
 .home-hero-sticker{right:-11px}
}
@media(max-width:760px){
 .home-hero-inner{display:flex;flex-direction:column;align-items:stretch;gap:38px;padding:42px 20px 70px}
 .home-hero-copy{text-align:center}
 .home-hero h1{margin:23px auto 15px;font-size:clamp(41px,9.2vw,62px)}
 .home-story{margin:0 auto}
 .home-kicker{justify-content:center;font-size:10px}
 .home-hero-actions,.home-mini-perks{justify-content:center}
 .home-hero-visual{width:min(100%,580px);margin:0 auto}
 .home-hero-picture{aspect-ratio:1.38;border-radius:27px}
 .home-floating-coin{right:-8px;top:-35px;width:80px;height:80px}
 .home-hero-sticker{font-size:11px;right:0;bottom:-23px;padding:10px}
 .home-inner{padding:0 18px}
 .home-worlds-zone,.home-steps-zone{padding:54px 0}
 .home-steps-grid{grid-template-columns:1fr;gap:15px}
 .home-step{padding:25px 16px}
 .home-step-icon{width:75px;height:75px;font-size:38px;border-radius:22px}
 .home-step p{max-width:360px}
 .home-last-call{padding:58px 15px}
 .home-last-inner{padding:34px 20px}
}
@media(max-width:480px){
 .home-hero-inner{padding:32px 15px 66px}
 .home-hero h1{font-size:44px}
 .home-hero-actions{gap:10px}
 .home-btn{font-size:13px;padding:13px 14px;min-height:51px;border-radius:14px}
 .home-mini-perks{gap:6px}
 .home-mini-perks span{font-size:10px;padding:7px 8px}
 .home-hero-picture{border-width:5px}
 .home-visual-caption{font-size:10px;bottom:12px;left:12px;padding:7px 9px}
 .home-floating-star{font-size:40px}
 .home-world-grid{grid-template-columns:1fr;gap:18px}
 .home-world-image{aspect-ratio:1.65}
 .home-world-info{padding:14px 18px 18px}
 .home-world-info h3{font-size:22px}
 .home-last-call p{font-size:15px}
 .home-safety-note{margin:26px auto;padding:0 18px}
}
@media(prefers-reduced-motion:reduce){
 .home-game *, .home-game *:before, .home-game *:after{
  animation-duration:.01ms!important;transition-duration:.01ms!important;
 }
}


/* Approved illustrated WebP scenes and matching 20x20 SVG wall textures. */
.maze-board[data-scene="modern"],.maze-board-wrap[data-scene="modern"]{
 background-image:url("/scenes/modern-approved.webp");
}
.maze-board[data-scene="ai"],.maze-board-wrap[data-scene="ai"]{
 background-image:url("/scenes/ai-approved.webp");
}
.maze-board[data-scene="space"],.maze-board-wrap[data-scene="space"]{
 background-image:url("/scenes/space-approved.webp");
}
.maze-board[data-scene="game"],.maze-board-wrap[data-scene="game"]{
 background-image:url("/scenes/game-approved.webp");
}
.maze-board[data-scene="modern"] .maze-wall{
 background:#367d9b url("/textures/modern-wall.svg") center/100% 100% no-repeat;
 box-shadow:inset 0 0 0 1px #163f60;
}
.maze-board[data-scene="ai"] .maze-wall{
 background:#3e4b99 url("/textures/ai-wall.svg") center/100% 100% no-repeat;
 box-shadow:inset 0 0 0 1px #17b9cc;
}
.maze-board[data-scene="space"] .maze-wall{
 background:#414b77 url("/textures/space-wall.svg") center/100% 100% no-repeat;
 box-shadow:inset 0 0 0 1px #1f234e;
}
.maze-board[data-scene="game"] .maze-wall{
 background:#b764c6 url("/textures/game-wall.svg") center/100% 100% no-repeat;
 box-shadow:inset 0 0 0 1px #673a8b;
}
.maze-board[data-scene="modern"] .maze-floor{background:rgba(234,254,251,.07);box-shadow:inset 0 0 0 1px #dbfffa34}
.maze-board[data-scene="ai"] .maze-floor{background:rgba(192,245,255,.075);box-shadow:inset 0 0 0 1px #87f7f84e}
.maze-board[data-scene="space"] .maze-floor{background:rgba(240,224,255,.065);box-shadow:inset 0 0 0 1px #e2d6fc39}
.maze-board[data-scene="game"] .maze-floor{background:rgba(255,250,226,.095);box-shadow:inset 0 0 0 1px #fff6d544}
.maze-board[data-scene="modern"] .maze-wall-ornament::after{color:#defff8;text-shadow:0 0 8px #51efef}
.maze-board[data-scene="ai"] .maze-wall-ornament::after{color:#d5c1ff;text-shadow:0 0 8px #7cfbf9}
.maze-board[data-scene="space"] .maze-wall-ornament::after{color:#ffecb1;text-shadow:0 0 9px #d4b3ff}
.maze-board[data-scene="game"] .maze-wall-ornament::after{color:#fff0ae;text-shadow:0 0 8px #ed68ec}
.maze-board[data-scene="modern"] .maze-start-cell,
.maze-board[data-scene="ai"] .maze-start-cell,
.maze-board[data-scene="space"] .maze-start-cell,
.maze-board[data-scene="game"] .maze-start-cell{
 background:rgba(100,241,177,.27);box-shadow:inset 0 0 0 2px #c7ffe9bb;
}
.maze-board[data-scene="modern"] .maze-goal,
.maze-board[data-scene="ai"] .maze-goal,
.maze-board[data-scene="space"] .maze-goal,
.maze-board[data-scene="game"] .maze-goal{
 background:rgba(255,222,125,.26);box-shadow:inset 0 0 0 2px #ffe8a9ba;
}

/* Home gallery expansion — approved high-definition art for worlds 5–8 */
.home-world-modern .home-world-info{background:#e0f3f6}
.home-world-ai .home-world-info{background:#e7e1ff}
.home-world-space .home-world-info{background:#e0e6fa}
.home-world-game .home-world-info{background:#ffe4f5}
.home-world-grid .home-world-image img{object-position:center}


/* Single-row, horizontally scrollable gallery across desktop and mobile. */
.home-game .home-world-carousel-tools{
 display:flex;align-items:center;justify-content:space-between;gap:16px;
 margin:0 0 17px;
}
.home-game .home-world-scroll-hint{
 margin:0;color:#276b74;font-weight:800;font-size:13px;
}
.home-game .home-world-arrows{display:flex;gap:10px;flex:none}
.home-game .home-world-nav-button{
 width:43px;height:43px;border:2px solid #dba749;border-radius:50%;
 background:#ffdd86;color:#234c5f;font-size:31px;font-weight:900;
 line-height:1;box-shadow:0 3px 0 #b58d40;cursor:pointer;
}
.home-game .home-world-nav-button:hover:not(:disabled){background:#ffe9ab}
.home-game .home-world-nav-button:focus-visible{
 outline:3px solid #236f8a;outline-offset:3px;
}
.home-game .home-world-nav-button:disabled{opacity:.45;cursor:default;box-shadow:none}
.home-game #home-world-carousel{
 display:grid;grid-template-columns:none;grid-template-rows:1fr;
 grid-auto-flow:column;grid-auto-columns:clamp(248px,24vw,310px);
 align-items:stretch;gap:18px;
 width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;
 padding:4px 3px 17px;
 overscroll-behavior-x:contain;
 scroll-snap-type:x proximity;
 scroll-padding-inline:3px;
 scrollbar-width:thin;scrollbar-color:#55afa9 #d4f1e7;
 -webkit-overflow-scrolling:touch;
}
.home-game #home-world-carousel::-webkit-scrollbar{height:10px}
.home-game #home-world-carousel::-webkit-scrollbar-track{
 background:#d4f1e7;border-radius:20px
}
.home-game #home-world-carousel::-webkit-scrollbar-thumb{
 background:#55afa9;border-radius:20px;border:2px solid #d4f1e7
}
.home-game #home-world-carousel .home-world-card{
 min-width:0;scroll-snap-align:start;scroll-snap-stop:normal;
}
.home-game #home-world-carousel .home-world-image{aspect-ratio:1.15}
@media(max-width:760px){
 .home-game #home-world-carousel{
  grid-auto-columns:min(78vw,300px);gap:13px;
 }
 .home-game .home-world-carousel-tools{margin-bottom:12px}
 .home-game .home-world-scroll-hint{font-size:11px}
 .home-game .home-world-nav-button{
  height:35px;width:35px;font-size:25px;
 }
}
@media(max-width:480px){
 .home-game #home-world-carousel{grid-auto-columns:min(82vw,290px)}
 .home-game #home-world-carousel .home-world-image{aspect-ratio:1.15}
 .home-game .home-world-scroll-hint{max-width:195px;line-height:1.45}
}

/* Shared wallet account dropdown. No approvals or wallet signature requests. */
.header{position:relative;z-index:30}
.header .head-actions{position:relative;z-index:31}
.wallet-account-menu[hidden]{display:none!important}
.wallet-account-menu{
 position:absolute;right:0;top:calc(100% + 12px);z-index:100;
 width:min(345px,calc(100vw - 28px));max-width:calc(100vw - 28px);
 display:flex;flex-direction:column;gap:11px;padding:18px;
 color:#e8fff7;background:#10323a;border:1px solid #75d9bd;
 border-radius:18px;box-shadow:0 15px 45px #0007;text-align:left;
 font-size:13px;font-weight:500;white-space:normal;
}
.wallet-account-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.wallet-account-header strong{font-size:18px;font-weight:900;color:#c9ffe8}
.wallet-menu-close{
 display:grid;place-items:center;width:32px;height:32px;
 border-radius:9px;border:1px solid #4f7a78;background:transparent;color:#e8fff7;
 font-size:24px;line-height:1;
}
.wallet-account-network{font-size:11px;font-weight:750;color:#81efd1}
.wallet-account-address{
 padding:11px;background:#092129;border-radius:9px;border:1px solid #355b5d;
 color:#cee3e2;font:11px/1.6 ui-monospace,monospace;overflow-wrap:anywhere;
 user-select:text;
}
.wallet-account-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #32585b;padding:12px 0 0}
.wallet-account-stat span{color:#a6cdca}
.wallet-account-stat strong{font-weight:850;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.wallet-account-message{margin:0;color:#a5ccbd;font-size:11px;line-height:1.6}
.wallet-account-actions{display:flex;gap:8px}
.wallet-account-actions button{
 flex:1;min-height:38px;border:1px solid #5d9a90;border-radius:9px;
 color:#c7f9e6;background:#1e4646;padding:8px;font-size:12px;font-weight:800;
}
.wallet-account-actions button:hover{background:#276259}
.wallet-menu-disconnect{
 width:100%;min-height:42px;padding:10px 12px;border:1px solid #dc8d8a;
 border-radius:11px;background:#472b30;color:#ffe9e4;font-weight:900;
}
.wallet-menu-disconnect:hover{background:#5e333c}
.wallet-account-note{margin:0;color:#accbc7;font-size:10px;line-height:1.55}
.wallet-account-menu button:focus-visible{outline:3px solid #ffda79;outline-offset:2px}
@media(max-width:680px){.wallet-account-menu{top:calc(100% + 10px)}}

/* Connected wallet address in Profile is an accessible button. */
.wallet-profile-address{
 appearance:none;border:1px solid #79aca6;background:#e4fff1;
 color:#1b5360;border-radius:9px;padding:8px 11px;max-width:220px;
 font-size:12px;font-weight:900;text-align:right;overflow-wrap:anywhere;
}
.wallet-profile-address:hover{background:#fff0bc;cursor:pointer}
.wallet-profile-address:focus-visible{outline:3px solid #247e98;outline-offset:2px}

.wallet-profile-row{position:relative;z-index:32;overflow:visible}
.wallet-profile-row .wallet-account-menu{top:calc(100% + 8px);right:0}

/* Fresh, playful wallet details – readable on both light adventure and dark Home. */
.wallet-account-menu{
 color:#245965;
 background:linear-gradient(150deg,#e8fff1 0%,#fffdf5 58%,#e9f9ff 100%);
 border:2px solid #83cdb7;
 box-shadow:0 10px 0 #2d918b21,0 20px 55px #174e6680;
 border-radius:22px;padding:19px;gap:12px;
}
.wallet-account-header{
 padding:0 0 3px;
}
.wallet-account-header strong{font-size:20px;color:#196c72;font-weight:1000}
.wallet-menu-close{
 color:#326770;background:#ffffffc9;border:1px solid #a2d8ce;
 font-weight:900;
}
.wallet-menu-close:hover{background:#f9e2a1}
.wallet-account-network{
 align-self:flex-start;background:#cefae7;color:#176d65;
 padding:7px 10px;border-radius:99px;border:1px solid #8fcab7;
 font-weight:900;letter-spacing:.01em;
}
.wallet-account-address{
 color:#326574;background:#fff;border:1px dashed #9ccbc1;
 padding:13px;border-radius:12px;
 box-shadow:0 2px 0 #d1ebe3;
}
.wallet-account-stat{
 background:#fff;border:1px solid #cfebdf;border-radius:13px;
 padding:13px;align-items:center;
 box-shadow:0 3px 0 #d8eee5;
}
.wallet-account-stat span{color:#487981;font-weight:750}
.wallet-account-stat strong{font-size:14px;color:#175d62}
.wallet-account-message{color:#43777a;background:#ebfbfa;border-radius:10px;padding:9px 10px}
.wallet-account-actions button{
 color:#235864;border:2px solid #79c6b2;background:#c3f7e2;
 border-radius:12px;font-weight:900;
 box-shadow:0 2px 0 #72ab9e;
}
.wallet-account-actions button:nth-child(2){
 background:#fff0bd;border-color:#dcbc74;box-shadow:0 2px 0 #d0b67f;
}
.wallet-account-actions button:hover{background:#8becd0}
.wallet-account-actions button:nth-child(2):hover{background:#ffdc7b}
.wallet-menu-disconnect{
 color:#8e3f43;border:2px solid #edb3a4;background:#ffe0d7;
 border-radius:12px;font-weight:950;
 box-shadow:0 3px 0 #eab5a5;
}
.wallet-menu-disconnect:hover{background:#ffc7ba}
.wallet-account-note{color:#5b8687;line-height:1.5}

/* Explicit UTC – browser local time is never used for displayed clock time. */
.utc-clock{
 display:inline-flex;align-items:center;justify-content:center;
 padding:7px 10px;white-space:nowrap;border:1px solid #4b817b;
 border-radius:99px;background:#173d3c;color:#c1ffe7;
 font-size:11px;font-weight:900;letter-spacing:.02em;
 font-variant-numeric:tabular-nums;
}
.adventure-page .utc-clock{
 border-color:#b1d5bf;background:#e2fae9;color:#207478;
}
@media(max-width:680px){
 .utc-clock{font-size:10px;padding:5px 8px}
 .wallet-account-menu{max-width:calc(100vw - 20px);padding:14px}
}


/* Official Treasure Map X account: fixed lower-right social link. */
footer .tm-x-link{
 position:fixed;right:calc(14px + env(safe-area-inset-right, 0px));
 bottom:calc(14px + env(safe-area-inset-bottom, 0px));
 z-index:12;display:grid;place-items:center;
 width:46px;height:46px;border:2px solid #efd08e;border-radius:50%;
 background:#102c34;color:#fff;box-shadow:0 5px 17px #082a3366;
 text-decoration:none;transition:transform .16s ease,box-shadow .16s ease;
}
footer .tm-x-link svg{display:block;width:23px;height:23px;fill:currentColor}
footer .tm-x-link:hover,.adventure-page footer .tm-x-link:hover,.home-game footer .tm-x-link:hover{
 color:#fff;text-decoration:none;transform:translateY(-2px);
 box-shadow:0 8px 22px #082a3380;
}
footer .tm-x-link:focus-visible{outline:3px solid #46b3a6;outline-offset:3px}
@media(max-width:600px){
 footer .tm-x-link{width:40px;height:40px;right:calc(10px + env(safe-area-inset-right, 0px));bottom:calc(10px + env(safe-area-inset-bottom, 0px))}
 footer .tm-x-link svg{width:20px;height:20px}
}
@media(prefers-reduced-motion:reduce){footer .tm-x-link{transition:none}}
