/* AbujaLife Game UI Kit
   Visual system only: keeps gameplay logic intact while making the product feel like a native life-sim game.
*/
:root{
  --game-forest-950:#102a22;
  --game-forest-900:#17382d;
  --game-forest-800:#214b3b;
  --game-forest-700:#2b624b;
  --game-forest-600:#3e775d;
  --game-forest-500:#5f9276;
  --game-sage-300:#b9cbb5;
  --game-sage-200:#d7e0cf;
  --game-sage-100:#e9eee3;
  --game-cream:#fffaf0;
  --game-paper:#f7f4ec;
  --game-gold:#c99a56;
  --game-gold-soft:#e8d7b5;
  --game-coral:#bf6f4b;
  --game-danger:#9d5148;
  --game-text:#193129;
  --game-muted:#718078;
  --game-line:rgba(31,71,55,.12);
  --game-glass:rgba(255,250,240,.82);
  --game-glass-strong:rgba(255,250,240,.94);
  --game-shadow-sm:0 7px 24px rgba(17,42,34,.12);
  --game-shadow-md:0 18px 48px rgba(17,42,34,.18);
  --game-shadow-lg:0 32px 90px rgba(17,42,34,.28);
  --game-radius-sm:14px;
  --game-radius-md:20px;
  --game-radius-lg:28px;
  --game-control:52px;
}

html{background:var(--game-paper);}
body{
  background:
    radial-gradient(circle at 15% -10%,rgba(201,154,86,.12),transparent 28%),
    linear-gradient(180deg,#f7f4ec 0%,#eef1e8 100%);
  color:var(--game-text);
  overscroll-behavior:none;
}
button,input,select,textarea{font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;}
button{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease,opacity .16s ease;}
button:not(:disabled):active{transform:scale(.975);}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(201,154,86,.72);
  outline-offset:3px;
}

