[hidden]{display:none!important}.brand h1 small{font-size:10px;letter-spacing:.16em;margin-left:8px;color:#7950b5}.brand p#summary{font-size:11px;opacity:.85;margin-top:6px}#top{z-index:3}#finder{position:fixed;left:14px;top:108px;width:240px;z-index:4}#search{width:100%;border:1px solid #b8a8d9;border-radius:12px;padding:10px 13px;font:12px system-ui;background:var(--panel);color:inherit;outline-color:#9945ff}#results{margin-top:4px;padding:5px;background:var(--panel);backdrop-filter:blur(10px);border-radius:12px;max-height:45vh;overflow:auto;touch-action:pan-y}#results button{display:block;width:100%;text-align:left;border:0;border-radius:7px;font:12px system-ui;background:none;color:inherit;padding:10px;cursor:pointer}#results button:hover{background:#9945ff22}.chip{border:0;border-bottom:3px solid #ad9bd0;font-size:12px}.label{font-size:12px;padding:4px 8px;z-index:1}.label.family{background:#ffffffe0;border-bottom:3px solid #aaa;border-radius:8px;font-weight:800;font-size:12px;box-shadow:0 2px 9px #24345122}.label.family::after{display:none}#src a{color:inherit;text-decoration:none}#card{z-index:5;max-height:calc(100dvh - 180px);overflow:auto;touch-action:pan-y}#card .eyebrow{font-size:10px;letter-spacing:.07em;color:#7f4cc7;margin:0 0 7px;font-weight:800}#card .desc{user-select:text}#bottom{z-index:3}#loading{z-index:10}#loading.done{visibility:hidden;transition:opacity .3s,visibility .3s}#pad{z-index:4}[data-theme=night] #search,[data-theme=night] #results{--panel:#1c1a46eb;color:#f3efff}[data-theme=night] .label.family{background:#28244ee8;color:#f3efff}[data-theme=night] .brand h1 small,[data-theme=night] #card .eyebrow{color:#b6a6ff}#sky-stars{background-image:radial-gradient(1px 1px at 10% 8%,white,transparent),radial-gradient(1px 1px at 70% 19%,white,transparent),radial-gradient(2px 2px at 36% 5%,white,transparent);background-size:183px 131px}
@media(max-width:700px){#top{padding:10px 10px 0;gap:6px;flex-wrap:wrap}.brand{padding:9px 11px}.brand h1{font-size:15px}.brand p{font-size:9px}.brand p#summary{font-size:9px;margin-top:4px}nav{gap:5px;flex-wrap:nowrap}nav button{padding:8px;font-size:11px;border-radius:10px}#finder{top:112px;left:10px;width:190px}#search{padding:8px 10px}#card{bottom:105px;max-height:52dvh}#src{font-size:8px;line-height:1.6;text-align:center}#chips{gap:5px}.chip{font-size:11px;padding:7px 10px}.label.family{font-size:10px}.label b{font-size:11px}.label span{font-size:9px}#pad{bottom:105px;width:92px;height:92px}}
@media(prefers-reduced-motion:reduce){.blocks i{animation:none}*{transition:none!important}}
.label{max-width:240px}.label b{max-width:100%;overflow:hidden;text-overflow:ellipsis}
#src{padding:3px 9px;border-radius:8px;background:rgba(24,28,55,.62);text-shadow:none;opacity:1}
@media(max-width:700px){#finder{top:120px}}
/* 自キャラの居場所: 頭上の「あなた」（散歩）・ピン（俯瞰）。画面外なら画面端に方向の矢印 */
#me{position:fixed;left:0;top:0;z-index:6;border:0;padding:0;background:none;font:inherit;pointer-events:none;color:#fff;will-change:transform}
#me b{position:absolute;left:0;bottom:0;transform:translate(-50%,0);white-space:nowrap;font-size:11px;font-weight:800;letter-spacing:.04em;padding:3px 8px 4px;border-radius:999px;background:#9945ff;box-shadow:0 2px 0 #5b25b0,0 4px 12px #2a145a55;transition:font-size .2s,padding .2s}
#me i{position:absolute;left:-6px;bottom:-7px;width:12px;height:12px;background:#9945ff;transform-origin:50% 50%;clip-path:polygon(0 0,100% 0,50% 100%)}
#me.walk b{bottom:6px}#me.walk i{bottom:-1px}
#me.walk:not(.hid):not(.off) b{font-size:10px;padding:2px 7px 3px;opacity:.92}
#me.hid b{font-size:13px;padding:4px 11px 5px;background:#14c98a;box-shadow:0 2px 0 #0b7d55,0 0 0 3px #ffffffcc,0 6px 16px #0b3d2a66;animation:me-pulse 1.2s ease-in-out infinite}#me.hid i{background:#14c98a}
#me.map{pointer-events:auto;cursor:pointer}
#me.map b{bottom:24px;font-size:13px;padding:5px 12px 6px;box-shadow:0 2px 0 #5b25b0,0 0 0 3px #ffffffdd,0 6px 18px #2a145a66}
#me.map i{left:-9px;bottom:0;width:18px;height:26px;clip-path:polygon(50% 100%,0 35%,15% 8%,50% 0,85% 8%,100% 35%);box-shadow:none;animation:me-bob 1.4s ease-in-out infinite}
#me.map::after{content:"";position:absolute;left:-5px;top:-5px;width:10px;height:5px;border-radius:50%;background:#20184a55}
#me.off b{bottom:auto;top:0;transform:translate(-50%,-50%);font-size:11px;padding:3px 9px 4px}
#me.off i{left:-16px;top:-16px;bottom:auto;width:32px;height:32px;clip-path:polygon(100% 50%,0 0,24% 50%,0 100%);animation:none;background:#fff}
#me.off i::after{content:"";position:absolute;inset:5px 4px 5px 3px;background:#9945ff;clip-path:polygon(100% 50%,0 0,24% 50%,0 100%)}
#me.off.map i,#me.off.walk i{transform-origin:50% 50%}
#me.off::after{display:none}
#me.off i{margin:0;translate:0 0}
@keyframes me-pulse{50%{transform:translate(-50%,-3px)}}
@keyframes me-bob{50%{translate:0 -4px}}
@media(prefers-reduced-motion:reduce){#me b,#me i{animation:none!important}}
/* 住人のカード（自キャラ・NPC・参加者をタップ） */
#who{position:fixed;left:14px;bottom:118px;z-index:5;width:min(290px,calc(100vw - 28px));--panel:rgba(255,255,255,.9);background:var(--panel);color:#25213f;border-radius:16px;padding:12px 14px 12px;box-shadow:0 4px 0 rgba(43,37,80,.16),0 14px 34px rgba(43,37,80,.22);backdrop-filter:blur(6px);transform:translateY(8px) scale(.97);opacity:0;pointer-events:none;transition:.16s;font:13px system-ui}
#who.show{transform:none;opacity:1;pointer-events:auto}
#who .x{position:absolute;right:8px;top:6px;border:0;background:none;font-size:20px;line-height:1;color:inherit;cursor:pointer;opacity:.6;padding:4px 6px}
#who .who-head{margin:0 26px 8px 0;display:flex;align-items:center;gap:7px;min-width:0}
#who .nm{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#who .badge{flex:none;font-size:10px;font-weight:800;letter-spacing:.06em;padding:2px 7px 3px;border-radius:999px;color:#fff;background:#8b87a8}
#who .badge.npc{background:#e9e6f5;color:#5c5880;box-shadow:inset 0 0 0 1px #c9c3e6}
#who .badge.self{background:#14c98a}#who .badge.user{background:#f2a91f}
#who dl{margin:0 0 8px;display:grid;gap:5px}#who dl div{display:grid;grid-template-columns:3.6em 1fr;gap:6px}#who dt{font-size:11px;opacity:.6}#who dd{margin:0;font-weight:600;overflow-wrap:anywhere}
#who .note{margin:6px 0 8px;font-size:11px;opacity:.68;line-height:1.45}
#who .rename{display:flex;gap:6px;align-items:end;margin:4px 0 0}#who .rename label{flex:1;display:grid;gap:3px;font-size:11px;opacity:.85}
#who .rename input{border:1px solid #b8a8d9;border-radius:9px;padding:7px 9px;font:13px system-ui;background:#fff;color:#25213f;min-width:0}
#who button{font:inherit;cursor:pointer}#who .rename button,#who .fol{border:0;border-radius:10px;padding:8px 12px;font-weight:700;background:#9945ff;color:#fff}
#who .rename button{background:#5c5880}#who .actions{display:flex}#who .fol{flex:1}#who .fol.on{background:#14c98a}
[data-theme=night] #who{--panel:rgba(28,26,70,.9);color:#f3efff}[data-theme=night] #who .rename input{background:#1c1a46;color:#f3efff;border-color:#5d52a0}[data-theme=night] #who .badge.npc{background:#3a3570;color:#d9d3ff;box-shadow:none}
@media(max-width:700px){#who{left:10px;right:10px;bottom:105px;width:auto}}
@media(pointer:coarse){[data-mode=walk] #who{left:132px;right:10px;width:auto}}
/* カードを開いている住人の名札（NPC には小さな印） */
#tag{position:fixed;left:0;top:0;z-index:5;pointer-events:none;will-change:transform}
#tag span{position:absolute;left:0;bottom:7px;transform:translateX(-50%);display:flex;align-items:center;gap:5px;white-space:nowrap;background:#fff;border-radius:999px;padding:3px 9px 4px 4px;box-shadow:0 2px 0 #c9c3e6,0 4px 12px #2a145a40}
#tag.user span{padding-left:9px;box-shadow:0 2px 0 #f2a91f,0 4px 12px #2a145a40}
#tag span::after{content:"";position:absolute;left:50%;bottom:-6px;margin-left:-5px;width:10px;height:7px;background:#fff;clip-path:polygon(0 0,100% 0,50% 100%)}
#tag b{font:800 11px system-ui;color:#2b2650}
#tag i{font:800 9px system-ui;font-style:normal;letter-spacing:.06em;color:#6a6494;background:#ebe8f7;border-radius:999px;padding:2px 6px}
/* 自分の着せ替え画面（wardrobe.mjs） */
#who .dress{width:100%;margin:2px 0 6px;border:0;border-radius:10px;padding:8px 12px;font-weight:800;background:linear-gradient(135deg,#ff8fc0,#9945ff);color:#fff}
#wardrobe{position:fixed;right:14px;top:74px;bottom:14px;z-index:8;width:368px;display:flex;flex-direction:column;gap:8px;--panel:rgba(255,255,255,.94);background:var(--panel);color:#25213f;border-radius:18px;padding:12px;box-shadow:0 5px 0 rgba(43,37,80,.16),0 18px 40px rgba(43,37,80,.26);backdrop-filter:blur(6px);font:13px system-ui;opacity:0;transform:translateX(12px);transition:.18s;overflow:hidden}
#wardrobe.show{opacity:1;transform:none}
#wardrobe header{display:flex;align-items:baseline;gap:8px;padding-right:26px;position:relative}#wardrobe h2{margin:0;font-size:15px}#wardrobe header small{font-size:10.5px;opacity:.62;font-weight:600}
#wardrobe .x{position:absolute;right:-4px;top:-6px;border:0;background:none;font-size:22px;line-height:1;color:inherit;cursor:pointer;opacity:.6;padding:4px 6px}
#wardrobe .stage{position:relative;flex:0 0 auto;height:min(300px,34dvh);border-radius:14px;background:radial-gradient(ellipse at 50% 40%,#fff8e8,#e7f3ff 70%);overflow:hidden;touch-action:none}
#wardrobe .stage canvas{width:100%;height:100%;display:block;cursor:grab}
#wardrobe .hint{position:absolute;left:10px;top:8px;font-size:10px;font-weight:700;opacity:.5;pointer-events:none}
#wardrobe .stage-tools{position:absolute;right:8px;bottom:8px;display:flex;gap:5px}
#wardrobe button{font:inherit;cursor:pointer}
#wardrobe .stage-tools button{border:0;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:800;background:rgba(255,255,255,.85);color:#25213f;box-shadow:0 2px 0 rgba(43,37,80,.15)}
#wardrobe .stage-tools button.on{background:#9945ff;color:#fff}
#wardrobe .wslots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
#wardrobe .wslots button,#wardrobe .wopts button{border:0;border-radius:10px;padding:6px 3px;background:rgba(153,69,255,.11);color:inherit;font-weight:800;font-size:12px}
#wardrobe .wslots button em{display:block;font-style:normal;font-size:9.5px;font-weight:700;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#wardrobe .wslots button.on{background:linear-gradient(135deg,#9945ff,#6d5cff);color:#fff}
#wardrobe .wopts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow-y:auto;min-height:0;flex:1 1 auto;align-content:start}
#wardrobe .wopts button{padding:9px 4px;font-size:12.5px}#wardrobe .wopts button.on{outline:3px solid #14c98a;background:rgba(20,241,149,.2)}
#wardrobe .wcols{display:flex;flex-wrap:wrap;gap:6px;min-height:28px}
#wardrobe .wcols button{width:27px;height:27px;border-radius:9px;border:2px solid rgba(255,255,255,.95);box-shadow:0 2px 0 rgba(43,37,80,.25);padding:0}
#wardrobe .wcols button.on{outline:3px solid #14c98a;transform:scale(1.08)}#wardrobe .wcols button:disabled{opacity:.3}
#wardrobe .wact{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:6px}
#wardrobe .wact button{border:0;border-radius:11px;padding:9px 6px;font-weight:800;background:rgba(43,37,80,.1);color:inherit}
#wardrobe .wact .save{background:#9945ff;color:#fff;box-shadow:0 2px 0 #5b25b0}#wardrobe .wact button:disabled{opacity:.4}
[data-theme=night] #wardrobe{--panel:rgba(28,26,70,.94);color:#f3efff}[data-theme=night] #wardrobe .stage{background:radial-gradient(ellipse at 50% 40%,#3b3880,#1c1a46 70%)}
[data-dress=on] #who,[data-dress=on] #card{display:none}
@media(max-width:700px){#wardrobe{left:8px;right:8px;top:auto;bottom:8px;width:auto;height:min(76dvh,640px);padding:10px;gap:6px}
  #wardrobe .stage{height:30dvh}#wardrobe .wslots button{font-size:11px;padding:6px 2px}#wardrobe .wslots button em{display:none}
  #wardrobe .wopts{grid-template-columns:repeat(3,minmax(0,1fr))}#wardrobe .wopts button{font-size:11.5px;padding:8px 2px}#wardrobe .wcols button{width:25px;height:25px}
  [data-dress=on] #pad,[data-dress=on] #bottom{display:none}}
/* 画面上部の時計（UTC 基準の自動昼夜）・散歩中の地区名 */
#sky-dusk{position:absolute;inset:0;opacity:calc(var(--dusk,0)*.92);background:linear-gradient(#3d3f8f 0%,#a1609a 9%,#f0796a 17%,#ff9d52 26%,#ffc77d 40%,#ffe1b0 100%)}
[data-sun=dawn] #sky-dusk{background:linear-gradient(#5a6fc0 0%,#c58ab8 9%,#f7a0a8 17%,#ffbb8c 27%,#ffd9a6 42%,#fff2d6 100%)}
#hud{position:fixed;right:14px;top:max(60px,calc(env(safe-area-inset-top) + 48px));z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:9px;pointer-events:none}
#clock{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px 10px;max-width:calc(100vw - 28px);padding:6px 11px;border-radius:12px;background:var(--panel);color:var(--ink);box-shadow:0 3px 0 rgba(43,37,80,.14);font:600 12px system-ui;font-variant-numeric:tabular-nums;pointer-events:auto;white-space:nowrap}
#clock .ph{display:flex;align-items:center;gap:5px;font-weight:800}#clock .ph i{width:9px;height:9px;border-radius:50%;background:#ffbf2e;box-shadow:0 0 0 2px #ffbf2e44}
#clock[data-phase=night] .ph i{background:#8a97ff;box-shadow:0 0 0 2px #8a97ff44}#clock[data-phase=dusk] .ph i{background:#ff7d45;box-shadow:0 0 0 2px #ff7d4555}#clock[data-phase=dawn] .ph i{background:#ff98bd;box-shadow:0 0 0 2px #ff98bd55}
#clock em{font-style:normal;font-weight:600;opacity:.66;margin-left:2px}
#clock .tm{display:flex;gap:8px;opacity:.9}#clock .tm b{font-weight:800}#clock s{text-decoration:none}#clock s+s{display:none}
#clock .auto{border:0;border-radius:9px;padding:4px 9px;font:800 11px system-ui;background:#9945ff;color:#fff;cursor:pointer}
#area{display:flex;align-items:center;gap:6px;padding:5px 11px 5px 8px;border-radius:999px;background:var(--panel);color:var(--ink);box-shadow:0 3px 0 rgba(43,37,80,.14);font:800 12px system-ui;pointer-events:none;max-width:60vw}
#area i{width:11px;height:11px;border-radius:3px;box-shadow:0 0 0 2px #fff8;background:var(--ac,#9945ff);flex:none}#area b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-theme=night] #clock,[data-theme=night] #area{--panel:rgba(28,26,70,.86);color:#f3efff}
#area-banner{position:fixed;left:50%;top:clamp(128px,19vh,190px);z-index:5;transform:translateX(-50%);text-align:center;pointer-events:none;opacity:0;padding:14px 46px 16px;background:radial-gradient(closest-side,rgba(18,16,48,.42),rgba(18,16,48,0));white-space:nowrap}
#area-banner small{display:block;font:800 11px system-ui;letter-spacing:.24em;color:#fff;opacity:.9;text-shadow:0 1px 3px rgba(0,0,0,.5)}
#area-banner b{display:block;margin-top:3px;font:900 34px/1.15 system-ui;letter-spacing:.1em;color:#fff;text-shadow:0 2px 0 rgba(20,16,50,.35),0 0 16px rgba(20,16,50,.45)}
#area-banner::after{content:"";display:block;margin:8px auto 0;width:78%;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,var(--ac,#9945ff) 20%,#fff 50%,var(--ac,#9945ff) 80%,transparent)}
#area-banner.show{animation:area-in 3.5s ease-out forwards}
@keyframes area-in{0%{opacity:0;transform:translate(-50%,12px) scale(.96);filter:blur(5px)}14%{opacity:1;transform:translate(-50%,0) scale(1);filter:none}76%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-8px)}}
@media(prefers-reduced-motion:reduce){#area-banner.show{animation:none;opacity:1}}
/* サービスのカード・着せ替えは時計と地区名の下から */
@media(min-width:701px){#card{top:136px;max-height:calc(100dvh - 250px)}#wardrobe{top:98px}[data-dress=on] #area{display:none}}
/* iPad 縦など: のぞき見中のボタンは2段目に（ロゴと重ならない幅に） */
@media(min-width:701px) and (max-width:1100px){#clock{max-width:calc(100vw - 360px)}#clock .auto{flex-basis:100%}#card{top:170px;max-height:calc(100dvh - 290px)}}
@media(max-width:700px){
  #hud{display:contents}
  #clock{position:fixed;z-index:3;top:120px;right:10px;left:auto;max-width:calc(100vw - 218px);flex-direction:column;align-items:flex-end;gap:1px;padding:5px 9px;font-size:11px;border-radius:11px}
  #clock .tm{gap:6px;font-size:10px}#clock s{display:none}#clock s+s{display:inline}#clock .auto{font-size:10px;padding:3px 7px;margin-top:3px;white-space:normal}
  #area{position:fixed;z-index:3;left:10px;right:auto;top:162px;font-size:11px;max-width:calc(100vw - 230px)}
  #area-banner{top:200px;padding:10px 26px 12px}#area-banner b{font-size:26px}#area-banner small{font-size:10px}
  [data-dress=on] #clock,[data-dress=on] #area{display:none}}
/* 島の元気度（画面上部の要約の2行目）: 段階の色の点・段階名・ひと言 */
#summary .health{display:block;margin-top:3px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#summary .health i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:0;background:#8b87a8;box-shadow:0 0 0 2px #8b87a833}
#summary .health b{font-weight:900;margin-left:2px}#summary .health em{font-style:normal;opacity:.8}#summary .health small{font-size:.9em;padding:0 5px;border-radius:6px;background:#ffbf2e;color:#3a2a00;margin-left:3px}
#summary .health[data-tier=boom] i{background:#ff5fa2;box-shadow:0 0 0 2px #ff5fa244,0 0 8px #ff5fa2}#summary .health[data-tier=boom] b{color:#d6337a}
#summary .health[data-tier=normal] i{background:#14c98a;box-shadow:0 0 0 2px #14c98a44}#summary .health[data-tier=normal] b{color:#0f9a6b}
#summary .health[data-tier=winter] i{background:#7fb8ff;box-shadow:0 0 0 2px #7fb8ff55}#summary .health[data-tier=winter] b{color:#3d7fd6}
#summary .health[data-tier=decline] i{background:#a08a6a;box-shadow:0 0 0 2px #a08a6a44}#summary .health[data-tier=decline] b{color:#8a6f48}
[data-theme=night] #summary .health b{filter:brightness(1.6)}
/* 名札は UI より下の層に（重なる位置の名札は island.mjs が隠す） */
#labels{z-index:2}
/* 免責と出典（画面の下の端）・「i」で詳しい説明 */
#src{display:flex;align-items:center;gap:7px;pointer-events:auto;max-width:calc(100vw - 20px)}
#src>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#src a{text-decoration:underline;text-underline-offset:2px}
#info{flex:none;width:17px;height:17px;border-radius:50%;border:1.5px solid #fff;background:none;color:#fff;font:italic 800 11px/1 Georgia,serif;padding:0;cursor:pointer;display:grid;place-items:center}
#info:hover,#info:focus-visible{background:#fff;color:#2b2650;outline:none}
#about{position:fixed;inset:0;z-index:12;display:grid;place-items:center;padding:16px;background:rgba(18,16,48,.42);backdrop-filter:blur(2px)}
#about .panel{position:relative;width:min(520px,100%);max-height:calc(100dvh - 32px);overflow:auto;touch-action:pan-y;background:rgba(255,255,255,.97);color:#25213f;border-radius:18px;padding:18px 20px 16px;box-shadow:0 5px 0 rgba(43,37,80,.18),0 18px 44px rgba(20,16,50,.35);font:13px/1.6 system-ui}
#about h2{margin:0 30px 10px 0;font-size:17px}#about h3{margin:12px 0 4px;font-size:12px;letter-spacing:.06em;color:#7f4cc7}
#about p{margin:0 0 8px}#about ul{margin:0;padding-left:18px}#about li{margin:2px 0}#about a{color:#6a35d6}#about .links{margin-top:12px;font-size:12px}
#about .x{position:absolute;right:10px;top:8px;border:0;background:none;font-size:22px;line-height:1;color:inherit;cursor:pointer;opacity:.6;padding:4px 7px}
[data-theme=night] #about .panel{background:rgba(28,26,70,.97);color:#f3efff}[data-theme=night] #about a{color:#c4b3ff}[data-theme=night] #about h3{color:#b6a6ff}
@media(max-width:700px){#src{font-size:9px}#info{width:18px;height:18px}#about .panel{font-size:12.5px;padding:16px 16px 14px}}
/* スマホ: 元気度の行を足した分、キャッチコピーの行を隠してロゴ欄の高さを変えない（ボタン・検索・時計の位置がずれないように） */
@media(max-width:700px){#sub{display:none}#summary .health{margin-top:2px}}
#about p b{font-weight:800;color:#3b1d78}[data-theme=night] #about p b{color:#fff}
/* ── スタンプラリー・クイズ・アイテムの解放・再訪（2026-11-16）── */
nav #pass b{font-weight:900;color:#7f4cc7;margin-left:2px}[data-theme=night] nav #pass b{color:#cdb5ff}
nav #dress.has-fresh{position:relative}nav #dress.has-fresh::after{content:"";position:absolute;right:3px;top:3px;width:9px;height:9px;border-radius:50%;background:#ff4f8b;box-shadow:0 0 0 2px #fff}
/* 名札の印: NEW・成長中・今日の主役 */
.label .bd{font:900 9px/1 system-ui;font-style:normal;letter-spacing:.06em;border-radius:999px;padding:3px 6px 3px;margin-bottom:2px;color:#fff;white-space:nowrap}
.bd.new{background:#ff4f8b}.bd.grow{background:#14b87a}.bd.star{background:linear-gradient(135deg,#ff9a3d,#ff4f8b)}
#card .extra{margin:8px 0 4px;display:grid;gap:5px;font-size:12px}#card .extra p{margin:0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
#card .extra .bd{font:900 10px/1 system-ui;letter-spacing:.05em;padding:4px 7px;border-radius:999px;color:#fff}
#card .stp{font-weight:700;opacity:.75}#card .stp.on{opacity:1;color:#0f9a64}[data-theme=night] #card .stp.on{color:#5ff0b4}
/* 今日の主役 */
#star{pointer-events:auto;display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:7px;row-gap:0;text-align:left;border:0;cursor:pointer;padding:6px 12px 7px;border-radius:14px;
  background:linear-gradient(135deg,#fff6e8,#ffe3ef);color:#3a2140;box-shadow:0 3px 0 #ff9a3d55,0 6px 16px rgba(255,79,139,.25);font:700 12px system-ui;max-width:min(300px,calc(100vw - 28px))}
#star small{grid-column:1/3;font:900 10px system-ui;letter-spacing:.08em;color:#d4366f}#star b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#star em{font-style:normal;font-weight:900;color:#0f9a64}
[data-theme=night] #star{background:linear-gradient(135deg,#3a2763,#4a2350);color:#fff1f7}[data-theme=night] #star small{color:#ff9cc0}[data-theme=night] #star em{color:#5ff0b4}
[data-dress=on] #star{display:none}
/* 案内人の「？」 */
  margin:0;padding:0;background:none;font:inherit;translate:-50% -100%;animation:gq-bob 1.6s ease-in-out infinite}
@keyframes gq-bob{0%,100%{margin-top:0}50%{margin-top:-5px}}
/* お知らせ */
#toast{position:fixed;left:50%;bottom:132px;z-index:7;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 16px 9px;border-radius:14px;
  background:rgba(37,33,63,.92);color:#fff;box-shadow:0 6px 20px rgba(20,16,50,.3);font:600 12px system-ui;pointer-events:none;max-width:calc(100vw - 28px);text-align:center}
#toast b{font-size:13px;font-weight:800}#toast span{opacity:.8;font-size:11px}
#toast.show{animation:toast-in 3.2s ease-out forwards}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,10px)}5%,85%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}
/* シート（パスポート・クイズ） */
#sheet{position:fixed;inset:0;z-index:11;display:grid;place-items:center;padding:16px;background:rgba(18,16,48,.38);backdrop-filter:blur(2px)}
#sheet .panel{position:relative;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow:auto;touch-action:pan-y;background:rgba(255,255,255,.97);color:#25213f;border-radius:18px;padding:16px 18px 14px;
  box-shadow:0 5px 0 rgba(43,37,80,.18),0 18px 44px rgba(20,16,50,.35);font:13px/1.55 system-ui}
#sheet .panel.quiz{width:min(460px,100%)}
#sheet .x{position:absolute;right:8px;top:6px;border:0;background:none;font-size:22px;line-height:1;color:inherit;cursor:pointer;opacity:.6;padding:4px 8px}
#sheet h2{margin:0 30px 6px 0;font-size:17px}#sheet h3{margin:14px 0 4px;font-size:14px}#sheet .note{margin:0 0 10px;font-size:11.5px;opacity:.72}
#sheet button{font:inherit;cursor:pointer}
#sheet .primary{display:block;width:100%;margin-top:10px;border:0;border-radius:12px;padding:10px 12px;font-weight:800;background:#9945ff;color:#fff;box-shadow:0 2px 0 #5b25b0}
#sheet .sum{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}#sheet .sum div{background:rgba(153,69,255,.09);border-radius:12px;padding:6px 8px;text-align:center}
#sheet .sum b{display:block;font-size:17px;color:#7f4cc7}#sheet .sum small{font-size:10.5px;opacity:.7;font-weight:700}
#sheet .dist{list-style:none;margin:0;padding:0;display:grid;gap:6px}
#sheet .dist li{display:grid;grid-template-columns:30px minmax(84px,auto) 1fr auto;align-items:center;gap:8px;padding:6px 8px;border-radius:12px;background:rgba(43,37,80,.05);border-left:5px solid var(--dc)}
#sheet .dist li.done{background:linear-gradient(90deg,rgba(255,210,74,.22),rgba(43,37,80,.04))}
#sheet .dist .st{width:28px;height:28px;border-radius:50%;border:2px dashed var(--dc);display:grid;place-items:center;font-size:15px}#sheet .dist li.done .st{border-style:solid;background:#fff;transform:rotate(-12deg)}
#sheet .dist .nm b{display:block;font-size:12.5px;white-space:nowrap}#sheet .dots{display:flex;gap:3px;margin-top:2px}#sheet .dots i{width:9px;height:9px;border-radius:50%;background:rgba(43,37,80,.18)}#sheet .dots i.on{background:var(--dc);box-shadow:0 0 0 1px rgba(43,37,80,.35)}
#sheet .rw{display:flex;flex-wrap:wrap;gap:3px}
#sheet .it{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:999px;background:rgba(43,37,80,.08);white-space:nowrap;opacity:.8}#sheet .it.ok{background:rgba(20,201,138,.18);color:#0b7a52;opacity:1}
#sheet .dist button{border:0;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:800;background:rgba(153,69,255,.12);color:#6b32c4;white-space:nowrap}
#sheet .all{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 0;padding:7px 10px;border-radius:12px;background:rgba(255,210,74,.18);font-weight:800}#sheet .all.done{background:rgba(255,210,74,.45)}
#sheet .qsum{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-weight:700;font-size:12px}#sheet .qsum b{color:#7f4cc7;font-size:15px}
#sheet .ladder{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:5px}#sheet .ladder li{display:flex;align-items:center;gap:4px;padding:3px 7px 3px 3px;border-radius:999px;background:rgba(43,37,80,.05)}
#sheet .ladder li b{display:grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#c9c3e6;color:#fff;font-size:11px}#sheet .ladder li.done b{background:#14c98a}#sheet .ladder li.next{box-shadow:0 0 0 2px #9945ff}
#sheet .ladder .it{background:none;padding:0}
/* クイズ */
#sheet .who{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 30px 8px 0}#sheet .who b{font-size:14px}#sheet .who small{flex-basis:100%;font-size:11px;opacity:.7;font-weight:700}
#sheet .gq{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--gc);color:#fff;font-weight:900}
#sheet .ask{font-size:16px;line-height:1.45;margin:4px 0 10px}
#sheet .choices{display:grid;gap:7px}#sheet .choices button{text-align:left;border:2px solid rgba(153,69,255,.25);border-radius:12px;padding:10px 12px;background:#fff;color:#25213f;font-weight:700;font-size:14px}
#sheet .choices button:hover:not(:disabled){border-color:#9945ff}#sheet .choices button:disabled{cursor:default;opacity:.55}
#sheet .choices button.right{opacity:1;border-color:#14c98a;background:rgba(20,201,138,.14)}#sheet .choices button.right::after{content:" ⭕"}
#sheet .choices button.wrong{opacity:1;border-color:#ef5b5b;background:rgba(239,91,91,.12)}#sheet .choices button.wrong::after{content:" ✖"}
#sheet .result{margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(43,37,80,.05)}#sheet .result.ok{background:rgba(20,201,138,.12)}#sheet .result.ng{background:rgba(239,91,91,.08)}
#sheet .result>b{font-size:16px}#sheet .result p{margin:4px 0}#sheet .result .ex{font-size:12px;opacity:.8}
#sheet .acts{display:flex;gap:8px;margin-top:8px}#sheet .acts button{flex:1;border:0;border-radius:11px;padding:9px;font-weight:800;background:rgba(43,37,80,.1);color:inherit}#sheet .acts .primary{margin:0;background:#9945ff;color:#fff;box-shadow:0 2px 0 #5b25b0}
#sheet .end{font-size:15px;font-weight:700;margin:12px 0}#sheet .by{margin:12px 0 0;font-size:10.5px;opacity:.55}
[data-theme=night] #sheet .panel{background:rgba(30,28,72,.97);color:#f3efff}[data-theme=night] #sheet .choices button{background:#1c1a46;color:#f3efff}[data-theme=night] #sheet .it.ok{color:#5ff0b4}
[data-theme=night] #sheet .sum b,[data-theme=night] #sheet .qsum b{color:#cdb5ff}[data-theme=night] #sheet .dist button{color:#d9c6ff}[data-theme=night] #sheet .dist li.done .st{background:#2b2766}
/* ごほうびの瞬間 */
#reward{position:fixed;inset:0;z-index:13;display:grid;place-items:center;padding:16px;background:radial-gradient(circle,rgba(255,214,120,.25),rgba(18,16,48,.5))}
#reward .confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none}
#reward .confetti i{position:absolute;left:var(--x);top:-20px;width:9px;height:14px;border-radius:2px;background:var(--c);animation:cf-fall 2.6s var(--d) cubic-bezier(.3,.6,.6,1) forwards}
@keyframes cf-fall{to{transform:translateY(110dvh) rotate(var(--r))}}
#reward .panel{position:relative;width:min(360px,100%);text-align:center;background:#fff;color:#25213f;border-radius:22px;padding:18px 18px 14px;box-shadow:0 6px 0 #ffd24a,0 20px 50px rgba(20,16,50,.45)}
#reward.show .panel{animation:rw-pop .5s cubic-bezier(.2,1.6,.4,1)}@keyframes rw-pop{from{transform:scale(.6);opacity:0}}
#reward .eyebrow{margin:0;font:900 11px system-ui;letter-spacing:.12em;color:#d4366f}#reward h2{margin:4px 0 2px;font-size:24px}#reward .sub{margin:0 0 10px;font-weight:700;opacity:.7}
#reward ul{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px}#reward li{display:flex;flex-direction:column;padding:7px 12px;border-radius:12px;background:linear-gradient(135deg,#fff3c4,#ffe0ef)}
#reward li small{font-size:10px;font-weight:800;opacity:.6}#reward li b{font-size:14px}
#reward .acts{display:grid;grid-template-columns:1fr 1.6fr;gap:8px}#reward button{font:inherit;border:0;border-radius:12px;padding:10px;font-weight:800;cursor:pointer;background:rgba(43,37,80,.1);color:inherit}
#reward .wear{background:linear-gradient(135deg,#ff8fc0,#9945ff);color:#fff;box-shadow:0 2px 0 #5b25b0}
@media(prefers-reduced-motion:reduce){#reward .confetti{display:none}}
/* 着せ替え: 鍵付き・NEW・シルエット */
#wardrobe .wopts button.locked{background:repeating-linear-gradient(135deg,rgba(43,37,80,.07) 0 6px,rgba(43,37,80,.12) 6px 12px);color:rgba(37,33,63,.62);display:flex;flex-direction:column;align-items:center;gap:1px}
#wardrobe .wopts button.locked small{font-size:9px;font-weight:700;line-height:1.2;opacity:.85}
#wardrobe .wopts button.locked.on{outline:3px solid #2b2550;background:rgba(43,37,80,.18)}
#wardrobe .wopts button i{display:inline-block;margin-left:4px;font:900 8.5px system-ui;font-style:normal;color:#fff;background:#ff4f8b;border-radius:999px;padding:2px 5px;vertical-align:2px}
#wardrobe .wslots button.has-fresh{position:relative}#wardrobe .wslots button.has-fresh::after{content:"";position:absolute;right:4px;top:4px;width:8px;height:8px;border-radius:50%;background:#ff4f8b}
#wardrobe .wlock{margin:0;padding:6px 10px;border-radius:10px;background:#2b2550;color:#fff;font-size:11.5px;font-weight:600}
#wardrobe .stage.sil{background:radial-gradient(ellipse at 50% 40%,#f3efff,#cfc8ea 75%)}
[data-theme=night] #wardrobe .wopts button.locked{color:rgba(243,239,255,.6)}
#who .wants{margin:0 0 8px;padding:7px 9px;border-radius:11px;background:rgba(153,69,255,.08)}#who .wants p{margin:0 0 4px;font-size:10.5px;font-weight:800;opacity:.7}
#who .wants span{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;font-size:12px}#who .wants small{font-size:10.5px;opacity:.65}
@media(min-width:701px){#star{margin-top:2px}body:has(#card.show) #star,body:has(#who.show) #star,body:has(#card.show) #area{display:none}#card{width:min(348px,calc(100vw - 28px))}}
@media(max-width:700px){
  #star{position:fixed;z-index:3;right:10px;top:168px;max-width:calc(100vw - 200px);padding:5px 10px 6px;font-size:11px}#star b{font-size:12px}#star small{font-size:9px}
  nav #pass span{display:none}
  #toast{bottom:122px}[data-mode=walk] #toast{bottom:212px}
  #sheet{place-items:end center;padding:8px}#sheet .panel{max-height:82dvh;padding:14px 14px 12px;border-radius:18px}
  #sheet .dist li{grid-template-columns:28px 1fr auto;row-gap:4px}#sheet .dist .rw{grid-column:2/4;grid-row:2}#sheet .dist button{grid-column:3;grid-row:1}
  #sheet .ask{font-size:15px}}
/* iPad など（タッチ・701px以上）: 散歩のスティックを下の地区ボタンより上へ */
@media(pointer:coarse) and (min-width:701px){#pad{bottom:max(132px,calc(env(safe-area-inset-bottom) + 132px))}}

.pr{display:inline-grid;place-items:center;font:900 9px/1 system-ui;font-style:normal;letter-spacing:.06em;padding:3px 5px;border-radius:4px;background:#fff;color:#8a6d00;border:1.5px solid #c9a227;flex:none}
#toast .nx{font-weight:700;color:#e3d2ff;opacity:1!important;margin-top:2px}
.bd.hot{background:linear-gradient(135deg,#ff7a3d,#ff3d6e)}
/* 英語の散歩（「Whole island」）でナビが2段にならないよう、狭い画面ではボタンを詰める */
@media(max-width:1100px){nav button{padding-left:10px;padding-right:10px}}@media(max-width:700px){nav button{padding-left:7px;padding-right:7px}}
/* お知らせ・ニュース・出典 */
#sheet .panel.notice{width:min(500px,100%)}
#sheet .nts,#sheet .news{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:8px}
#sheet .nt{padding:9px 11px;border-radius:12px;background:rgba(43,37,80,.05)}#sheet .nt.sp{background:rgba(255,210,74,.13);box-shadow:inset 0 0 0 1.5px rgba(201,162,39,.35)}
#sheet .nt .tag{display:flex;gap:6px;align-items:center;margin:0 0 4px}#sheet .nt .tag small{font-size:10.5px;opacity:.7;font-weight:700}
#sheet .nt .ops{font:800 10px/1 system-ui;font-style:normal;padding:3px 6px;border-radius:4px;background:rgba(153,69,255,.12);color:#6b32c4}
#sheet .nt>b{display:block;font-size:14px}#sheet .nt p{margin:4px 0;font-size:12.5px;line-height:1.5}#sheet .nt img{display:block;max-width:100%;max-height:160px;border-radius:8px;margin:6px 0}
#sheet a .host,#sheet .src .host{font-size:10.5px;opacity:.6;margin-left:6px;font-weight:600}#sheet .news a .host{display:block;margin:1px 0 0}
#sheet .nt .lk{display:inline-flex;align-items:center;margin-top:4px;font-weight:800;color:#6b32c4;text-decoration:none}
#sheet .news li{display:grid;grid-template-columns:auto 1fr auto;gap:4px 8px;align-items:baseline;font-size:13px;padding:6px 8px;border-radius:10px;background:rgba(43,37,80,.04)}
#sheet .news time{font-size:11px;font-weight:700;opacity:.65;font-variant-numeric:tabular-nums}#sheet .news a{color:inherit;font-weight:700;text-decoration:none}#sheet .news a:hover span{text-decoration:underline}
#sheet .news .kind{font-size:10px;font-weight:800;opacity:.55}
#sheet .src{margin:6px 0 0;font-size:12px}#sheet .src a{color:#6b32c4;font-weight:700}#sheet .ext{margin:6px 0 0;font-size:10.5px;opacity:.55}
#sheet .news+.note{margin-top:8px}#sheet .next{margin:8px 0 0;font-size:12px;font-weight:700;color:#7f4cc7}
[data-theme=night] #sheet .nt .lk,[data-theme=night] #sheet .src a,[data-theme=night] #sheet .next{color:#cdb5ff}
/* 着せ替え: 持っている物だけ。季節限定の印 */
#wardrobe .wopts button.season small{display:block;font-size:9px;font-weight:800;color:#d4366f}
#wardrobe .wopts .wonly{grid-column:1/-1;margin:2px 0 0;font-size:11px;opacity:.6}
/* ── 島ポイントと交換所（2026-11-16）── */
#pts{pointer-events:auto;display:flex;align-items:baseline;gap:4px;border:0;cursor:pointer;padding:5px 12px 6px;border-radius:999px;background:linear-gradient(135deg,#fff8d9,#f1e6ff);color:#3b1d78;box-shadow:0 3px 0 rgba(153,69,255,.25);font:800 12px system-ui;white-space:nowrap}
#pts span{font-size:10.5px;opacity:.7;margin-right:2px}#pts b{font-size:15px;font-weight:900;font-variant-numeric:tabular-nums}#pts small{font-size:10px;font-weight:800;opacity:.7}
#pts.bump{animation:pts-bump .6s cubic-bezier(.2,1.8,.4,1)}@keyframes pts-bump{0%{transform:scale(1.25)}100%{transform:none}}
[data-theme=night] #pts{background:linear-gradient(135deg,#3a2f63,#2c2a70);color:#fff1c4;box-shadow:0 3px 0 rgba(0,0,0,.25)}
[data-dress=on] #pts{display:none}
.bd.season{background:linear-gradient(135deg,#ff9a3d,#d4366f)}
#sheet .panel.trade{width:min(520px,100%)}
#sheet .tr-top{display:grid;grid-template-columns:minmax(150px,46%) 1fr;gap:12px;align-items:stretch;margin-bottom:10px}
#sheet .tr-stage{width:100%;height:210px;display:block;border-radius:14px;background:radial-gradient(ellipse at 50% 38%,#ffffff,#ece6fb 72%);touch-action:none;cursor:grab}
#sheet .tr-side{display:flex;flex-direction:column;gap:6px;min-width:0}
#sheet .bal{padding:7px 10px;border-radius:12px;background:linear-gradient(135deg,#fff8d9,#f1e6ff)}#sheet .bal small{display:block;font-size:10.5px;font-weight:800;opacity:.65}#sheet .bal b{font-size:22px;font-weight:900;color:#3b1d78}#sheet .bal em{font-style:normal;font-size:12px;margin-left:2px}
#sheet .tr-sel{margin:2px 0 0}#sheet .tr-sel small{display:block;font-size:10.5px;opacity:.65;font-weight:700}#sheet .tr-sel b{font-size:15px}
#sheet .tr-side .go{margin-top:auto}#sheet .tr-side .go:disabled{background:#c9c3e6;box-shadow:none;cursor:default}
#sheet .tr-why{margin:0;font-size:11px;opacity:.7;min-height:1em}
#sheet .offers{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:7px}
#sheet .offers button{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;border:2px solid rgba(153,69,255,.18);border-radius:12px;padding:7px 10px;background:#fff;color:#25213f}
#sheet .offers button.on{border-color:#9945ff;box-shadow:0 0 0 2px rgba(153,69,255,.25)}#sheet .offers small{font-size:10px;font-weight:800;opacity:.65;display:flex;gap:4px;align-items:center}
#sheet .offers b{font-size:13px}#sheet .offers span{font-size:12px;font-weight:800;color:#7f4cc7}#sheet .offers button.owned span{color:#0b7a52}#sheet .offers button.short span{opacity:.6}
#sheet .offers .se{font-style:normal;font-size:9px;color:#fff;background:#d4366f;border-radius:999px;padding:1px 6px}
#sheet .gotpt{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:999px;background:#ffd24a;color:#3b1d78;font-weight:900;font-size:13px;animation:stamp-pop .55s cubic-bezier(.2,1.8,.4,1)}
#sheet .wins{list-style:none;margin:4px 0 8px;padding:0;display:grid;gap:5px}#sheet .wins li{display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:11px;background:rgba(43,37,80,.05)}
#sheet .wins li div{flex:1;min-width:0}#sheet .wins b{display:block;font-size:13px}#sheet .wins small{display:block;font-size:11px;opacity:.7}
#sheet .wins button{border:0;border-radius:9px;padding:5px 10px;font-size:11.5px;font-weight:800;background:rgba(153,69,255,.12);color:#6b32c4;white-space:nowrap}
[data-theme=night] #sheet .tr-stage{background:radial-gradient(ellipse at 50% 38%,#3b3880,#24215a 72%)}[data-theme=night] #sheet .bal{background:linear-gradient(135deg,#3a2f63,#2c2a70)}[data-theme=night] #sheet .bal b{color:#fff1c4}
[data-theme=night] #sheet .offers button{background:#1c1a46;color:#f3efff}[data-theme=night] #sheet .offers span{color:#cdb5ff}[data-theme=night] #sheet .wins button{color:#d9c6ff}
@media(max-width:700px){#sheet .tr-top{grid-template-columns:44% 1fr;gap:9px}#sheet .tr-stage{height:170px}#sheet .bal b{font-size:19px}#sheet .offers{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* スマホ: #hud は display:contents なので、所持ポイントは地区名の下（左）に置く */
@media(max-width:700px){#pts{position:fixed;z-index:3;left:10px;top:202px;padding:4px 10px 5px;font-size:11px}#pts span{display:none}#pts b{font-size:14px}}
/* 英語の狭い画面: パスポートが「11/11」と2桁になってもナビを1段に（折り返さず、文字と余白を少し詰める） */
@media(max-width:430px){html[lang=en] nav button{white-space:nowrap;font-size:12px;padding-left:6px;padding-right:6px}html[lang=en] nav{gap:4px}}

/* ── 説明カードに店先メニューを統合（2026-11-17）: 遠い時は「ここに行く」、入口に着いたら「スタンプを押す」などに入れ替わる ── */
#card .actions{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}#card .actions .go{flex:1;min-width:120px}
#card .actions.swap{animation:acts-in .42s cubic-bezier(.2,1.2,.4,1)}@keyframes acts-in{from{opacity:0;transform:translateY(8px) scale(.97);filter:blur(2px)}}
#card .at{flex-basis:100%;margin:0;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.03em;color:#7f4cc7}#card .at::after{content:'';flex:1;height:1px;background:currentColor;opacity:.25}
[data-theme=night] #card .at{color:#c6b6ff}
#card .acts{flex-basis:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#card .acts>button,#card .acts>a{display:flex;align-items:center;gap:6px;min-height:42px;border:0;border-radius:11px;padding:7px 9px;font:700 12.5px system-ui;background:rgba(43,37,80,.08);color:inherit;text-decoration:none;cursor:pointer;text-align:left;position:relative;min-width:0;box-shadow:none}
#card .acts i{font-style:normal;font-size:16px;flex:none}#card .acts span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#card .acts .host{display:none}
#card .acts .primary{background:#9945ff;color:#fff;box-shadow:0 2px 0 #5b25b0}#card .acts .quiz{background:rgba(255,184,0,.2);box-shadow:inset 0 0 0 2px rgba(255,170,0,.45)}
#card .acts .trade{background:rgba(153,69,255,.12);box-shadow:inset 0 0 0 2px rgba(153,69,255,.35)}
#card .acts .done{background:rgba(20,201,138,.15);color:#0b7a52;cursor:default}#card .acts .done.quiz-done{cursor:pointer}#card .acts button:hover:not(:disabled){filter:brightness(1.05);outline:2px solid rgba(153,69,255,.35)}
#card .acts .n{margin-left:auto;min-width:20px;height:20px;border-radius:10px;background:#ff4f8b;color:#fff;font-size:11px;font-style:normal;display:grid;place-items:center;padding:0 5px;flex:none}#card .acts .n.pt{background:#7f4cc7;font-size:10.5px}
#card .acts .pr{margin-left:4px}#card .acts .pop{animation:stamp-pop .55s cubic-bezier(.2,1.8,.4,1)}@keyframes stamp-pop{0%{transform:scale(1.25) rotate(-6deg)}100%{transform:none}}
#card .actions .ext{flex-basis:100%;margin:0 2px;font-size:10px;opacity:.6}
[data-theme=night] #card .acts>button,[data-theme=night] #card .acts>a{background:rgba(255,255,255,.1)}[data-theme=night] #card .acts .primary{background:#9945ff}[data-theme=night] #card .acts .done{color:#5ff0b4;background:rgba(95,240,180,.12)}[data-theme=night] #card .acts .quiz{background:rgba(255,184,0,.16)}
/* 小さめのカード（入口に近づいて自動で開いた時）: 名前・状態・できることだけ。「詳しく」で全部 */
#card.mini dl,#card.mini .note{display:none}#card.mini .desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0 6px;font-size:13px}#card.mini h2{font-size:17px}#card.mini .cat{margin-bottom:6px}#card.mini .extra{margin:4px 0 8px}
#card .more{border:0;background:none;color:inherit;font:700 11px system-ui;opacity:.65;cursor:pointer;padding:2px 0;margin:0 0 6px;text-decoration:underline;text-underline-offset:3px}
#card .bd.season{font:900 10px/1 system-ui;padding:4px 7px;border-radius:999px;color:#fff;display:inline-block}
@media(max-width:700px){#card .acts>button,#card .acts>a{min-height:40px;font-size:12px;padding:6px 8px}#card .acts .host{display:none}#card .acts .n.pt{font-size:9.5px;padding:0 4px}
  /* スマホの散歩: カードはスティックの上（重ねない） */
  [data-mode=walk] #card{bottom:206px;max-height:calc(100dvh - 206px - 232px)}
  /* お知らせ（スタンプ等）はカードの上に */
  body:has(#card.show) #toast{bottom:min(calc(var(--card-top,300px) + 8px),calc(100dvh - 250px))}}
/* 入口に着いたらスタンプの状態はボタンで分かるので、説明の「スタンプ済み/入口でスタンプ」の行は隠す */

/* 自キャラの「あなた」の印はカードの下に */
body:has(#card.show) #me{z-index:4}
/* 状態の行が全部隠れた時は、空いた余白も詰める */

#card.near .extra .stpl,#card.near .extra.only-stp{display:none}
/* ── 期間限定イベント（2026-11-17）: 画面上部の帯・丘の広場の名札・塔のカード・説明のシート ── */
#event{pointer-events:auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:7px;row-gap:0;text-align:left;border:0;cursor:pointer;padding:5px 12px 6px 9px;border-radius:14px;
  background:linear-gradient(120deg,#f4ebff 0%,#e9e6ff 55%,#dcfff0 100%);color:#3b1d78;box-shadow:0 3px 0 rgba(153,69,255,.28),inset 0 0 0 1.5px #c9a8ff;font:800 12px system-ui;max-width:min(300px,calc(100vw - 28px))}
#event i{grid-row:1/3;font-style:normal;font-size:19px;line-height:1}#event b{font:900 13px/1.2 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#event small{grid-column:2;font:800 10.5px/1.25 system-ui;color:#0f8a5c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#event em{grid-row:1/3;grid-column:3;font-style:normal;font:900 10px system-ui;background:#9945ff;color:#fff;border-radius:999px;padding:2px 6px}
#event:hover{filter:brightness(1.03)}#event:active{transform:translateY(1px)}
[data-theme=night] #event{background:linear-gradient(120deg,#3b2470,#2c2a70 55%,#123f43);color:#fff1f7;box-shadow:0 3px 0 rgba(0,0,0,.3),inset 0 0 0 1.5px #7a52d9}[data-theme=night] #event small{color:#5ff0b4}
[data-dress=on] #event{display:none}
/* パソコン・iPad: 右上の列（時計の上）。帯のぶんだけ説明カードを下げる */
@media(min-width:701px){html[data-event=on] #card{top:178px;max-height:calc(100dvh - 292px)}}
@media(min-width:701px) and (max-width:1100px){html[data-event=on] #card{top:212px;max-height:calc(100dvh - 332px)}}
/* スマホ: ロゴの右の空き（ロゴと同じ高さ）に置く */
@media(max-width:700px){#event{position:fixed;z-index:3;top:max(10px,env(safe-area-inset-top));right:10px;max-width:calc(100vw - 230px);padding:6px 9px 7px 8px;column-gap:6px;border-radius:13px}
  #event i{font-size:17px}#event b{font-size:12px}#event small{font-size:9.5px}}
@media(max-width:360px){#event i{display:none}#event{grid-template-columns:minmax(0,1fr) auto}#event b,#event small{grid-column:1}}
/* 丘の広場の名札（俯瞰）: イベント中は2行 */
.label.family.ev{display:flex;flex-direction:column;align-items:center;gap:1px;padding-top:4px;padding-bottom:4px;border-width:2px;background:linear-gradient(120deg,#fff,#f1e8ff 60%,#e3fff3)}
.label.family.ev small{font:900 10px/1.1 system-ui;color:#7a2fe0;white-space:nowrap}
[data-theme=night] .label.family.ev{background:linear-gradient(120deg,#2c2a70,#3b2470 60%,#143c46)}[data-theme=night] .label.family.ev small{color:#b998ff}
/* 塔のカード */
#card .extra.ev .bd.ev{background:linear-gradient(135deg,#9945ff,#14c98a)}#card .extra.ev .evhow{font-size:11.5px;opacity:.8;margin-top:4px}
#card [data-act=claim].primary{background:linear-gradient(135deg,#9945ff,#14c98a)!important;color:#fff!important}
/* 説明のシート */
#sheet .panel.event .evs+.evs{border-top:1px dashed #c9b8ec;margin-top:12px;padding-top:12px}
#sheet .panel.event .eyebrow{margin:0 0 4px;font:800 11px system-ui;color:#7a2fe0;letter-spacing:.03em}
#sheet .panel.event .desc{margin:0 0 8px;font-size:13.5px;line-height:1.6}#sheet .panel.event .fx{margin:0 0 10px;font-size:12px;opacity:.8}
#sheet .panel.event .cap{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 12px;border-radius:14px;background:linear-gradient(120deg,#f4ebff,#e3fff3);margin:0 0 10px}
#sheet .panel.event .cap-t{flex:1 1 200px;min-width:0}#sheet .panel.event .cap-t b{font-size:14px}#sheet .panel.event .cap-t small{margin-left:8px;font-weight:800;color:#0f8a5c}#sheet .panel.event .cap-t p{margin:4px 0 0;font-size:12px;opacity:.8}
#sheet .panel.event .cap button{border:0;border-radius:11px;padding:9px 13px;font:800 13px system-ui;cursor:pointer;background:#fff;color:#3b1d78;box-shadow:0 2px 0 rgba(43,37,80,.15)}
#sheet .panel.event .cap button.primary{background:linear-gradient(135deg,#9945ff,#14c98a);color:#fff}
#sheet .panel.event .src{margin:0 0 6px}#sheet .panel.event .src a{display:inline-flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline;font-weight:800;color:#5b25b0}#sheet .panel.event .src .host{font-weight:600;opacity:.65}
[data-theme=night] #sheet .panel.event .cap{background:linear-gradient(120deg,#3b2470,#143c46)}[data-theme=night] #sheet .panel.event .src a{color:#c9a8ff}[data-theme=night] #sheet .panel.event .eyebrow{color:#b998ff}[data-theme=night] #sheet .panel.event .cap-t small{color:#5ff0b4}
#card .acts [data-act=claim]{grid-column:1/-1}

/* 「ここに行く」の後、歩いている間: 向かっている表示＋やめる */
#card .actions .going{flex:1 1 150px;margin:0;display:flex;align-items:center;gap:8px;min-height:42px;padding:6px 11px;border-radius:11px;background:rgba(153,69,255,.1);box-shadow:inset 0 0 0 2px rgba(153,69,255,.28)}
#card .actions .going i{font-style:normal;font-size:17px;animation:going-step .7s ease-in-out infinite alternate}
#card .actions .going span{display:grid;min-width:0}#card .actions .going b{font:800 12.5px system-ui}#card .actions .going small{font:700 11px system-ui;opacity:.72;font-variant-numeric:tabular-nums}
#card .actions .stop{flex:0 0 auto;display:flex;align-items:center;gap:5px;min-height:42px;border:0;border-radius:11px;padding:7px 14px;font:700 12.5px system-ui;background:rgba(43,37,80,.1);color:inherit;cursor:pointer}
#card .actions .stop i{font-style:normal}#card .actions .stop:hover{filter:brightness(1.05);outline:2px solid rgba(153,69,255,.35)}
[data-theme=night] #card .actions .going{background:rgba(153,69,255,.22)}[data-theme=night] #card .actions .stop{background:rgba(255,255,255,.12)}
@keyframes going-step{from{transform:translateY(0) rotate(-4deg)}to{transform:translateY(-2px) rotate(4deg)}}
@media(prefers-reduced-motion:reduce){#card .actions .going i{animation:none}}
/* 住人のカード・説明カードに重なる「あなた」は隠す（名札は JS で出さない） */
#me.under{opacity:0;pointer-events:none}

/* DefiLlama の出典（データの横に必ず表示・2026-11-17 DefiLlama との合意） */
#card .credit{margin:.35em 0 .2em;font-size:.72em;opacity:.75}
#card .credit a{color:inherit;text-decoration:underline}
