/* The Android phone app uses the reading area for titles and game controls. */
html.jejak-app-phone body>header{display:none!important}
/* On wide landscape phones the regular site's 950px breakpoint no longer
   matches, but the app must still provide the bottom navigation. */
html.jejak-app-phone body:not(.play-page)>#mobileHomeNav{position:fixed;z-index:80;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:6px max(10px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));border-top:1px solid #d9e5d8;background:#fffdf6;box-shadow:0 -5px 22px #123e3914}
html.jejak-app-phone #mobileHomeNav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:54px;padding:4px;border:0;border-radius:14px;background:transparent;color:#526e61;box-shadow:none;font:800 11px/1.2 Nunito,system-ui,sans-serif}
html.jejak-app-phone #mobileHomeNav button[aria-current=page]{color:#1b7651;background:#e5f3e9}
html.jejak-app-phone #mobileHomeNav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Keep the bottom navigation clearance while removing the shared slogan. */
html.jejak-app-phone body>footer>span:not(.footer-copyright){display:none}
html.jejak-app-phone body:not(.play-page)>footer{border:0;padding:0 0 calc(90px + env(safe-area-inset-bottom))}
html.jejak-app-phone:has(body:not(.play-page)){scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom))}
html.jejak-app-phone .gamehead,
html.jejak-app-phone .app-silang-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px;margin:0 0 10px}
html.jejak-app-phone .gamehead>div,
html.jejak-app-phone .app-silang-head>h2{flex:1 1 0;min-width:0}
html.jejak-app-phone .gamehead h2,
html.jejak-app-phone .app-silang-head>h2{font:800 15px/1.25 Nunito,system-ui,sans-serif;letter-spacing:0;color:#164c3c;overflow-wrap:anywhere}
html.jejak-app-phone .gamehead button,
html.jejak-app-phone .app-silang-head button{flex:none;min-height:44px;padding:8px 12px;font-size:12px}
html.jejak-app-phone .gamehead .eyebrow{margin:0 0 3px;font-size:9px;line-height:1.2}

/* Compact admin-only arcade shortcut in the phone application. */
html.jejak-app-phone .admin-arcade-draft{display:flex;flex-direction:row;align-items:center;gap:10px;padding:12px 14px;margin:12px 0;border-radius:14px}
html.jejak-app-phone .admin-arcade-draft>div{flex:1;min-width:0}
html.jejak-app-phone .admin-arcade-draft strong{font-size:14px;line-height:1.25}
html.jejak-app-phone .admin-arcade-draft p{display:none}
html.jejak-app-phone .admin-arcade-draft a{flex:none;min-height:44px;padding:8px 14px;border-radius:11px;font-size:0}
html.jejak-app-phone .admin-arcade-draft a::after{content:'Buka';font-size:13px;font-weight:800}
html[lang=en].jejak-app-phone .admin-arcade-draft a::after{content:'Open'}

/* Compact maintenance control, retaining its status and confirmation action. */
html.jejak-app-phone .admin-maintenance{display:flex;flex-direction:row;align-items:center;gap:10px;padding:12px 14px;margin:12px 0;border-radius:14px}
html.jejak-app-phone .admin-maintenance>div{flex:1;min-width:0}
html.jejak-app-phone .admin-maintenance h2{font-size:15px;line-height:1.25}
html.jejak-app-phone .admin-maintenance p{font-size:12px;line-height:1.35}
html.jejak-app-phone .admin-maintenance button{width:auto;max-width:110px;min-height:44px;padding:8px 12px;font-size:13px;line-height:1.2}

/* Phone app: the three main choices use the same green-and-cream pill family
   as the journey controls. The ebook remains above this navigation. */
html.jejak-app-phone .journey-page-heading{margin-bottom:16px}
html.jejak-app-phone .journey-page .adventure-category-tabs{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:8px;
  margin:0 0 14px;padding:0;
}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category]{
  display:flex;align-items:center;justify-content:center;gap:6px;
  width:100%;min-width:0;min-height:48px;padding:8px 6px;
  border:1.5px solid #cce1d3;border-radius:999px;
  background:#fffdf6;color:#286a55;box-shadow:0 3px 8px #26533c0b;
  font:900 clamp(11px,3.4vw,13px)/1.2 Nunito,system-ui,sans-serif;
  white-space:nowrap;
}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category]:hover{
  transform:none;background:#fffdf6;
}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category][aria-pressed=true],
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category][aria-selected=true]{
  background:#2c8861;border-color:#2c8861;color:#fffdf5;
  box-shadow:0 5px 12px #25825c2b;
}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category][aria-pressed=true]:hover,
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category][aria-selected=true]:hover{
  background:#2c8861;
}
html.jejak-app-phone .journey-page .adventure-category-tabs svg{
  width:19px;height:19px;flex:none;fill:none;stroke:currentColor;
  stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
html.jejak-app-phone .journey-page .adventure-category-tabs [aria-pressed=true] svg,
html.jejak-app-phone .journey-page .adventure-category-tabs [aria-selected=true] svg{color:#ffe0a0}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category]:focus-visible{
  outline:3px solid #bc8524;outline-offset:3px;
}

/* Era controls are secondary to Sirah / Mini / Arked, but keep familiar
   outlines and large-enough touch targets on small screens. */
html.jejak-app-phone body:has(.journey-page) .journey-page:has(.adventure-category-tabs) .journey-tabs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  max-width:none;margin:0 0 14px;overflow:visible;
}
html.jejak-app-phone body:has(.journey-page) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab]{
  display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;
  min-width:0;min-height:44px;width:100%;padding:6px 4px;
  border:1.5px solid #d1e1d4;border-radius:999px;
  background:#fffdf6;color:#326b56;box-shadow:none;
  font:900 clamp(11px,3.1vw,12px)/1.2 Nunito,system-ui,sans-serif;
  white-space:nowrap;overflow-wrap:normal;word-break:normal;
}
html.jejak-app-phone body:has(.journey-page) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab][aria-selected=true]{
  background:#e1f1e6;border-color:#88bda0;color:#1d7651;box-shadow:none;
}
html.jejak-app-phone body:has(.journey-page) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab] span{
  display:inline;margin:0;color:#b6811b;line-height:1;
}

