/* Home: status pills, world banner with the party island, quest cards (NEW / COMPLETE!!), 6-item nav. */
.resources{gap:8px;padding:0 10px;background:#f4fafc}
.resources>span{display:inline-flex;align-items:center;gap:4px;background:#fff;border:1px solid #cfe3ec;border-radius:20px;padding:3px 10px;font-size:10px;color:#5b8194;white-space:nowrap}
.resources>span b{margin-left:1px;color:#2c5d77;font-size:13px}
.resources>span:first-child{background:linear-gradient(#ffb454,#f38a1e);border-color:#f7c27a;color:#fff}.resources>span:first-child b{color:#fff}
.resources>span:last-child{margin-left:auto;background:transparent;border:0;padding:0;color:#7aa2b1}

.home-scene{height:236px;background:linear-gradient(0deg,#0d3a3ee6 0%,#0f3f45aa 40%,#1a5a5322 100%),url('forest.png') center 40%/cover}
.home-island{position:absolute;left:50%;top:16px;transform:translateX(-50%);width:196px;height:150px;border-radius:50%;background:radial-gradient(ellipse at 50% 42%,#a8e27a,#5cb861 62%,#3f9a52 80%,#2c6f4b 100%);box-shadow:0 12px 0 #2c5f3f,0 22px 0 #1d3f34,0 30px 28px #0a2a2a99;border:4px solid #3f8e56;overflow:visible}
.home-island::before{content:'';position:absolute;inset:14px 18px;border-radius:50%;border:2px dashed #cdf5b955}
.home-party{position:absolute;left:0;right:0;bottom:22px;display:flex;justify-content:center;align-items:end;gap:2px;filter:drop-shadow(0 4px 2px #173e3988)}
.home-party canvas{width:62px;height:62px;image-rendering:pixelated}.home-party canvas:first-child{width:76px;height:76px;transform:translateY(10px);order:1}.home-party canvas:nth-child(2){order:0}.home-party canvas:nth-child(3){order:2}
.world-banner{position:absolute;left:16px;bottom:14px;right:16px;color:#fff;text-shadow:0 2px 6px #062a2a,0 0 14px #0c3e3a}
.world-banner .world-tag{position:static;display:inline-block;border:0;background:transparent;padding:0 0 0 30px;font-size:11px;letter-spacing:3px;font-weight:700;color:#e8f6d2}
.world-banner .world-tag::before{content:'';position:absolute;left:0;top:7px;width:22px;height:2px;background:#e8f6d2}
.world-banner h2{margin:2px 0 0;font-size:28px;letter-spacing:4px;font-weight:900;line-height:1.2}
.world-banner p{margin:4px 0 0;font-size:11px;color:#d7ebe3}
.home-continue{width:calc(100% - 24px);margin:10px 12px 4px;background:linear-gradient(#ffe5a0,#ecc35d);color:#534229;border-color:#ffeead;box-shadow:0 3px 0 #ad8d42;padding:12px 16px}

.home-quests{display:flex;flex-direction:column;gap:12px;padding:8px 12px 4px}
.home-quest{position:relative;display:flex;align-items:stretch;background:#fff;border:1px solid #cfe1ea;border-radius:8px 30px 8px 8px;box-shadow:0 3px 0 #d5e5ec;overflow:visible;min-height:88px}
.home-quest-main{flex:1;display:flex;align-items:center;gap:12px;background:transparent;border:0;padding:16px 12px 12px 14px;text-align:left;color:inherit;min-width:0;border-radius:8px}
.home-quest-main:disabled{opacity:.55}
.quest-ribbon{position:absolute;left:-4px;top:-10px;padding:2px 10px;font-size:10px;font-weight:900;font-style:italic;letter-spacing:1px;color:#fff;border-radius:3px;box-shadow:0 2px 0 #0002;z-index:1}
.quest-ribbon.new{background:linear-gradient(#ff6fa8,#f0387f)}.quest-ribbon.complete{background:linear-gradient(#8ee66b,#47c14a)}
.quest-thumb{position:relative;flex-shrink:0;width:64px;height:64px;border-radius:6px;overflow:hidden;border:2px solid #d8e6ec;background:#668768}
.quest-thumb canvas{display:block;width:100%;height:100%;image-rendering:pixelated}
.quest-thumb small{position:absolute;left:0;right:0;bottom:0;background:#1d3d4acc;color:#fff;font-size:8px;letter-spacing:2px;text-align:center;padding:2px 0}
.quest-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.quest-body>small{font-size:9px;letter-spacing:2px;color:#7f9cab;font-weight:700}
.quest-stage{font-size:11px;color:#3e6579}
.quest-name{font-size:16px;font-weight:800;color:#24475a}
.quest-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.chip{display:inline-flex;align-items:center;gap:3px;font-size:10px;padding:2px 7px;border-radius:3px;background:#eef4f7;color:#5b7c8d}
.chip.element{background:#fff;border:1px solid var(--el);color:#4a5f6d}.chip.element b{color:var(--el)}
.quest-locked{margin:4px 0 0;font-size:11px;color:#8ea6b3}
.quest-aside{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex-shrink:0;padding:8px 10px 8px 4px;min-width:64px}
.quest-first-reward{display:flex;flex-direction:column;align-items:center;font-size:10px;color:#6a4e1e}
.quest-first-reward small{font-size:9px;letter-spacing:1px;color:#8c6a2c}
.quest-first-reward .reward-icon{width:36px;height:36px;font-size:20px;margin:2px 0}
.quest-first-reward b{font-size:12px}
.quest-grade-badge{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-family:inherit;font-style:italic;font-weight:bold;font-size:20px;color:#f4c65a;border:3px double #f0c66a;background:radial-gradient(#fff9e4,#fff);box-shadow:0 0 0 2px #fff,0 2px 4px #0002}
.quest-info{width:34px;height:34px;border-radius:50%;font-size:14px;font-weight:900;font-family:inherit;color:#fff;background:#2fbfd6;border-color:#2fbfd6}
.home-quest.next{background:linear-gradient(100deg,#ffb35c,#ff8a2b 70%,#ff9d45);border-color:#ffc27c;box-shadow:0 3px 0 #d3771f}
.home-quest.next .quest-body>small,.home-quest.next .quest-stage,.home-quest.next .quest-name{color:#fff;text-shadow:0 1px 2px #a0500a}
.home-quest.next .chip{background:#ffffffd9;color:#7a4a15}.home-quest.next .chip.element{border-color:#fff3}
.home-quest.next .quest-aside{background:#ffffffee;border-radius:0 28px 6px 0;margin:8px 8px 8px 0;padding:6px 8px}
.home-quest.cleared{border-color:#bfe3ee}
.home-quest.cleared .quest-aside{background:#2fbfd6;color:#fff;border-radius:0 28px 6px 0;margin:0;padding:8px 8px}
.home-quest.locked{background:#eef2f4;box-shadow:none}
.home-all-quests{align-self:center;font-size:12px;padding:8px 14px}

.reward-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:8px;background:#fff;border:1px solid #d9e6ec;box-shadow:0 2px 0 #cfdde3;font-size:24px;line-height:1}
.reward-icon.stone{color:#3fb7d8;background:radial-gradient(circle at 50% 40%,#fff,#e6f7ff)}
.reward-icon.mana{color:#f0a63a;background:radial-gradient(circle at 50% 40%,#fff,#fff2dd)}

nav{height:64px;background:linear-gradient(#fff,#f3f8fb);border-top:1px solid #d3e1e8}
nav button{position:relative;font-size:10px;color:#6f8d9c;border-right:0;padding:8px 0 5px;letter-spacing:.5px}
nav button span{font-size:22px;line-height:26px}
nav button.selected{color:#f08a1e;border-bottom:0;background:transparent}
nav button.selected::before{content:'';position:absolute;top:0;left:14%;right:14%;height:4px;border-radius:0 0 4px 4px;background:#f08a1e}
#nav-back{color:#4d6b7a;border-right:1px solid #e1ebf0}
@media(max-width:400px){nav button{font-size:9px}nav button span{font-size:20px;line-height:24px}.world-banner h2{font-size:24px}.home-island{width:176px;height:136px}.home-party canvas{width:54px;height:54px}.home-party canvas:first-child{width:68px;height:68px}}

/* Quest view: world selection cards and the per-world banner. */
.world-scene{height:150px;background:linear-gradient(0deg,#0d3a3ee6 0%,#0f3f45aa 45%,transparent 100%),linear-gradient(var(--tint,transparent),var(--tint,transparent)),url('forest.png') center 40%/cover}
.world-scene .world-banner{bottom:12px}.world-scene .world-banner h2{font-size:24px}
.world-back{position:absolute;left:12px;top:12px;width:auto;padding:7px 12px;font-size:12px;color:#fff;border-color:#ffffff88;background:#0a2a2a88;border-radius:20px}
.world-card{background:linear-gradient(100deg,#fff,#f2fbfd)}
.world-card.next{background:linear-gradient(100deg,#ffb35c,#ff8a2b 70%,#ff9d45)}
.world-card .quest-aside b,.home-quest.training .quest-aside b{font-size:26px;color:#87bccc}
.world-card.next .quest-aside b{color:#fff}
.home-quest.training{border-left:5px solid #aea2c8}
#quests-view .view-heading{padding:18px 16px 4px}#quests-view .view-heading p{color:#4f8a9d;font-weight:700}
#nav-back[hidden],#nav-home[hidden]{display:none}
#nav-back{color:#f08a1e}
