/* ソニソニ大陸 Games 共通の見た目（一覧・もちもち仕分け屋・もちすべり）
   v2（2026-11-22）：絵を SVG（sg-art.js）に、演出（カウントダウン・正解の光・紙吹雪）を追加 */
/* 色の変数（サイトに組みこんで .sg-page がなくても効くように、ゲームの箱にも書く） */
.sg-page, #sg-shiwake, #sg-suberi, .sg-list { --sg-ink: #24324a; --sg-sub: #5b6b85; --sg-line: #dfe5ee; --sg-card: #ffffff; --sg-soft: #f4f7fb; --sg-accent: #2f6fe0; --sg-warm: #ff9a3c; --sg-ok: #1f9d55; --sg-ng: #e0483e; --sg-gold: #ffd66b; --sg-brown: #5a4636; }
.sg-page { color: var(--sg-ink); max-width: 720px; margin: 0 auto; padding: 0 16px 32px; line-height: 1.7; }
.sg-page h1 { font-size: 1.6rem; margin: 16px 0 8px; padding-bottom: 4px; border-bottom: 3px solid #9fd27f; }
.sg-page h2 { font-size: 1.15rem; margin: 28px 0 8px; border-left: 4px solid var(--sg-accent); padding-left: 8px; }
.sg-page .sg-lead { color: var(--sg-sub); margin: 0 0 12px; }
.sg-page .sg-back { font-size: .9rem; }
.sg-page button { font: inherit; cursor: pointer; }

/* 絵（sg-art.js の SVG） */
.sg-art { display: block; width: 100%; height: 100%; overflow: visible; }
[data-sg-art] { display: inline-block; width: 48px; height: 48px; vertical-align: middle; }
.sg-art-kani .claw-l { transform-origin: 18px 32px; }
.sg-art-kani .claw-r { transform-origin: 46px 32px; }

/* ぷっくりボタン（だいだい） */
.sg-btn { display: inline-block; border: 0; border-radius: 999px; padding: 12px 36px; min-height: 48px; font-size: 1.15rem; font-weight: bold; color: #fff; letter-spacing: .05em;
  background: linear-gradient(180deg, #ffb04d, #ff8a1f); box-shadow: 0 4px 0 #d9650a, 0 6px 14px rgba(255, 138, 31, .35); text-shadow: 0 1px 0 rgba(160, 70, 0, .45); transition: transform .08s, box-shadow .08s; }
.sg-btn:hover { filter: brightness(1.05); }
.sg-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9650a, 0 2px 6px rgba(255, 138, 31, .3); }
.sg-btn:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 2px; }
.sg-btn.sub { background: #fff; color: var(--sg-ink); text-shadow: none; box-shadow: 0 4px 0 #c9d3e2; border: 2px solid #c9d3e2; padding: 10px 22px; font-size: 1rem; }
.sg-btn.sub:active { box-shadow: 0 1px 0 #c9d3e2; }

/* 紙吹雪・きらきら */
.sg-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; border-radius: inherit; }
.sg-confetti i { position: absolute; top: -12px; width: 9px; height: 13px; border-radius: 2px; animation: sg-fall 1.3s cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes sg-fall { to { transform: translate(var(--dx, 0), 110%) rotate(var(--rot, 360deg)); top: 100%; opacity: .9; } }
.sg-spark { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; z-index: 4; animation: sg-spark .6s ease-out forwards; }
@keyframes sg-spark { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--sx), var(--sy)) scale(1.1) rotate(90deg); opacity: 0; } }

/* ゆらゆら・ふわふわ（共通） */
@keyframes sg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes sg-jelly { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.04, .94); } }
@keyframes sg-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes sg-claw { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }
@keyframes sg-claw-r { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(14deg); } }