/* A compact list makes the existing additional games visible sooner. */
html.jejak-app-phone .journey-page .adventure-mini-panel .silang-cards{margin:0}
html.jejak-app-phone .journey-page .adventure-mini-panel .silang-grid{
  display:grid;grid-template-columns:minmax(0,1fr);gap:9px;
}
html.jejak-app-phone .journey-page .adventure-mini-panel .silang-card{
  min-width:0;min-height:72px;padding:12px;gap:12px;
  border:1px solid #e4e9dd;border-radius:19px;background:#fffefa;
  color:#153e38;box-shadow:0 4px 13px #3564480b;
}
html.jejak-app-phone .journey-page .adventure-mini-panel .silang-card-icon{
  flex:0 0 46px;width:46px;height:46px;border-radius:14px;
  background:#ddf2e9;color:#167e6e;font-size:17px;font-weight:900;
}
html.jejak-app-phone .journey-page .adventure-mini-panel .silang-card-text b{
  font-size:14px;line-height:1.2;font-weight:900;
}
html.jejak-app-phone .journey-page .adventure-mini-panel .silang-card-text small{
  margin-top:2px;font-size:11px;line-height:1.35;color:#6b8073;
}
html.jejak-app-phone .journey-page .adventure-mini-panel .silang-card-text em{
  font-size:10px;line-height:1.3;
}
html.jejak-app-phone .journey-page .adventure-mini-panel .silang-card-go{
  flex:none;font-size:12px;font-weight:900;color:#2b8961;
}
html.jejak-app-phone .journey-page .adventure-mini-empty{
  margin:8px 0 0;padding:18px;border:1px solid #e4e9dd;border-radius:18px;
  background:#fffefa;color:#60796c;font:600 14px/1.5 Nunito,system-ui,sans-serif;
}
html.jejak-app-phone .journey-page .adventure-mini-intro{margin:2px 2px 13px}
html.jejak-app-phone .journey-page .adventure-mini-intro h2{
  margin:0;font:900 20px/1.12 "VAG Rounded Black",Nunito,system-ui,sans-serif;
  letter-spacing:-.2px;color:#123e39;
}
html.jejak-app-phone .journey-page .adventure-mini-intro p{
  margin:5px 0 0;font:700 12px/1.35 Nunito,system-ui,sans-serif;color:#698075;
}
/* The introductory heading precedes the era selectors in the phone layout. */
html.jejak-app-phone .journey-page .adventure-mini-panel .games-all>.sectionhead{display:none}