.primary,.secondary{
  min-height:50px;
  border-radius:16px;
  font-weight:750;
  letter-spacing:-.01em;
  box-shadow:none;
}
.primary{
  background:linear-gradient(180deg,var(--game-forest-700),var(--game-forest-800));
  color:#fffdf6;
  box-shadow:0 10px 26px rgba(33,75,59,.2),inset 0 1px 0 rgba(255,255,255,.12);
}
.primary:hover{background:linear-gradient(180deg,#347056,#214b3b);}
.secondary{
  background:rgba(255,250,240,.82);
  color:var(--game-forest-800);
  border:1px solid rgba(33,75,59,.12);
  box-shadow:0 7px 18px rgba(18,47,37,.08),inset 0 1px 0 rgba(255,255,255,.8);
}
.icon-button{
  border-radius:14px;
  color:var(--game-forest-800);
}

/* Premium page shell */
.game-shell{
  max-width:1500px;
  padding:0 34px 112px;
  background:transparent;
}
.game-header{
  height:86px;
  border-bottom:0;
  gap:20px;
  position:relative;
  z-index:40;
}
.game-header::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(32,75,60,.14),transparent);
}
.wordmark{font-size:24px;letter-spacing:-1.1px;}
.header-edition{
  margin-right:auto;
  font-size:8px;
  font-weight:800;
  letter-spacing:1.7px;
  color:#839087;
}
.wallet-button{
  min-height:48px;
  min-width:122px;
  padding:7px 12px 8px 14px;
  border:1px solid rgba(33,75,59,.1);
  border-radius:15px;
  background:rgba(255,250,240,.68);
  box-shadow:0 7px 22px rgba(18,47,37,.06),inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.wallet-button>span{color:#7f8b83;font-size:7px;font-weight:800;letter-spacing:1.1px;}
.wallet-button strong{font-size:17px;color:var(--game-forest-900);font-weight:780;letter-spacing:-.45px;}
.resident-button{
  width:47px;height:47px;
  border:2px solid rgba(255,250,240,.95);
  outline:1px solid rgba(32,75,60,.13);
  box-shadow:0 7px 20px rgba(18,47,37,.12);
  background:#dfe8d9;
}
.game-content{max-width:1220px;padding-top:20px;}
.page-heading{padding:20px 0 26px;}
.page-heading .eyebrow{color:#7b887e;}
.page-heading h1{font-size:clamp(31px,4vw,48px);letter-spacing:-2px;line-height:1.03;color:var(--game-forest-950);}
.page-heading p{font-size:14px;max-width:600px;}

/* Full-screen play mode. This is the core game treatment. */
.game-shell.is-playing{
  max-width:none;
  min-height:100dvh;
  padding:0;
  overflow:hidden;
  background:#bfcdb1;
}
.game-shell.is-playing .game-header{
  position:fixed;
  z-index:90;
  top:0;left:0;right:0;
  height:calc(68px + env(safe-area-inset-top));
  padding:env(safe-area-inset-top) max(18px,calc((100vw - 1440px)/2 + 28px)) 0;
  background:linear-gradient(180deg,rgba(18,45,36,.58) 0%,rgba(18,45,36,.18) 64%,transparent 100%);
  border:0;
  color:#fff;
  pointer-events:none;
}
.game-shell.is-playing .game-header::after{display:none;}
.game-shell.is-playing .game-header>*{pointer-events:auto;}
.game-shell.is-playing .wordmark{filter:drop-shadow(0 2px 8px rgba(8,29,22,.35));}
.game-shell.is-playing .header-edition{color:rgba(255,255,255,.62);text-shadow:0 1px 8px rgba(9,28,22,.35);}
.game-shell.is-playing .wallet-button{
  border-color:rgba(255,255,255,.22);
  background:rgba(18,45,36,.54);
  box-shadow:0 7px 22px rgba(5,24,17,.16),inset 0 1px 0 rgba(255,255,255,.12);
}
.game-shell.is-playing .wallet-button>span{color:rgba(255,255,255,.65);}
.game-shell.is-playing .wallet-button strong{color:#fffaf0;}
.game-shell.is-playing .resident-button{outline-color:rgba(255,255,255,.25);box-shadow:0 7px 20px rgba(5,24,17,.2);}
.game-shell.is-playing .game-content{
  width:100%;
  max-width:none;
  height:100dvh;
  padding:0;
  margin:0;
}
.game-shell.is-playing .world-stage{
  width:100%;
  height:100dvh;
  min-height:100dvh;
  border-radius:0;
  box-shadow:none;
  background:linear-gradient(180deg,#b6c7a9,#ced8bd);
}
.game-shell.is-playing .world-playable,
.game-shell.is-playing #world-scene.world-playable{
  width:100%;
  height:100dvh;
  min-height:100dvh;
  border-radius:0;
  box-shadow:none;
}
.game-shell.is-playing .world-canvas{border-radius:0;}

/* Navigation: game dock instead of website tab bar. */
.game-nav{
  bottom:max(14px,env(safe-area-inset-bottom));
  padding:6px;
  gap:3px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.68);
  background:rgba(255,250,240,.88);
  box-shadow:0 16px 50px rgba(18,47,37,.2),inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(24px) saturate(1.08);
  -webkit-backdrop-filter:blur(24px) saturate(1.08);
}
.game-nav button{
  min-width:84px;
  min-height:57px;
  padding:9px 14px;
  border-radius:18px;
  color:#68776f;
  font-size:10px;
  font-weight:700;
  gap:7px;
}
.game-nav button svg{width:20px;height:20px;stroke-width:1.8;}
.game-nav button.active{
  color:#fffdf6;
  background:linear-gradient(180deg,var(--game-forest-700),var(--game-forest-800));
  box-shadow:0 9px 22px rgba(33,75,59,.24),inset 0 1px 0 rgba(255,255,255,.13);
}
.game-nav .phone-launch{border-left:0;border-radius:18px;margin-left:0;}
.nav-badge{
  top:4px;right:8px;
  min-width:18px;height:18px;
  display:grid;place-items:center;
  border:2px solid rgba(255,250,240,.95);
  background:var(--game-coral);
  font-size:8px;
}
.game-shell.is-playing .game-nav{
  background:rgba(18,45,36,.68);
  border-color:rgba(255,255,255,.2);
  box-shadow:0 16px 46px rgba(5,24,17,.3),inset 0 1px 0 rgba(255,255,255,.12);
}
.game-shell.is-playing .game-nav button{color:rgba(255,255,255,.68);}
.game-shell.is-playing .game-nav button.active{background:rgba(255,250,240,.94);color:var(--game-forest-900);box-shadow:0 8px 20px rgba(5,24,17,.2);}
.game-shell.is-playing .nav-badge{border-color:var(--game-forest-900);}

/* World HUD */
.game-shell.is-playing .world-hud{
  top:calc(76px + env(safe-area-inset-top));
  left:max(18px,calc((100vw - 1440px)/2 + 28px));
  right:max(18px,calc((100vw - 1440px)/2 + 28px));
}
.world-location-chip{
  min-height:42px;
  padding:10px 13px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.62);
  background:rgba(255,250,240,.84);
  box-shadow:var(--game-shadow-sm),inset 0 1px 0 rgba(255,255,255,.75);
  color:var(--game-forest-900);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.world-location-chip>i{background:#5b9b73;box-shadow:0 0 0 5px rgba(91,155,115,.14);}
.world-location-chip>small{color:#718078;}
.world-camera-button{
  width:44px;height:44px;min-height:44px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.62);
  background:rgba(255,250,240,.86);
  box-shadow:var(--game-shadow-sm),inset 0 1px 0 rgba(255,255,255,.8);
  color:var(--game-forest-800);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.game-shell.is-playing .world-motion-status{
  top:calc(125px + env(safe-area-inset-top));
  left:max(20px,calc((100vw - 1440px)/2 + 30px));
  color:rgba(21,57,45,.85);
  text-shadow:0 1px 8px rgba(255,255,255,.72);
}
.world-minimap{
  width:132px;
  top:72px;
  right:18px;
  padding:7px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(23,56,45,.72);
  box-shadow:0 12px 30px rgba(17,42,34,.18),inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.game-shell.is-playing .world-minimap{top:calc(129px + env(safe-area-inset-top));right:max(18px,calc((100vw - 1440px)/2 + 28px));}
.world-minimap svg{border-radius:10px;background:rgba(185,203,181,.54);}
.world-minimap>span{font-size:6px;letter-spacing:1px;color:#fff2cf;}

/* Movement controls */
.game-shell.is-playing .world-game-controls{
  left:max(18px,calc((100vw - 1440px)/2 + 28px));
  right:max(18px,calc((100vw - 1440px)/2 + 28px));
  bottom:calc(92px + env(safe-area-inset-bottom));
}
.world-joystick{
  width:112px;height:112px;
  border:1px solid rgba(255,255,255,.48);
  background:radial-gradient(circle at 50% 46%,rgba(255,250,240,.16),rgba(17,42,34,.17));
  box-shadow:0 14px 36px rgba(17,42,34,.2),inset 0 0 0 10px rgba(255,255,255,.08),inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.world-joystick-knob{
  left:35px;top:35px;width:42px;height:42px;
  border:1px solid rgba(255,255,255,.76);
  background:linear-gradient(180deg,#fffaf0,#e8e2d2);
  box-shadow:0 8px 18px rgba(20,52,40,.28),inset 0 1px 0 #fff;
}
.world-joystick-cross:before,.world-joystick-cross:after{left:55px;top:14px;height:82px;background:rgba(255,255,255,.28);}
.world-joystick-caption{color:rgba(255,255,255,.84);text-shadow:0 2px 8px rgba(16,42,33,.5);}
.world-sprint-button{
  width:56px;height:56px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.6);
  background:rgba(255,250,240,.86);
  color:var(--game-forest-800);
  box-shadow:var(--game-shadow-sm),inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.world-sprint-button.is-active{
  background:linear-gradient(180deg,var(--game-forest-700),var(--game-forest-800));
  color:#fff;
}
.world-interact-button{
  min-height:52px;
  padding:9px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.62);
  background:rgba(255,250,240,.9);
  color:var(--game-forest-800);
  box-shadow:0 11px 30px rgba(17,42,34,.18),inset 0 1px 0 rgba(255,255,255,.85);
  font-size:11px;
  font-weight:750;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.world-interact-button.is-ready{
  background:linear-gradient(180deg,#2f6a50,#214b3b);
  color:#fffaf0;
  border-color:rgba(255,255,255,.18);
}
.world-interact-button.is-ready kbd{background:#f0ddae;color:#244835;}
.world-help{color:rgba(255,255,255,.78);text-shadow:0 2px 8px rgba(16,42,33,.55);}
.world-help kbd{background:rgba(255,250,240,.76);color:var(--game-forest-800);}
.world-simulation-label{color:rgba(255,255,255,.48);}
.world-furniture-toolbar{
  bottom:calc(170px + env(safe-area-inset-bottom));
  gap:8px;
  padding:10px;
  border:1px solid rgba(255,255,255,.64);
  border-radius:17px;
  background:rgba(255,250,240,.92);
  box-shadow:0 16px 38px rgba(17,42,34,.22);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
}
.world-furniture-toolbar button{border-radius:11px;padding:10px 12px;font-weight:750;background:var(--game-forest-800);}
.world-furniture-toolbar button:last-child{background:#e8eee3;color:var(--game-forest-800);}

/* Sheets and game menus */
.sheet-backdrop{
  background:rgba(8,27,21,.46);
  backdrop-filter:blur(13px) saturate(.92);
  -webkit-backdrop-filter:blur(13px) saturate(.92);
}
.sheet{
  width:min(100%,500px);
  padding:38px 30px 30px;
  border:1px solid rgba(255,255,255,.76);
  border-radius:30px;
  background:linear-gradient(180deg,rgba(255,252,245,.98),rgba(247,244,236,.97));
  box-shadow:var(--game-shadow-lg),inset 0 1px 0 rgba(255,255,255,.95);
}
.sheet.game-sheet-wide{width:min(100%,760px);}
.sheet h2{font-size:clamp(27px,4vw,38px);line-height:1.02;letter-spacing:-1.4px;color:var(--game-forest-950);margin-bottom:12px;}
.sheet .eyebrow{color:#76827a;font-size:9px;letter-spacing:1.8px;}
.sheet .muted{font-size:13px;line-height:1.6;color:#738078;}
.sheet-close{
  right:14px;top:14px;
  width:42px;height:42px;
  border-radius:14px;
  background:rgba(233,238,227,.72);
  color:#6a786f;
}
.city-places{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  margin:23px 0 18px;
}
.city-place{
  position:relative;
  min-height:118px;
  padding:16px;
  display:grid;
  grid-template-columns:52px 1fr 24px;
  align-items:center;
  gap:13px;
  border:1px solid rgba(33,75,59,.1);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(235,241,231,.72));
  color:var(--game-text);
  text-align:left;
  box-shadow:0 9px 24px rgba(18,47,37,.08),inset 0 1px 0 rgba(255,255,255,.9);
  overflow:hidden;
}
.city-place::after{
  content:"";
  position:absolute;
  inset:auto -25px -35px auto;
  width:100px;height:100px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(201,154,86,.11),transparent 68%);
  pointer-events:none;
}
.city-place:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(18,47,37,.12);border-color:rgba(33,75,59,.18);}
.city-place.current{border-color:rgba(43,98,75,.34);background:linear-gradient(145deg,#eef5ea,#e2ecdc);}
.city-place>span:nth-child(2){min-width:0;}
.city-place small{display:block;color:#8a8e78;font-size:8px;font-weight:800;letter-spacing:1.25px;text-transform:uppercase;margin-bottom:5px;}
.city-place strong{display:block;color:var(--game-forest-900);font-size:15px;letter-spacing:-.3px;}
.city-place p{margin:5px 0 0;color:#7d897f;font-size:10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.city-place>svg{width:18px;color:#65806d;}
.venue-marker{
  width:52px;height:52px;
  display:grid;place-items:center;
  border-radius:16px;
  background:linear-gradient(180deg,#f4e9d3,#ead8b6);
  color:#8a6539;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
.venue-marker svg{width:24px;height:24px;}

/* Needs are now visually game-like whenever the care sheet opens. */
.daily-needs{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:22px 0;
}
.daily-needs>div{
  min-width:0;
  padding:13px;
  border:1px solid rgba(33,75,59,.1);
  border-radius:17px;
  background:rgba(255,255,255,.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.daily-needs label{font-size:9px;font-weight:800;color:#5f6f66;letter-spacing:.2px;}
.daily-needs label span{font-size:10px;font-weight:800;color:var(--game-forest-800);}
.daily-needs progress{height:8px;margin-top:10px;background:#dfe6db;}
.daily-needs>div:nth-child(1) progress{accent-color:#6b9666;}
.daily-needs>div:nth-child(2) progress{accent-color:#c08c56;}
.daily-needs>div:nth-child(3) progress{accent-color:#6d9c92;}
.daily-needs>div:nth-child(4) progress{accent-color:#8f7aa2;}
.daily-needs>div:nth-child(5) progress{accent-color:#bf7758;}
.daily-needs>div:nth-child(6) progress{accent-color:#8b8c78;}

/* Jobs, market, property and profile use one coherent game-card language. */
.job-list,.market-list,.property-list{border-top:0;display:grid;gap:10px;}
.job-row,.market-row,.property-row{
  border:1px solid rgba(33,75,59,.1);
  border-radius:20px;
  background:rgba(255,252,245,.74);
  box-shadow:0 9px 24px rgba(18,47,37,.07),inset 0 1px 0 rgba(255,255,255,.8);
}
.job-row{padding:17px 18px;min-height:86px;}
.job-row:hover,.job-row.chosen{background:#edf4e9;border-color:rgba(43,98,75,.25);}
.job-monogram{
  width:54px;height:54px;
  border-radius:17px;
  background:linear-gradient(180deg,#e5ecd9,#d8e4d1);
  color:var(--game-forest-700);
  font-family:inherit;
  font-size:18px;
  font-weight:850;
}
.market-row,.property-row{padding:18px;gap:18px;}
.market-row h2,.property-row h2{font-size:19px;letter-spacing:-.55px;}
.item-symbol,.property-number{
  width:72px;height:76px;
  border-radius:18px;
  background:linear-gradient(180deg,#e7eddc,#dbe6d3);
  color:var(--game-forest-600);
}
.filter-row{gap:7px;margin-bottom:18px;padding-bottom:2px;}
.filter-row button{
  min-height:39px;
  padding:9px 15px;
  border-radius:14px;
  border:1px solid rgba(33,75,59,.1);
  background:rgba(255,252,245,.7);
  color:#6d7a72;
  font-weight:700;
}
.filter-row button.active{background:var(--game-forest-800);color:#fffaf0;box-shadow:0 7px 18px rgba(33,75,59,.18);}
.job-detail,.work-challenge{
  border:1px solid rgba(33,75,59,.1);
  border-radius:24px;
  background:rgba(255,252,245,.84);
  box-shadow:var(--game-shadow-sm);
}
.profile-portrait{
  border-radius:34px;
  background:
    radial-gradient(circle at 50% 22%,rgba(255,255,255,.62),transparent 25%),
    linear-gradient(180deg,#dce8d7,#cbdcc5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.62),0 18px 44px rgba(18,47,37,.1);
}

/* Map feels like an in-game city tablet. */
.map-stage{
  min-height:650px;
  border:1px solid rgba(33,75,59,.11);
  border-radius:28px;
  box-shadow:var(--game-shadow-md),inset 0 1px 0 rgba(255,255,255,.78);
  background:#dbe5d5;
}
.abuja-map{border:0;border-radius:28px;background:#edf2e9;}
.abuja-map-viewport{background:linear-gradient(180deg,#dce9dd,#e9eee3);}
.abuja-map-control{
  width:46px;height:46px;
  border-radius:15px;
  border-color:rgba(33,75,59,.1);
  background:rgba(255,252,245,.92);
  color:var(--game-forest-800);
  box-shadow:var(--game-shadow-sm);
}
.abuja-map-pin{width:16px;height:16px;border:5px solid var(--game-forest-700);box-shadow:0 4px 12px rgba(17,42,34,.24);}
.abuja-map-marker-label{border-radius:9px;padding:5px 7px;background:rgba(255,252,245,.94);box-shadow:0 7px 18px rgba(17,42,34,.12);}
.abuja-map-panel{
  border-top:1px solid rgba(33,75,59,.09);
  background:rgba(255,252,245,.96);
  box-shadow:0 -12px 34px rgba(17,42,34,.08);
}
.abuja-map-search input{
  height:48px;
  border-radius:15px;
  border-color:rgba(33,75,59,.1);
  background:#f1f4ed;
}
.abuja-map-place{
  min-width:146px;
  padding:10px 12px;
  border-radius:14px;
  border-color:rgba(33,75,59,.1);
  background:#fffdf8;
  box-shadow:0 5px 14px rgba(18,47,37,.05);
}
.abuja-map-place.is-selected{background:#e8f0e4;border-color:rgba(43,98,75,.28);}
.abuja-map-travel{
  min-height:46px;
  border-radius:14px;
  background:linear-gradient(180deg,var(--game-forest-700),var(--game-forest-800));
  box-shadow:0 8px 20px rgba(33,75,59,.18);
}

/* Toast and transient system feedback */
#toast{
  bottom:calc(104px + env(safe-area-inset-bottom));
  padding:13px 17px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  background:rgba(17,42,34,.94);
  color:#fffaf0;
  box-shadow:0 14px 36px rgba(7,24,18,.28);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  font-weight:650;
}

/* Mobile game ergonomics */
@media(max-width:700px){
  :root{--game-control:48px;}
  body{background:#d3dec7;}
  .game-shell:not(.is-playing){padding:0 16px calc(100px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#f7f4ec,#edf1e8);}
  .game-shell:not(.is-playing) .game-header{
    height:calc(70px + env(safe-area-inset-top));
    padding-top:env(safe-area-inset-top);
    gap:12px;
  }
  .game-shell:not(.is-playing) .wordmark{font-size:20px;}
  .header-edition{display:none;}
  .wallet-button{min-width:104px;padding:6px 10px;}
  .wallet-button>span{font-size:6.5px;}
  .wallet-button strong{font-size:15px;}
  .resident-button{width:43px;height:43px;}
  .game-content{padding-top:10px;}
  .page-heading h1{font-size:34px;}

  .game-shell.is-playing .game-header{
    height:calc(62px + env(safe-area-inset-top));
    padding:env(safe-area-inset-top) 15px 0;
  }
  .game-shell.is-playing .wordmark{font-size:19px;}
  .game-shell.is-playing .wallet-button{min-width:101px;min-height:43px;padding:5px 9px;}
  .game-shell.is-playing .resident-button{width:42px;height:42px;}
  .game-shell.is-playing .world-hud{top:calc(67px + env(safe-area-inset-top));left:13px;right:13px;}
  .game-shell.is-playing .world-motion-status{top:calc(111px + env(safe-area-inset-top));left:16px;max-width:calc(100% - 118px);font-size:8px;}
  .game-shell.is-playing .world-minimap{top:calc(114px + env(safe-area-inset-top));right:13px;width:84px;padding:5px;border-radius:11px;}
  .world-minimap svg{height:53px;border-radius:7px;}
  .world-location-chip{min-height:38px;padding:9px 11px;border-radius:13px;font-size:10px;}
  .world-camera-button{width:38px;height:38px;min-height:38px;border-radius:13px;}
  .game-shell.is-playing .world-game-controls{left:16px;right:16px;bottom:calc(88px + env(safe-area-inset-bottom));}
  .world-joystick{width:104px;height:104px;}
  .world-joystick-knob{left:32px;top:32px;width:40px;height:40px;}
  .world-joystick-cross:before,.world-joystick-cross:after{left:51px;top:12px;height:78px;}
  .world-actions{gap:9px;max-width:190px;}
  .world-sprint-button{width:50px;height:50px;border-radius:16px;}
  .world-interact-button{min-height:47px;max-width:190px;border-radius:16px;padding:8px 10px;font-size:10px;}
  .world-interact-button>span{max-width:132px;}
  .world-furniture-toolbar{bottom:calc(158px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);}
  .world-help{display:none;}

  .game-nav{
    left:12px;right:12px;transform:none;width:auto;
    bottom:max(10px,env(safe-area-inset-bottom));
    justify-content:space-between;
    border-radius:22px;
  }
  .game-nav button{flex:1;min-width:0;min-height:55px;padding:8px 7px;flex-direction:column;gap:4px;border-radius:17px;font-size:9px;}
  .game-nav button svg{width:20px;height:20px;}

  .sheet-backdrop{align-items:end;padding:0;}
  .sheet,.sheet.game-sheet-wide{
    width:100%;
    max-height:min(88dvh,820px);
    padding:34px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius:28px 28px 0 0;
    border-width:1px 0 0;
    animation:game-sheet-up .22s cubic-bezier(.2,.7,.2,1);
  }
  .sheet::before{
    content:"";
    position:absolute;
    top:10px;left:50%;
    width:42px;height:5px;
    transform:translateX(-50%);
    border-radius:9px;
    background:rgba(27,60,48,.13);
  }
  .sheet-close{top:13px;right:13px;width:39px;height:39px;}
  .sheet h2{font-size:30px;padding-right:34px;}
  .city-places{grid-template-columns:1fr;gap:9px;margin-top:18px;}
  .city-place{min-height:94px;grid-template-columns:46px 1fr 20px;padding:12px;border-radius:17px;}
  .venue-marker{width:46px;height:46px;border-radius:14px;}
  .city-place p{font-size:9px;-webkit-line-clamp:1;}
  .daily-needs{grid-template-columns:repeat(2,minmax(0,1fr));}
  .daily-needs>div{padding:12px;border-radius:15px;}

  .map-stage{min-height:calc(100dvh - 180px);border-radius:22px;}
  .abuja-map{border-radius:22px;}
  .abuja-map-panel{padding-bottom:env(safe-area-inset-bottom);}
  .market-row,.property-row{padding:14px;gap:13px;border-radius:18px;}
  .item-symbol,.property-number{width:60px;height:66px;border-radius:16px;}
  .job-row{padding:14px;border-radius:18px;}
  .profile-studio{gap:16px;}
}

@media(max-width:420px){
  .game-shell.is-playing .wordmark{font-size:18px;}
  .game-shell.is-playing .wallet-button{min-width:96px;}
  .game-nav{left:8px;right:8px;padding:5px;}
  .game-nav button{font-size:8.5px;}
  .world-interact-button{max-width:170px;}
  .city-place strong{font-size:14px;}
}

@media(min-width:1000px){
  .game-shell.is-playing .world-joystick{opacity:.92;}
  .game-shell.is-playing .world-joystick:hover{opacity:1;}
  .game-shell.is-playing .game-nav{bottom:18px;}
}

@media(prefers-reduced-motion:reduce){
  button{transition:none;}
  .sheet{animation:none!important;}
}

@keyframes game-sheet-up{from{opacity:.8;transform:translateY(38px)}to{opacity:1;transform:none}}
