:root{--ink:#3d3226;--today:#e8892b}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;background:#2b3a67;color:var(--ink);
  font-family:"UD デジタル 教科書体 N","UD Digi Kyokasho N","Hiragino Maru Gothic ProN","Hiragino Sans",sans-serif;
  touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#app{position:relative;height:100vh;height:100dvh;overflow:hidden}

/* 回る空（3つに分かれた大きな丸） */
#world{position:absolute;inset:0;overflow:hidden;touch-action:none}
#sky{position:absolute;border-radius:50%;transition:transform 1.4s cubic-bezier(.45,.05,.3,1);
  background:conic-gradient(from -60deg,
    #ffc08f 0deg,#ffd9a6 50deg,#ffc08f 110deg,
    #2c3a73 130deg,#1b2550 180deg,#2c3a73 230deg,
    #8fd0f5 250deg,#6fc0f0 300deg,#8fd0f5 350deg,#ffc08f 360deg)}
.sun,.moon,.star{position:absolute;left:50%;top:50%}
.sun{width:110px;height:110px;margin:-55px;border-radius:50%;background:radial-gradient(circle,#fff4b0 0 40%,#ffd23f 41% 70%,rgba(255,210,63,0) 71%)}
.sun.morning{background:radial-gradient(circle,#fff0c4 0 40%,#ff9f45 41% 70%,rgba(255,159,69,0) 71%)}
.moon{width:80px;height:80px;margin:-40px;border-radius:50%;box-shadow:-18px 10px 0 0 #fff6c8}
.star{width:8px;height:8px;margin:-4px;border-radius:50%;background:#fff6c8;box-shadow:0 0 8px #fff6c8}
#hill{position:absolute;left:-20%;right:-20%;bottom:-38vh;height:60vh;border-radius:50%;background:#9fd27f;box-shadow:inset 0 10px 0 #b6e09a}
#kid{position:absolute;left:50%;bottom:14vh;height:min(40vh,320px);transform:translateX(-50%) scale(.75);transform-origin:50% 100%;transition:opacity .25s}
#word{position:absolute;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);font-size:clamp(40px,7vw,70px);font-weight:700;color:var(--ink);white-space:nowrap}

/* 2026-11-06 上の札：きのう・きょう・あした の 3つだけ。いまいる日に 黄色の わく */
#days{position:absolute;left:50%;top:max(12px,env(safe-area-inset-top));transform:translateX(-50%);display:flex;gap:clamp(8px,2vw,18px);z-index:2}
#days .d{font:inherit;font-weight:700;font-size:clamp(22px,3.6vw,36px);color:var(--ink);background:#fff;border:0;border-radius:14px;
  padding:.3em .6em;box-shadow:0 3px 0 rgba(0,0,0,.2);outline:5px solid transparent;outline-offset:-1px;transition:outline-color .3s,transform .3s;pointer-events:none}
#days .d.now{outline-color:#ffd84d;transform:scale(1.08)}
#days .d[data-o="0"]{background:#fff3e2}
#word{font-size:clamp(40px,7vw,70px)!important}
.round{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));width:76px;height:76px;border-radius:50%;border:0;background:#fff;
  display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 0 rgba(0,0,0,.25);z-index:3}
.round svg{width:40px;height:40px;fill:none;stroke:var(--ink);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
#back{left:16px;width:60px;height:60px}#back svg{width:30px;height:30px}
#go{right:16px;background:#ffd84d}
.round:active{transform:translateY(3px);box-shadow:none}

/* 2026-11-06 空を 指で 動かす（ボタンは なし） */
#world{cursor:grab}
#world.dragging{cursor:grabbing}