/* Keep the longer Minda Sirah label readable without wrapping on phones. */
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category="mini"]{gap:3px;padding-inline:4px;font-size:clamp(10px,2.9vw,12px)}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category="mini"] svg{width:15px;height:15px}

/* Phone journey: one clear category control above the lighter era tabs. */
html.jejak-app-phone .journey-page .adventure-category-tabs{
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:2px;
  padding:4px;margin-bottom:12px;border:1px solid #e2e9dc;border-radius:999px;
  background:#fffdf6;box-shadow:0 3px 12px #26533c0b;
}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category]{
  min-height:44px;padding:6px 3px;gap:4px;border:0;background:transparent;
  box-shadow:none;color:#286a55;font-size:clamp(11px,3.2vw,13px);
}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category]:hover{background:transparent}
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category][aria-pressed=true],
html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category][aria-selected=true]{
  background:#2c8861;color:#fffdf5;box-shadow:none;
}
html.jejak-app-phone .journey-page .adventure-category-tabs svg{width:16px;height:16px}
html.jejak-app-phone body:has(.journey-page) .journey-page:has(.adventure-category-tabs) .journey-tabs{
  gap:2px;margin-bottom:14px;
}
html.jejak-app-phone body:has(.journey-page) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab]{
  min-height:44px;padding:6px 3px;border:0;background:transparent;box-shadow:none;color:#3a6957;
}
html.jejak-app-phone body:has(.journey-page) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab][aria-selected=true]{
  background:#dff1e6;border:0;box-shadow:none;color:#1d7651;
}
html.jejak-app-phone body:has(.journey-page) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab] span{display:none}

html.jejak-app-phone .journey-page .adventure-category-tabs [data-adventure-category="mini"]{font-size:clamp(11px,3.2vw,13px)}

/* Website and tablet use the same journey choices as the phone app. */
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;
  width:100%;max-width:550px;margin:0 0 18px;padding:4px;
  border:1px solid #e2e9dc;border-radius:999px;background:#fffdf6;
  box-shadow:0 3px 12px #26533c0b;
}
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs [data-adventure-category]{
  display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;
  padding:8px 6px;border:0;border-radius:999px;background:transparent;box-shadow:none;
  color:#286a55;font:900 clamp(11px,3vw,15px)/1.2 Nunito,system-ui,sans-serif;white-space:nowrap;
}
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs [data-adventure-category]:hover{transform:none;background:#edf6ed}
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs [data-adventure-category][aria-pressed=true],
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs [data-adventure-category][aria-selected=true]{background:#2c8861;color:#fffdf5}
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs [aria-pressed=true] svg{color:#ffe0a0}
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs [data-adventure-category]:focus-visible{outline:3px solid #bc8524;outline-offset:3px}
html:not(.jejak-app-phone) .journey-page .adventure-mini-intro{margin:4px 2px 16px}
html:not(.jejak-app-phone) .journey-page .adventure-mini-intro h2{margin:0;font:900 22px/1.15 "VAG Rounded Black",Nunito,system-ui,sans-serif;color:#123e39}
html:not(.jejak-app-phone) .journey-page .adventure-mini-intro p{margin:5px 0 0;color:#698075;font:700 14px/1.4 Nunito,system-ui,sans-serif}
html:not(.jejak-app-phone) .journey-page .adventure-mini-panel .games-all{margin-top:0}
html:not(.jejak-app-phone) .journey-page .adventure-mini-panel .games-all>.sectionhead{display:none}
/* A category is selected immediately so its label never fades into the background. */
html:not(.jejak-app-phone) .journey-page .adventure-category-tabs [data-adventure-category]{transition:none}
html:not(.jejak-app-phone) .journey-page:has(.adventure-category-tabs) .journey-tabs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;max-width:550px;margin:0 0 14px;
}
html:not(.jejak-app-phone) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab]{
  display:flex;justify-content:center;align-items:center;min-width:0;min-height:44px;width:100%;padding:6px 3px;
  border:0;border-radius:999px;background:transparent;box-shadow:none;color:#3a6957;font:900 clamp(11px,3vw,15px)/1.2 Nunito,system-ui,sans-serif;
}
html:not(.jejak-app-phone) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab][aria-selected=true]{background:#dff1e6;color:#1d7651}
html:not(.jejak-app-phone) .journey-page:has(.adventure-category-tabs) .journey-tabs [role=tab] span{display:none}
