/* Fantasy World v0.16 — compact category navigation and separate visual homepage.
   Legacy nav remains in DOM so existing v0.16 add-ons and data-tab handlers still work. */
:root{--world-rose:#a95d76;--world-violet:#8466a2;--world-green:#2e746d;--world-gold:#ad874b}
body{background:linear-gradient(178deg,#fffaf7 0,#f8f4f6 55%,#f2f7f4 100%);color:#4e4653}
header.world-header{position:relative;display:flex;justify-content:space-between;align-items:center;gap:20px;background:rgba(255,251,248,.95);border-bottom:1px solid #e7d7dd;box-shadow:0 4px 24px #6c4b5b0d;padding:15px max(22px,calc((100vw - 1180px)/2))!important;min-height:0}
.world-header .world-status{letter-spacing:2px;font-size:11px;font-weight:800;color:#916f80;display:block;margin-bottom:4px}
.world-header h1{margin:0!important;font-size:clamp(22px,2.4vw,31px)!important;color:#8e546f;line-height:1.25}
.world-header p{font-size:13px;color:#8d7e88;white-space:normal}
.world-header .metrics{max-width:540px;gap:8px}
.world-header .metrics span{background:#fff;border:1px solid #e9dadd;border-radius:13px;padding:7px 11px;font-size:13px;white-space:nowrap;box-shadow:0 3px 12px #6a44530a}
#nav{display:none!important}
nav.world-top-nav{position:sticky;top:0;z-index:30;display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;gap:6px;max-height:none;overflow-x:auto;overflow-y:hidden;padding:10px 16px!important;background:rgba(255,253,249,.97)!important;box-shadow:0 3px 13px #664e5211;border-bottom:1px solid #eadedc;scrollbar-width:thin}
.world-top-nav .world-tab{border:1px solid transparent;border-radius:12px;background:transparent;color:#746775;font-size:14px;white-space:nowrap;min-width:92px;padding:10px 13px;box-shadow:none}
.world-top-nav .world-tab:hover{background:#f8eff2;transform:none}
.world-top-nav .world-tab.active{background:linear-gradient(120deg,#a65e7a,#845f9c);color:#fff;border-color:#925d85;box-shadow:0 4px 13px #99758d30}
.world-sectionbar{position:relative;max-width:1180px;margin:14px auto 0;padding:12px 17px;border:1px solid #e8d8dc;border-radius:16px;background:#ffffffdf;box-shadow:0 5px 18px #79616d10}
.world-section-header{display:flex;align-items:center;gap:13px;justify-content:space-between;margin-bottom:10px}
.world-section-header span{font-weight:900;color:#8e617e;font-size:14px;letter-spacing:.5px}
.world-section-header button{background:#f5eee9;border:1px solid #eadbd1;color:#7b6774;padding:6px 10px;border-radius:8px;font-size:12px}
.world-section-links{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.world-section-links button{font-size:13px;padding:7px 13px;border-radius:100px;background:#f6f3f1;color:#6f6670;border:1px solid #e4dadc;box-shadow:none}
.world-section-links button.active{background:#e9d5df;border-color:#bd879f;color:#7a3d5b}
.world-section-links button:hover{transform:none;background:#efe4eb}
main{max-width:1180px;padding:0 18px}
.quick-links{display:none!important}.world-legacy-note{display:none!important}
.world-welcome{padding:6px 0 8px}.world-intro{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:18px;align-items:stretch;margin:19px 0}
.world-intro>div:first-child{padding:37px 34px;border-radius:24px;background:radial-gradient(circle at 95% 18%,#e1f1e8 0,transparent 37%),linear-gradient(125deg,#f9ecf1,#fff9ed);border:1px solid #ebdce1;box-shadow:0 15px 28px #80657113}
.world-kicker{color:#a26784;font-size:11px;letter-spacing:2.8px;font-weight:900}
.world-intro h2{color:#825671;font-size:clamp(28px,4.5vw,44px);line-height:1.24;margin:13px 0;font-weight:900}
.world-intro p{color:#7f6e7b;line-height:1.95;max-width:580px}
.world-intro-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}
.world-intro-actions button{background:#ae708a;border-color:#ae708a;color:white;padding:12px 19px}
.world-intro-actions button+button{background:#fff;border-color:#e0b4c5;color:#93647c}
.world-illustration{min-height:285px;border:1px solid #d7e5d9;border-radius:24px;background:radial-gradient(circle at 78% 20%,#fff5b5 0,#fff5b500 31%),radial-gradient(circle at 24% 65%,#abd4bd 0,transparent 33%),linear-gradient(150deg,#c7e5d6,#e2e6f8 60%,#f8e6db);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;box-shadow:0 15px 27px #688c7620}
.world-moon{font-size:50px;color:#fffcea;position:absolute;right:27px;top:8px}
.world-house{font-size:108px;filter:drop-shadow(0 15px 8px #6c97773b);line-height:1.2}
.world-flora{font-size:39px;letter-spacing:6px}.world-illustration span{font-size:12px;font-weight:800;color:#567469;letter-spacing:1px;margin-top:13px}
.world-main-groups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:20px 0 22px}
.world-entry{position:relative;border:1px solid #e5d8db;border-radius:21px;background:linear-gradient(150deg,#fff,#fbf4f0);min-height:205px;padding:18px 14px;box-shadow:0 10px 23px #8e748110;display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;color:#69596a;transition:transform .15s,box-shadow .15s;overflow:hidden}
.world-entry.explore{background:linear-gradient(135deg,#fff,#eaf6ef)}
.world-entry.create{background:linear-gradient(135deg,#fff,#fff1dd)}
.world-entry.creatures{background:linear-gradient(135deg,#fff,#f2ebf9)}
.world-entry.fun{background:linear-gradient(135deg,#fff,#eaf0ff)}
.world-entry.mine{background:linear-gradient(135deg,#fff,#fdeef1)}
.world-entry:hover{transform:translateY(-4px);box-shadow:0 16px 29px #8e748128}
.world-entry .world-entry-art{font-size:43px;line-height:1.1;display:block;margin:3px 0 8px}
.world-entry strong{font-size:17px;color:#845975}.world-entry small{font-size:12px;color:#817781;line-height:1.7;font-weight:500}.world-entry-tail{margin-top:auto;font-size:12px;color:#ab6b8b;font-weight:900}
.world-notice{background:#fff8e9;border:1px solid #eddfc7;border-radius:15px;padding:18px 22px;margin-bottom:21px;color:#856a4f}
.world-notice p{margin:6px 0 0;line-height:1.8;font-size:13px}
.page:not(.world-welcome)>.heading:first-child{margin-top:8px}
body>footer{font-size:12px;padding:25px;color:#907c87;text-align:center}
@media(max-width:1050px){.world-main-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){header.world-header{flex-direction:column;align-items:stretch;padding:15px 17px!important}.world-header .metrics{justify-content:flex-start}.world-header .metrics span{font-size:12px}.world-intro{grid-template-columns:1fr}.world-illustration{min-height:190px}.world-house{font-size:77px}.world-top-nav{justify-content:flex-start!important}.world-top-nav .world-tab{min-width:max-content;font-size:13px}.world-sectionbar{margin:11px 12px 0;padding:12px}.world-main-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){.world-main-groups{gap:10px}.world-entry{min-height:181px;padding:13px 10px;border-radius:15px}.world-entry .world-entry-art{font-size:36px}.world-entry strong{font-size:15px}.world-intro>div:first-child{padding:26px 20px}.world-illustration{display:none}.world-section-links{flex-wrap:nowrap;overflow-x:auto;padding:3px 0;scrollbar-width:thin}.world-section-links button{flex:0 0 auto}}
@media(prefers-reduced-motion:reduce){.world-entry{transition:none!important}}

/* 六大分類在手機上全部看得到，不需要猜哪個選項藏在橫向捲軸後面。 */
@media(max-width:600px){
 nav.world-top-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible!important;padding:8px 12px!important}
 .world-top-nav .world-tab{min-width:0;width:100%;font-size:12px!important;padding:9px 3px;white-space:normal}
}


/* 星羽狐使用已確認的九尾狐圖片；只作形象展示，無遊戲資產變更。 */
.world-illustration.starfeather-welcome{position:relative;gap:9px;padding:17px;
 background:radial-gradient(circle at 80% 12%,#fff0aacc,transparent 31%),linear-gradient(135deg,#f5e7ff,#fce9f4 60%,#f5dced);
 border:2px solid #d6b06a;box-shadow:0 12px 25px #977fa32e}
.starfeather-welcome img{display:block;width:min(100%,220px);height:auto;aspect-ratio:1/1;
 border:2px solid #d6b06a;border-radius:21px;object-fit:cover;box-shadow:0 10px 24px #815d7a30}
.starfeather-welcome .fox-mark{position:absolute;top:12px;left:18px;color:#b57932;font-size:21px}
.starfeather-welcome span:last-child{margin-top:2px;color:#76497c;font-size:13px;letter-spacing:.4px}
.starfeather-showcase{display:flex;align-items:center;gap:17px;margin:0 0 18px;padding:15px;
 background:linear-gradient(115deg,#fffaf4,#f8eafa);border:1px solid #d8b26d;border-radius:17px;color:#604a68;box-shadow:0 8px 21px #886b9017}
.starfeather-showcase img{display:block;width:120px;height:120px;flex:none;object-fit:cover;border:2px solid #d6b06a;border-radius:16px}
.starfeather-showcase strong{font-weight:900;color:#805382;font-size:17px}
.starfeather-showcase p{font-size:13px;line-height:1.75;color:#746579;margin:7px 0 0}
@media(max-width:600px){.starfeather-showcase{gap:11px;padding:11px}.starfeather-showcase img{width:94px;height:94px}.starfeather-showcase strong{font-size:14px}.starfeather-showcase p{font-size:12px}.starfeather-welcome img{width:min(100%,190px)}}
