/* A warm, illustrated game journal. Shared shell, navigation and collection. */
:root{--game-ink:#624537;--game-line:#a57860;--game-paper:#fff6e7;--game-mint:#a9ddc7;--game-pink:#ffd2d9;--game-gold:#ffd572;--game-lilac:#cabcf0;--blue:#ad624e;--muted:#886b5b;--line:#d6b99a;--ink:#624537;--radius:23px;font-family:"Arial Rounded MT Bold","Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;color:var(--game-ink);background:#d8ece6}
body{background:radial-gradient(circle at 12% 14%,#fff4b8 0 5px,transparent 6px),radial-gradient(circle at 85% 60%,#f4c4b4 0 5px,transparent 6px),linear-gradient(145deg,#d3e8df,#fce8cf);background-size:93px 111px,131px 147px,auto;color:var(--game-ink)}
.app-shell{background-color:#fff0d9;background-image:radial-gradient(#d5ac7a35 .8px,transparent .8px);background-size:13px 13px;box-shadow:0 12px 0 #a7785a30,0 20px 60px #71644328;isolation:isolate}
body[data-section="home"] .app-shell{background-color:#ffe1dd;background-image:linear-gradient(90deg,#ffffff30 1px,transparent 1px),linear-gradient(#ffffff30 1px,transparent 1px);background-size:48px 48px}
body[data-section="rankings"] .app-shell{background-color:#deeee0}
body[data-section="raids"] .app-shell{background-color:#e8e0f4}
body[data-section="pokedex"] .app-shell{background-color:#f7e7c8}
.brand-bar{height:72px;padding:0 20px;background:#fff6e7;border-bottom:2px solid #c5a084;box-shadow:0 3px 0 #ad79531a;position:relative;z-index:2}
.brand{gap:9px;letter-spacing:.1px;align-items:center}.brand-word{font-size:22px;font-weight:950;color:#a65e4b;letter-spacing:-.7px;text-shadow:1px 1px 0 #fff}.brand-word>span{font-size:16px;letter-spacing:.5px;color:#73503b}
.brand-ball{width:35px;height:35px;border:2.5px solid #8d614a;border-radius:50%;background:linear-gradient(#ee9990 0 46%,#92634e 46% 54%,#fff5da 54%);position:relative;box-shadow:0 3px 0 #bc8b6b;transform:rotate(-14deg);flex-shrink:0}.brand-ball:before{content:"";position:absolute;left:6px;top:4px;width:12px;height:5px;border-radius:50%;background:#ffe6df;transform:rotate(-22deg)}.brand-ball i{position:absolute;inset:9px;border:2px solid #8d614a;border-radius:50%;background:#fff5da;box-shadow:inset 0 0 0 2px #f2d4ae}
.preview-label{border:2px solid #c7a486;border-radius:100px;padding:5px 9px;background:#fff0ca;font-size:10px;letter-spacing:.1px;font-weight:750;color:#886246;box-shadow:0 2px 0 #d8b896}.preview-label>span{color:#c89037;margin-right:3px}
main{padding:23px 18px 40px}.page-top{gap:11px;margin-bottom:24px;align-items:center;position:relative}.back{width:43px;height:43px;border:2px solid var(--game-line);border-radius:50%;background:#fff5dd;color:#8d6049;box-shadow:0 4px 0 #c59d79,inset 0 2px 0 #fff;transition:transform .12s,box-shadow .12s}.back:active{transform:translateY(3px);box-shadow:0 1px 0 #c59d79}.page-title-wrap{min-width:0}.page-title{font-size:25px;font-weight:900;letter-spacing:.3px;color:var(--game-ink);text-shadow:0 2px 0 #fff7e9;line-height:1.4}.eyebrow{font-size:10px;font-weight:650;color:#9b7961;letter-spacing:.6px;line-height:1.6;margin-bottom:2px}.page-spark{font-size:27px;color:#d7a84b;-webkit-text-stroke:1px #a98457;text-shadow:1px 2px #fff6e7;margin-left:auto;transform:rotate(13deg);padding-right:3px}
button,a,summary,select,input{outline-color:#a96848}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #a06a40;outline-offset:4px}button{color:var(--game-ink)}.game-art{overflow:visible;filter:drop-shadow(0 2px 0 #fff5)}
/* Home: an illustrated activity card and three toy-like feature tiles. */
.home-heading{margin:1px 3px 24px;position:relative;text-align:center}.home-kicker{display:inline-block;font-size:11px;font-weight:750;letter-spacing:1px;color:#a76b58;margin-bottom:5px}.home-heading .page-title{font-size:29px;font-weight:950;letter-spacing:1px;text-shadow:2px 2px 0 #fff4e0}.home-heading-star{position:absolute;right:12px;top:12px;color:#dcb85b;-webkit-text-stroke:1px #b08a55;font-size:30px;transform:rotate(10deg)}
.home-grid{gap:18px 15px}.home-tile{position:relative;isolation:isolate;min-height:165px;border:2.5px solid var(--game-line);border-radius:23px;background:#fff4d9;box-shadow:0 6px 0 #c49775,inset 0 3px 0 #fff9e9;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;padding:11px 8px 14px;gap:1px;color:var(--game-ink);text-align:center;overflow:visible;transition:transform .13s,box-shadow .13s}
.home-tile:not(.blank-tile):hover{border-color:#a57860;box-shadow:0 8px 0 #c49775;transform:translateY(-2px)}.home-tile:not(.blank-tile):active{transform:translateY(4px);box-shadow:0 2px 0 #c49775}.home-tile-art{display:grid;place-items:center;height:91px}.home-tile-art svg{width:96px;height:96px}.home-tile-title{font-size:21px;font-weight:900;line-height:1.5;letter-spacing:0}.home-tile-note{font-size:10px;letter-spacing:.3px;font-weight:500;color:#92715c;margin-top:2px}
.home-dex{background:#fff4db}.home-rank{background:#cfe9ce}.home-raid{background:#e0d4f4}.home-dex:before,.home-rank:before,.home-raid:before{content:"";position:absolute;inset:6px;border:1px dashed #a5786040;border-radius:16px;pointer-events:none;z-index:-1}
.home-tile.primary{display:block;min-height:230px;height:230px;grid-column:1/-1;border:3px solid #a98069;border-radius:25px;background:#f8f0bd;color:var(--game-ink);padding:0;box-shadow:0 7px 0 #c08d79,inset 0 3px 0 #fff7e9;font-size:inherit;letter-spacing:0;overflow:hidden;margin-bottom:3px}
.home-ribbon{position:absolute;top:13px;left:15px;z-index:4;background:#fff0d0;border:2px solid #bb8b68;border-radius:8px 14px 14px 8px;box-shadow:0 2px 0 #c7a573;color:#9b6244;font-size:10px;letter-spacing:1px;font-weight:800;padding:5px 10px;transform:rotate(-3deg)}
.home-hero-art{position:absolute;inset:0;overflow:hidden;border-radius:22px;background:linear-gradient(#e5f2dc,#eef4d7 69%,#cee2b3 69%)}.hero-cloud{position:absolute;width:58px;height:20px;background:#fff9df;border:1.5px solid #d2c4a0;border-radius:100px;opacity:.9}.hero-cloud:before{content:"";position:absolute;width:29px;height:24px;background:#fff9df;border:1.5px solid #d2c4a0;border-bottom:0;border-radius:50% 50% 0 0;left:13px;bottom:12px}.cloud-one{right:21px;top:40px;transform:scale(.85)}.cloud-two{right:112px;top:19px;transform:scale(.55);opacity:.7}.hero-hill{position:absolute;border:2px solid #a9b98c;border-radius:55% 65% 0 0;background:#c1d9a2;width:230px;height:120px;bottom:-55px;right:-45px;transform:rotate(-12deg)}.hill-back{right:66px;bottom:-61px;background:#d7e7b9;transform:rotate(8deg)}.hill-front{bottom:-72px;background:#accb94}
.home-hero-art img{position:absolute;object-fit:contain;z-index:2;filter:drop-shadow(0 4px 0 #a3855b29);user-select:none}.hero-pikachu{width:142px;height:142px;right:0;bottom:27px;transform:rotate(6deg)}.hero-eevee{width:110px;height:110px;right:90px;bottom:34px;transform:rotate(-7deg)}.hero-star{position:absolute;z-index:3;color:#f9d96e;-webkit-text-stroke:1px #b99250;font-size:25px}.hero-star-one{right:119px;top:55px;transform:rotate(-16deg)}.hero-star-two{right:19px;bottom:34px;font-size:32px}
.home-hero-copy{position:absolute;z-index:4;left:20px;top:67px;display:flex;flex-direction:column;align-items:flex-start}.home-hero-copy strong{font-size:42px;font-weight:950;line-height:1.3;letter-spacing:3px;color:#78503d;-webkit-text-stroke:1px #78503d;text-shadow:2px 3px 0 #fff8df}.home-hero-copy>span{font-size:10px;font-weight:700;color:#8d7055;margin-top:4px;letter-spacing:.1px;padding:3px 5px;background:#fbf6d6d9;border-radius:5px}
.home-play{display:flex;align-items:center;justify-content:center;gap:6px;position:absolute;left:18px;bottom:17px;z-index:5;background:#fff0d0;border:2px solid #a87b57;border-radius:14px;padding:9px 14px;box-shadow:0 4px 0 #c69862,inset 0 2px 0 #fff8e5;color:#7d5037;font-size:14px;font-weight:900;letter-spacing:.2px}.primary .home-play svg{width:18px;height:18px;color:#a06d45;stroke-width:2.5}
.blank-tile{background:#fff0df66;border:2px solid #d8b5a1;box-shadow:inset 0 3px 0 #fff2e288;min-height:165px}.blank-bottom{min-height:105px;margin-top:3px;box-shadow:none;background:#fff0df55}
/* Menus remain four and two clear choices, with the reserved space empty. */
.menu-list{gap:20px}.menu-button{min-height:110px;border:2.5px solid var(--game-line);border-radius:24px;background:#fff4db;box-shadow:0 6px 0 #c99d76,inset 0 3px 0 #fffbeb;padding:12px 16px;gap:14px;position:relative;color:var(--game-ink)}.menu-button:before{content:"";position:absolute;inset:6px;border:1px dashed #ac876240;border-radius:17px;pointer-events:none}.menu-icon{width:72px;height:72px;flex-shrink:0;background:none;border-radius:0}.menu-icon svg{width:76px;height:76px}.menu-button .menu-label{font-size:24px;font-weight:900;letter-spacing:.4px;text-shadow:1px 2px #fff7e6;line-height:1.4}.menu-go{margin-left:auto;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#f7dfb8;border:1.5px solid #bc9168;box-shadow:0 2px 0 #d4ac7c;flex-shrink:0}.menu-button .chevron{margin:0;color:#a77a51;width:16px;height:16px;stroke-width:2.6}.menu-button:hover{border-color:#a57860;transform:translateY(-2px)}.menu-button:active{transform:translateY(4px);box-shadow:0 2px 0 #c99d76}.activity-menu .menu-button:nth-child(2){background:#fbe4cd}.activity-menu .menu-button:nth-child(3){background:#d9e8cb}.activity-menu .menu-button:nth-child(4){background:#e6dcf4}.ranking-menu .menu-button:first-child{background:#d0e6cc}.ranking-menu .menu-button:last-child{background:#f8dcdf}
/* The collection is a padded album page with five fixed columns. */
.dex-toolbar{background:transparent;padding-bottom:17px}.dex-search{border:2px solid #b18b6e;border-radius:17px;background:#fff9ed;box-shadow:0 3px 0 #d7b895,inset 0 2px 0 #fff;min-height:52px;padding:0 14px;gap:10px}.dex-search:focus-within{border-color:#996b4b;box-shadow:0 3px 0 #d7b895,0 0 0 3px #f6d08b66}.dex-search>svg{color:#a28267;stroke-width:2.2}.dex-search input{padding:13px 0;color:#71533f;font-size:15px}.dex-search input::placeholder{color:#ad927b}.dex-clear{width:29px;height:29px;background:#f4dfbf;color:#9b7758;border:1px solid #cfaf87;border-radius:50%;font-size:20px}.dex-meta{margin-top:14px;color:#a18468;font-size:11px}.dex-meta span:first-child,#dex-count{font-weight:800;color:#927050}.dex-range{font-size:10px;color:#a48a70}.dex-load-status{color:#927457}.dex-retry{color:#9e6249;font-weight:700}
.is-pokedex .page-top{margin-bottom:21px}.is-pokedex main{padding-left:14px;padding-right:14px}.is-pokedex .dex-scroll{background:#fff8e8;border:2.5px solid #bd9574;border-bottom-width:6px;border-radius:21px 21px 17px 17px;box-shadow:inset 5px 0 0 #edcfaa,inset 9px 0 0 #fbefd8;scrollbar-color:#c19a78 #fff4de;padding:17px 9px max(27px,env(safe-area-inset-bottom)) 15px;margin:0 -1px 10px;scrollbar-width:thin}
.dex-grid{gap:15px 7px}.dex-tile{contain-intrinsic-size:auto 90px}.dex-image{border:2px solid #cfb493;border-radius:13px;background:#fce9d1;box-shadow:inset 0 2px 0 #fff8e9,0 2px 0 #e6cbab;overflow:visible}.dex-tile:nth-child(5n+2) .dex-image{background:#deebcf}.dex-tile:nth-child(5n+3) .dex-image{background:#d9e9e7}.dex-tile:nth-child(5n+4) .dex-image{background:#f4dce2}.dex-tile:nth-child(5n) .dex-image{background:#e4dcf0}.dex-image img{filter:drop-shadow(0 2px 0 #94704720);image-rendering:auto}.dex-number{font-size:9px;font-weight:700;color:#a28263;margin-top:7px}.dex-image-fallback{color:#9d816b;font-size:8px;padding:2px}.dex-no-results h2{color:#856248}.dex-no-results p{color:#a68a70}.empty-search-icon{color:#b49169}
.empty-state{background:#fff8e9;border:2px dashed #c5a17c;border-radius:21px;color:#856449}.empty-state svg{color:#b18e68}.empty-state p{color:#9c7d63}.result-footer,.detail-source{color:#a18a75}.type-chip{border:1px solid #ad8f7033}.detail-back{color:#8b6650}#toast{background:#74503d;border:2px solid #5e4030;box-shadow:0 4px 0 #ae8466;color:#fff4df;white-space:normal;text-align:center;max-width:calc(100% - 32px);width:max-content;border-radius:14px}
@media(hover:hover){.home-tile:not(.blank-tile):hover .home-tile-art{transform:rotate(-4deg)}.home-tile-art{transition:transform .15s}.back:hover{background:#ffebc6}}
@media(min-width:620px){body{padding:30px 0}.app-shell{border:3px solid #aa8069;border-radius:30px;min-height:850px}.brand-bar{height:77px;padding:0 23px}main{padding:24px 23px 46px}.is-pokedex .app-shell,.is-raids .app-shell{height:calc(100svh - 60px)}.is-pokedex main{padding-left:18px;padding-right:18px}.home-hero-copy{left:27px}.hero-pikachu{right:15px;width:157px;height:157px}.hero-eevee{right:115px;width:117px;height:117px}.home-heading-star{right:35px}}
@media(max-width:350px){.brand-bar{height:65px;padding:0 14px}.brand-word{font-size:20px}.brand-word>span{font-size:14px}.brand-ball{width:31px;height:31px}.brand-ball i{inset:8px}.preview-label{font-size:9px;padding:4px 7px}main{padding:20px 14px 35px}.page-top{gap:9px}.back{width:40px;height:40px}.page-title{font-size:22px}.eyebrow{font-size:9px}.page-spark{font-size:23px}.home-heading .page-title{font-size:26px}.home-heading-star{right:0;font-size:24px}.home-tile.primary{height:218px;min-height:218px}.home-grid{gap:17px 13px}.home-tile{min-height:151px;padding:9px 5px 12px}.home-tile-art{height:80px}.home-tile-art svg{width:86px;height:86px}.home-tile-title{font-size:19px}.home-tile-note{font-size:9px}.home-hero-copy{left:15px;top:65px}.home-hero-copy strong{font-size:36px}.home-hero-copy>span{font-size:9px}.hero-pikachu{width:124px;height:124px;right:-7px;bottom:32px}.hero-eevee{width:90px;height:90px;right:73px;bottom:40px}.home-play{left:13px;font-size:12px;padding:8px 10px;bottom:14px}.home-ribbon{left:13px;top:12px}.hero-star-one{right:100px;top:57px}.blank-bottom{min-height:94px}.menu-button{padding:10px 13px;gap:10px;min-height:104px}.menu-icon{width:61px;height:65px}.menu-icon svg{width:68px;height:68px}.menu-button .menu-label{font-size:21px}.menu-go{width:27px;height:27px}.is-pokedex main{padding-left:10px;padding-right:10px}.is-pokedex .dex-scroll{padding:13px 7px 22px 12px}.dex-grid{gap:13px 5px}.dex-image{border-width:1.5px;border-radius:10px}.dex-number{font-size:8px}.dex-search{gap:8px;padding:0 11px}.dex-search input{font-size:14px}.dex-range{font-size:9px}}
@media(prefers-reduced-motion:reduce){.home-tile-art,.home-tile,.menu-button,.back{transition:none!important}}
/* Keep touch search readable without iOS focus zoom. */
body input[type="search"]{font-size:16px}
body input[type="search"]:focus-visible{outline:0}
.dex-search:focus-within,.activity-search:focus-within,.rk-search:focus-within{outline:2px solid #ab7850;outline-offset:2px}

/* Activity hero: a six-Pokémon picnic group with a clear heading and footer. */
.home-tile.primary{height:294px;min-height:294px;background:#e9f1dc}
.home-tile.primary .home-ribbon{top:12px;left:12px;padding:4px 8px;font-size:9px;transform:rotate(-5deg)}
.home-tile.primary .home-hero-copy{top:19px;left:0;right:0;align-items:center;pointer-events:none}
.home-tile.primary .home-hero-copy strong{font-size:36px;line-height:1.25;letter-spacing:4px}
.home-tile.primary .home-hero-copy>span{font-size:10px;background:none;margin-top:5px;padding:0;letter-spacing:.4px}
.home-tile.primary .home-hero-art{background:linear-gradient(#e7f2dd,#f2f4df 56%,#dce9c0 56%)}
.home-tile.primary .cloud-one{right:16px;top:34px;transform:scale(.65);opacity:.7}
.home-tile.primary .cloud-two{left:27px;right:auto;top:84px;transform:scale(.55);opacity:.65}
.home-tile.primary .hero-hill{width:330px;height:155px;bottom:-40px;right:-75px;background:#c6dcae;transform:rotate(-10deg)}
.home-tile.primary .hill-back{left:-50px;right:auto;bottom:-28px;background:#dfebc6;transform:rotate(9deg)}
.home-tile.primary .hill-front{bottom:-102px;background:#b5d39c}
.hero-party{position:absolute;left:5px;right:5px;top:82px;bottom:53px}
.hero-party:before{content:"";position:absolute;left:7%;right:6%;height:36px;bottom:4px;border-radius:50%;background:#aac18c35;transform:rotate(-3deg)}
.home-hero-art .hero-party img{height:auto;aspect-ratio:1;transform:translateX(-50%);filter:drop-shadow(0 3px 1px #8e8d5c30)}
.hero-party .hero-party-charmander{left:17%;width:27%;bottom:34px;z-index:2}
.hero-party .hero-party-snorlax{left:55%;width:34%;bottom:32px;z-index:1}
.hero-party .hero-party-squirtle{left:86%;width:24%;bottom:31px;z-index:2}
.hero-party .hero-party-bulbasaur{left:13%;width:26%;bottom:-1px;z-index:3}
.hero-party .hero-party-eevee{left:72%;width:27%;bottom:-2px;z-index:4}
.hero-party .hero-party-pikachu{left:39%;width:29%;bottom:0;z-index:5}
.home-tile.primary .hero-star-one{left:12px;right:auto;top:146px;font-size:18px;transform:rotate(-12deg)}
.home-tile.primary .hero-star-two{right:12px;bottom:65px;font-size:20px}
.home-tile.primary .home-play{left:50%;bottom:13px;transform:translateX(-50%);min-width:144px;white-space:nowrap;padding:8px 18px;font-size:14px;border-radius:15px}
@media(min-width:620px){
  .home-tile.primary{height:310px;min-height:310px}
  .hero-party{left:18px;right:18px;top:84px;bottom:57px}
}
@media(max-width:350px){
  .home-tile.primary{height:280px;min-height:280px}
  .home-tile.primary .home-ribbon{font-size:8px;padding:4px 6px;left:10px;top:12px}
  .home-tile.primary .home-hero-copy{top:20px}
  .home-tile.primary .home-hero-copy strong{font-size:32px}
  .home-tile.primary .home-hero-copy>span{font-size:9px;letter-spacing:0}
  .hero-party{top:82px;bottom:52px;left:2px;right:2px}
  .hero-party .hero-party-snorlax{bottom:38px}
  .hero-party .hero-party-charmander{bottom:36px}
  .hero-party .hero-party-squirtle{bottom:34px}
  .home-tile.primary .home-play{font-size:13px;min-width:138px}
}

/* A generous activity action, with its own space below the character group. */
.home-tile.primary{height:318px;min-height:318px}
.hero-party{bottom:76px}
.home-tile.primary .home-play{width:60%;min-width:180px;max-width:calc(100% - 32px);height:54px;min-height:54px;left:50%;bottom:13px;transform:translateX(-50%);padding:10px 18px;font-size:17px;line-height:1.4;letter-spacing:.3px;border-radius:17px;gap:9px;touch-action:manipulation}
.home-tile.primary .home-play svg{width:20px;height:20px;stroke-width:2.6}
@media(min-width:620px){.home-tile.primary{height:334px;min-height:334px}}
@media(max-width:350px){.home-tile.primary{height:304px;min-height:304px}.home-tile.primary .home-play{font-size:16px}}

/* Keep the activity lettering crisp, with no outlined or doubled glyphs. */
.home-tile.primary .home-hero-copy,.home-tile.primary .home-play{font-family:system-ui,-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei","Noto Sans TC",sans-serif;font-synthesis:none;-webkit-text-stroke:0;text-shadow:none}
.home-tile.primary .home-hero-copy strong{font-family:inherit;font-size:38px;font-weight:800;line-height:1.2;letter-spacing:1px;color:#624537;-webkit-text-stroke:0;text-shadow:none}
.home-tile.primary .home-hero-copy>span{font-family:inherit;font-size:12px;font-weight:600;line-height:1.6;letter-spacing:.2px;color:#76523d;-webkit-text-stroke:0;text-shadow:none}
.home-tile.primary .home-play{font-size:17px;font-weight:800;line-height:1.4;letter-spacing:.3px;color:#6c4933}
@media(max-width:350px){.home-tile.primary .home-play{font-size:16px}}

/* Match the transparent alternate poses to the friendly, spacious group. */
.home-hero-art .hero-party img{object-fit:contain;filter:drop-shadow(0 3px 1px #8e8d5c25)}
.hero-party .hero-party-charmander{left:19%;width:25%;bottom:58px}
.hero-party .hero-party-snorlax{left:54%;width:33%;bottom:36px}
.hero-party .hero-party-squirtle{left:86%;width:25%;bottom:35px}
.hero-party .hero-party-bulbasaur{left:15%;width:27%;bottom:0}
.hero-party .hero-party-eevee{left:75%;width:26%;bottom:0}
.hero-party .hero-party-pikachu{left:43%;width:28%;bottom:0}

/* Restore the soft illustrated art and repeat the album's subtle inner border. */
.home-tile.primary .home-hero-art:after{content:"";position:absolute;inset:6px;border:1px dashed #a5786035;border-radius:18px;pointer-events:none;z-index:5}
.home-hero-art .hero-party img{filter:drop-shadow(0 3px 1px #a3855b22)}
.hero-party .hero-party-charmander{left:18%;width:26%;bottom:52px}
.hero-party .hero-party-snorlax{left:55%;width:34%;bottom:35px}
.hero-party .hero-party-squirtle{left:86%;width:24%;bottom:33px}
.hero-party .hero-party-bulbasaur{left:14%;width:26%;bottom:0}
.hero-party .hero-party-eevee{left:74%;width:27%;bottom:0}
.hero-party .hero-party-pikachu{left:41%;width:29%;bottom:0}