/* ===== 一覧ページ ===== */
.sg-list { display: grid; gap: 14px; margin: 16px 0; }
.sg-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--sg-card); border: 2px solid var(--sg-line); border-radius: 16px; padding: 14px; color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.sg-card:hover, .sg-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(36, 50, 74, .12); border-color: #ffc27a; }
.sg-card:active { transform: scale(.98); }
.sg-card .sg-ico { position: relative; width: 96px; height: 96px; border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .06); }
.sg-card .sg-ico.warm { background: linear-gradient(160deg, #fff1d6, #ffc77d); }
.sg-card .sg-ico.ice { background: linear-gradient(160deg, #eefaff, #9fd3ee); }
.sg-card .sg-ico [data-sg-art] { width: 64px; height: 64px; animation: sg-jelly 2.2s ease-in-out infinite; transform-origin: 50% 90%; }
.sg-card .sg-ico .sg-ico-sub { position: absolute; width: 34px; height: 34px; right: 6px; bottom: 6px; animation: sg-sway 2.4s ease-in-out infinite; }
.sg-card .sg-ico .sg-ico-sub.left { right: auto; left: 6px; }
.sg-card b { font-size: 1.15rem; display: block; }
.sg-card .sg-desc { color: var(--sg-sub); font-size: .92rem; display: block; }
.sg-card .sg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sg-card .sg-tags span { font-size: .85rem; background: var(--sg-soft); border-radius: 999px; padding: 1px 9px; color: #4a5a75; }
.sg-card .sg-me { font-size: .9rem; color: #c25e00; font-weight: bold; margin-top: 4px; display: block; min-height: 1em; }
.sg-card .sg-play { display: inline-block; margin-top: 8px; color: #fff; border-radius: 999px; padding: 5px 18px; font-weight: bold; font-size: .95rem;
  background: linear-gradient(180deg, #ffb04d, #ff8a1f); box-shadow: 0 3px 0 #d9650a; text-shadow: 0 1px 0 rgba(160, 70, 0, .4); transition: box-shadow .12s; }
.sg-card:hover .sg-play, .sg-card:focus-visible .sg-play { box-shadow: 0 3px 0 #d9650a, 0 0 0 4px rgba(255, 176, 77, .35); }
.sg-card.big { grid-template-columns: 1fr; padding: 0; overflow: hidden; border-color: #c9d8f2; }
.sg-card.big .sg-hero { position: relative; height: 160px; background: linear-gradient(180deg, #a9dcff 0%, #e4f5ff 58%, #b8e0a0 59%, #8fca6c 100%); display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 12px; overflow: hidden; }
.sg-card.big .sg-hero::before { content: ""; position: absolute; left: 12%; top: 18px; width: 70px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 160px 14px 0 -3px #fff, 300px -4px 0 2px #fff; opacity: .9; }
.sg-card.big .sg-hero [data-sg-art] { position: relative; width: 60px; height: 60px; }
.sg-card.big .sg-hero .h-tree { width: 84px; height: 84px; }
.sg-card.big .sg-hero .h-home { width: 74px; height: 74px; }
.sg-card.big .sg-hero .h-mochi { animation: sg-bob 1.8s ease-in-out infinite; }
.sg-card.big .sg-hero .h-kani .claw-l { animation: sg-claw .8s ease-in-out infinite; }
.sg-card.big .sg-hero .h-kani .claw-r { animation: sg-claw-r .8s ease-in-out infinite .4s; }
.sg-card.big .sg-body { padding: 4px 16px 16px; }
.sg-card.big b { font-size: 1.4rem; }

/* ===== もちもち仕分け屋 ===== */
#sg-shiwake { position: relative; background: #fff7ea; border: 2px solid #f1d3a6; border-radius: 18px; padding: 10px; user-select: none; -webkit-user-select: none; }
.sw-head { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; padding: 0 4px; }
.sw-head b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.sw-mul { background: #fff; border: 2px solid #f1d3a6; border-radius: 999px; padding: 0 12px; font-weight: bold; font-size: 1.05rem; display: inline-block; }
.sw-mul.up { animation: sw-pulse .35s ease-out; }
.sw-mul.hot { background: linear-gradient(180deg, #ffb04d, #ff7a1a); color: #fff; border-color: #ff8a1f; box-shadow: 0 0 0 3px rgba(255, 176, 77, .35); }
@keyframes sw-pulse { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.sw-bar { height: 12px; background: #f3e2c8; border-radius: 999px; margin: 6px 4px 8px; overflow: hidden; }
.sw-bar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff8a1f, #ffc24d); }
.sw-bar.low i { background: linear-gradient(90deg, #e0483e, #ff8a6a); }

/* お店のカウンター：上に赤白のひさし、下に木の床。左はだいだい、右は水色 */
.sw-stage { position: relative; height: 310px; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; padding: 40px 0 16px; touch-action: none; outline: none; cursor: pointer;
  background:
    radial-gradient(circle at 12px -2px, #e8553f 11px, transparent 12px) 0 22px / 24px 14px repeat-x,
    repeating-linear-gradient(90deg, #e8553f 0 24px, #fff 24px 48px) 0 0 / 100% 24px no-repeat,
    linear-gradient(180deg, transparent 0 70%, #e9c48f 70% 72%, #f3d9b1 72%),
    linear-gradient(90deg, #ffe3bd 0 50%, #d4e8ff 50% 100%);
  transition: box-shadow .2s; }
.sw-stage:focus-visible { box-shadow: inset 0 0 0 3px #9cc0ff; }
.sw-stage::after { content: ""; position: absolute; left: 50%; top: 36px; bottom: 10px; width: 3px; margin-left: -1.5px; background: repeating-linear-gradient(180deg, rgba(90, 70, 54, .18) 0 8px, transparent 8px 14px); pointer-events: none; }
.sw-stage.gold { animation: sw-gold .5s ease-out; }
.sw-stage.miss { animation: sw-miss .3s ease-out; }
@keyframes sw-gold { 0% { box-shadow: inset 0 0 0 0 var(--sg-gold); } 40% { box-shadow: inset 0 0 0 7px var(--sg-gold), inset 0 0 30px rgba(255, 214, 107, .8); } 100% { box-shadow: inset 0 0 0 0 var(--sg-gold); } }
@keyframes sw-miss { 0%, 100% { box-shadow: inset 0 0 0 0 var(--sg-ng); transform: translateX(0); } 30% { box-shadow: inset 0 0 0 6px var(--sg-ng); transform: translateX(-6px); } 65% { transform: translateX(6px); } }
.sw-basket { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--sg-ink); font-size: .95rem; font-weight: bold; text-align: center; padding-bottom: 2px; }
.sw-basket .sw-bk { position: relative; width: 76px; height: 76px; }
.sw-basket .sw-bk .bk { position: absolute; inset: 0; }
.sw-basket .sw-bk .who { position: absolute; width: 54px; height: 54px; left: 11px; top: -20px; }
.sw-basket.hit .sw-bk { animation: sw-hop .3s ease-out; }
@keyframes sw-hop { 40% { transform: translateY(-8px) scale(1.06); } }
.sw-basket small { font-size: inherit; }
.sw-basket .sw-tap { font-size: .88rem; font-weight: bold; color: #6b5a48; }
.sw-item { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 150px; align-self: center; }
.sw-item .sg-art { width: 104px; height: 104px; }
.sw-ready { font-size: 1.5rem; font-weight: bold; color: #c25e00; white-space: nowrap; }
.sw-item.pop .sg-art { animation: sw-pop .2s cubic-bezier(.3, 1.6, .5, 1); }
.sw-item.fly-l .sg-art { transform: translate(-120%, 40%) scale(.45) rotate(-25deg); opacity: 0; transition: transform .2s ease-in, opacity .2s ease-in; }
.sw-item.fly-r .sg-art { transform: translate(120%, 40%) scale(.45) rotate(25deg); opacity: 0; transition: transform .2s ease-in, opacity .2s ease-in; }
.sw-item.fade .sg-art { opacity: .15; transform: scale(.8); transition: .25s; }
.sw-item.shake .sg-art { animation: sw-shake .3s; }
.sw-judge { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-size: 3rem; line-height: 1; font-weight: 900; opacity: 0; z-index: 3; pointer-events: none; white-space: nowrap;
  -webkit-text-stroke: 1px #fff; paint-order: stroke fill; text-shadow: 0 0 0 #fff, 0 3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 0 -3px 0 #fff, 0 4px 8px rgba(0, 0, 0, .15); }
.sw-judge small { display: block; font-size: 1rem; font-weight: bold; text-align: center; }
.sw-judge.show { animation: sw-judge .5s ease-out; }
.sw-judge.ok { color: var(--sg-ok); }
.sw-judge.ng { color: var(--sg-ng); }
.sw-judge.big { color: #ff7a1a; }
.sw-count { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; font-size: 6rem; font-weight: 900; color: #ff8a1f; line-height: 1;
  text-shadow: 0 4px 0 #fff, 4px 0 0 #fff, -4px 0 0 #fff, 0 -4px 0 #fff, 0 8px 18px rgba(160, 70, 0, .25); }
.sw-count[hidden] { display: none; }
.sw-count.go { font-size: 3.4rem; color: #3f9f4a; }
.sw-count span { animation: sw-countin .7s ease-out both; }
@keyframes sw-countin { 0% { transform: scale(2.2); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 80% { transform: scale(.92); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }
@keyframes sw-pop { from { transform: scale(.4) translateY(30px); } to { transform: scale(1) translateY(0); } }
@keyframes sw-shake { 25% { transform: translateX(-10px) rotate(-6deg); } 75% { transform: translateX(10px) rotate(6deg); } }
@keyframes sw-judge { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.5); } 30% { opacity: 1; transform: translate(-50%, -4px) scale(1.3); } 55% { transform: translate(-50%, -8px) scale(1); opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -22px) scale(1); } }

/* スタート前・結果の幕 */
.sw-over { position: absolute; inset: 0; z-index: 6; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: safe center; text-align: center; padding: 14px; gap: 2px; overflow-x: hidden; overflow-y: auto; }
.sw-over[hidden] { display: none; }
.sw-start { background: rgba(255, 249, 238, .86); }
.sw-end { background: linear-gradient(180deg, #fff6d8 0%, #ffe08a 100%); }
.sw-over p { margin: 2px 0; }
.sw-big { font-size: 1.7rem; font-weight: 900; color: #c25e00; text-shadow: 0 2px 0 #fff; }
.sw-rules { list-style: none; padding: 0; margin: 6px 0; text-align: left; }
.sw-rules li { display: flex; align-items: center; gap: 8px; margin: 3px 0; background: #fff; border-radius: 12px; padding: 2px 12px 2px 4px; box-shadow: 0 2px 0 #f1d3a6; }
.sw-rules .sg-art { width: 40px; height: 40px; flex: none; }
.sw-rules li:nth-child(1) .sg-art { animation: sg-jelly 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
.sw-rules li:nth-child(2) .claw-l { animation: sg-claw .8s ease-in-out infinite; }
.sw-rules li:nth-child(2) .claw-r { animation: sg-claw-r .8s ease-in-out infinite .4s; }
.sw-rules li:nth-child(3) .sg-art { animation: sg-bob 2s ease-in-out infinite; }
.sw-small { font-size: .9rem; color: var(--sg-sub); }
.sw-go { margin: 8px 0; }
.sw-go2 a, .sb-go a { font-weight: bold; color: #2a6f97; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sg-page .sg-back a { color: #2a6f97; font-weight: bold; }
.sw-endart { width: 96px; height: 96px; margin-bottom: -4px; }
.sw-endart .sg-art { animation: sg-bob 1.4s ease-in-out infinite; }
.sw-score-big { font-size: 2.6rem; font-weight: 900; color: #c25e00; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 #fff; }
.sw-score-big small { font-size: 1.1rem; }
.sw-new { display: inline-block; background: #ff7a1a; color: #fff; font-weight: 900; border-radius: 8px; padding: 1px 10px; margin-left: 6px; font-size: .95rem; vertical-align: middle; animation: sg-sway .6s ease-in-out infinite; }
.sw-title { font-size: 1.05rem; }
.sw-title b { color: #8a4a00; }

/* ===== もちすべり ===== */
#sg-suberi { position: relative; background: linear-gradient(180deg, #f2fbff, #e1f2fb); border: 2px solid #b9dcef; border-radius: 18px; padding: 10px; user-select: none; -webkit-user-select: none; }
.sb-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0 4px 8px; }
.sb-head > div:first-child b { font-size: 1.15rem; color: #1f6f9f; }
.sb-no { color: var(--sg-sub); font-size: .9rem; }
.sb-stats { display: flex; gap: 12px; font-size: .95rem; align-items: center; }
.sb-stats b { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.sb-got { display: inline-flex; align-items: center; gap: 2px; }
.sb-got .sg-art { width: 22px; height: 22px; }
.sb-got.pulse { animation: sw-pulse .35s ease-out; }
.sb-board { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; border: 4px solid #8cc4e0; border-radius: 16px; overflow: hidden; touch-action: none; outline: none;
  background: linear-gradient(160deg, #e9f8ff 0%, #c4e6f6 60%, #b2dcf1 100%); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .7), inset 0 0 22px rgba(255, 255, 255, .9), 0 6px 0 #a9d3ea; }
.sb-board:focus-visible { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .7), 0 0 0 3px #9cc0ff; }
.sb-cell { position: relative; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .6); }
.sb-cell::before { content: ""; position: absolute; left: 14%; top: 18%; width: 46%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .75); transform: rotate(-35deg); }
.sb-cell.spark::after { content: ""; position: absolute; right: 16%; bottom: 18%; width: 8px; height: 8px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: sb-twinkle 2.4s ease-in-out infinite; }
@keyframes sb-twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.sb-cell .sg-art { width: 84%; height: 84%; position: relative; z-index: 1; }
.sb-cell.rock { background: rgba(120, 140, 155, .12); }
.sb-cell.rock::before { display: none; }
.sb-cell.mush .sg-art { width: 72%; height: 72%; animation: sg-bob 2.2s ease-in-out infinite; }
.sb-cell.mush.got .sg-art { opacity: .16; filter: grayscale(1); animation: none; }
.sb-cell.home { background: radial-gradient(circle, rgba(255, 243, 196, .9) 0 55%, transparent 70%); }
.sb-board.ready .sb-cell.home { animation: sb-glow 1s ease-in-out infinite alternate; }
.sb-board.ready .sb-cell.home .sg-art { animation: sb-beat 1s ease-in-out infinite; }
@keyframes sb-glow { from { background: radial-gradient(circle, rgba(255, 243, 196, .9) 0 55%, transparent 70%); } to { background: radial-gradient(circle, rgba(255, 214, 107, 1) 0 60%, rgba(255, 214, 107, .3) 80%); } }
@keyframes sb-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.sb-mochi { position: absolute; z-index: 2; width: calc(100% / 7); height: calc(100% / 7); display: flex; align-items: center; justify-content: center; transition-property: left, top; transition-timing-function: cubic-bezier(.3, .1, .3, 1); pointer-events: none; }
.sb-mochi::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 6%; height: 14%; border-radius: 50%; background: rgba(90, 70, 54, .25); }
.sb-mochi .sb-body { position: relative; width: 100%; height: 100%; transform-origin: 50% 85%; transition: transform .12s; }
.sb-mochi:not(.moving) .sb-body { animation: sg-jelly 2s ease-in-out infinite; }
.sb-mochi.slide-x .sb-body { transform: scale(1.28, .82); }
.sb-mochi.slide-y .sb-body { transform: scale(.84, 1.22); }
.sb-mochi.land .sb-body { animation: sb-land .3s ease-out; }
.sb-mochi.win .sb-body { animation: sb-win .5s ease-out 2; }
@keyframes sb-land { 0% { transform: scale(1.3, .75); } 50% { transform: scale(.9, 1.12); } 100% { transform: scale(1, 1); } }
@keyframes sb-win { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-30%) scale(1.05, .95); } }
.sb-board.bump { animation: sw-shake .22s; }
.sb-board.clear { animation: sb-clear .9s; }
@keyframes sb-clear { 50% { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .7), 0 0 0 8px var(--sg-gold), 0 0 30px rgba(255, 214, 107, .9); } }
.sb-pad { display: grid; grid-template-columns: repeat(3, 76px); grid-template-areas: ". u ." "l r2 r" ". d ."; gap: 8px; justify-content: center; margin: 14px 0 4px; }
.sb-pad button { height: 64px; border: 2px solid #b9dcef; background: linear-gradient(180deg, #fff, #eaf6fd); border-radius: 14px; font-size: 1.4rem; color: #1f6f9f; box-shadow: 0 4px 0 #b9dcef; transition: transform .06s, box-shadow .06s; }
.sb-pad button:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9dcef; }
.sb-pad [data-dir="up"] { grid-area: u; } .sb-pad [data-dir="left"] { grid-area: l; } .sb-pad [data-dir="right"] { grid-area: r; } .sb-pad [data-dir="down"] { grid-area: d; }
.sb-pad .sb-reset { grid-area: r2; font-size: .85rem; font-weight: bold; color: var(--sg-ink); background: #fff; border-color: #dfe5ee; box-shadow: 0 4px 0 #dfe5ee; }
.sb-note { font-size: .9rem; color: var(--sg-sub); margin: 8px 4px 0; }
.sb-result { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff6d8, #ffe39a); border: 3px solid var(--sg-gold); border-radius: 16px; padding: 12px 14px; margin-top: 12px; text-align: center; box-shadow: 0 5px 0 #f2c94c; }
.sb-result p { margin: 4px 0; }
.sb-winart { width: 80px; height: 80px; margin: 0 auto -6px; }
.sb-winart .sg-art { animation: sg-bob 1.4s ease-in-out infinite; }
.sb-win { font-size: 1.5rem; font-weight: 900; color: #c25e00; text-shadow: 0 2px 0 #fff; }
.sb-small { font-size: .9rem; color: var(--sg-sub); }
.sb-share { background: rgba(255, 255, 255, .8); border-radius: 10px; padding: 8px 10px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .9rem; margin: 8px 0; }
.sb-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0; }
.sb-btns .sg-btn { font-size: 1rem; padding: 10px 24px; }

/* 動きを減らす設定の人には、ずっと動く物と大きな動きを止める */
@media (prefers-reduced-motion: reduce) {
  .sg-page *, .sg-page *::before, .sg-page *::after,
  #sg-shiwake *, #sg-suberi *, .sg-list * { animation: none !important; transition-duration: .01ms !important; }
  .sw-count span { opacity: 1; }
}
/* 動きを減らす設定でも、○×の判定は ふわっと出して消す（見えないと遊べないため） */
@keyframes sw-judge-fade { 0% { opacity: 0; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #sg-shiwake .sw-judge.show { animation: sw-judge-fade .6s ease-out !important; }
}
/* sg-art.js が読めなかったときの代わりの絵文字 */
.sg-emo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 1.8em; line-height: 1; }
/* せまい画面（360px未満）では一覧の絵を小さく */
@media (max-width: 359px) {
  .sg-card.big .sg-hero { gap: 4px; }
  .sg-card.big .sg-hero [data-sg-art] { width: 48px; height: 48px; }
  .sg-card.big .sg-hero .h-tree { width: 66px; height: 66px; }
  .sg-card.big .sg-hero .h-home { width: 58px; height: 58px; }
}
