/* わんにゃん大戦争（2026-09-30）画面の見た目。接頭辞 wn- ／ スマホ縦持ち最優先・低い画面（360×560）でも出撃ボタンが画面外に出ない */
:root {
	--wn-ink: #3a2a14; --wn-sub: #7a6444; --wn-y: #ffd35a; --wn-y2: #f6a13b; --wn-cream: #fff8e6; --wn-line: #5a3d12;
	--wn-red: #e8505b; --wn-green: #4fb56f; --wn-card: #fffdf6; --wn-shadow: 0 3px 0 rgba(90, 61, 18, .35);
	--wn-safe-b: env(safe-area-inset-bottom, 0px); --wn-safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body.wnb { margin: 0; height: 100%; overflow: hidden; background: #ffe9a8; overscroll-behavior: none; }
body.wnb { font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif; color: var(--wn-ink); -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.wn { position: fixed; inset: 0; }
.wn-boot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
.wn-boot b { font-size: 28px; font-weight: 900; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
img { max-width: 100%; }

.wn-app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; max-width: 720px; margin: 0 auto;
	background: linear-gradient(180deg, #ffe7a0 0%, #fff4d2 45%, #ffeec4 100%); }
.wn-app[data-bg="sunset"] { background: linear-gradient(180deg, #ffb58a, #ffe6bf); }
.wn-app[data-bg="night"] { background: linear-gradient(180deg, #2b2f6b, #5b4f95); }
.wn-app[data-bg="snow"] { background: linear-gradient(180deg, #d7e6f3, #f7fafd); }
.wn-app[data-bg="sakura"] { background: linear-gradient(180deg, #ffd3e4, #fff4f8); }
.wn-app::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .7) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .6) 0 2px, transparent 3px);
	background-size: 90px 90px, 130px 130px; }

/* ---------- 共通の部品 ---------- */
.wn-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; margin: 8px 0 0; padding: 10px 14px; border-radius: 16px;
	background: linear-gradient(180deg, #ffe07a, #f6b93b); border: 3px solid var(--wn-line); box-shadow: var(--wn-shadow); font-weight: 900; font-size: 16px; color: var(--wn-ink); text-decoration: none; }
.wn-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(90, 61, 18, .35); }
.wn-btn:disabled { filter: grayscale(.7); opacity: .6; }
.wn-btn small { font-size: 12px; font-weight: 800; opacity: .8; }
.wn-btn--go { background: linear-gradient(180deg, #ff9a5a, #f0623b); color: #fff; text-shadow: 0 2px 0 rgba(120, 30, 0, .45); font-size: 19px; min-height: 56px; }
.wn-btn--sub { background: #fff; font-size: 14px; min-height: 42px; border-width: 2px; }
.wn-btn--up { width: auto; min-height: 38px; margin: 0; padding: 6px 12px; font-size: 14px; border-width: 2px; background: linear-gradient(180deg, #b6f08a, #6fcf4f); }
.wn-btn--danger { background: #fff; color: var(--wn-red); border-color: var(--wn-red); font-size: 14px; min-height: 42px; }
.wn-btn--x { background: #1d1d1f; color: #fff; font-size: 14px; min-height: 42px; border-color: #000; }
.wn-link { display: block; margin: 14px auto 6px; font-weight: 800; font-size: 13px; color: var(--wn-sub); text-decoration: underline; }
.wn-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--wn-sub); font-weight: 700; }
.wn-note--top { margin: 0 2px 10px; }
.wn-note--err { color: var(--wn-red); }
.wn-ic { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: -4px; background: center / contain no-repeat; }
.wn-ic--paw { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23e87a3b'%3E%3Cellipse cx='12' cy='16' rx='5.5' ry='4.5'/%3E%3Ccircle cx='5' cy='10' r='2.4'/%3E%3Ccircle cx='9' cy='5.6' r='2.4'/%3E%3Ccircle cx='15' cy='5.6' r='2.4'/%3E%3Ccircle cx='19' cy='10' r='2.4'/%3E%3C/g%3E%3C/svg%3E"); }
.wn-ic--fruit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6c-4-3-9 0-8 6 1 5 5 9 8 9s7-4 8-9c1-6-4-9-8-6z' fill='%23e8505b'/%3E%3Cpath d='M12 6c0-2 1-4 3-4' stroke='%235a3d12' stroke-width='1.6' fill='none'/%3E%3Cpath d='M13 4c2-1 4 0 5 1-2 1-4 1-5-1z' fill='%234fb56f'/%3E%3C/svg%3E"); }
.wn-ic--stamp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' fill='%23fff' stroke='%23e8505b' stroke-width='2' stroke-dasharray='2 1.4'/%3E%3Cpath d='M12 17s-5-3-5-6.5A2.6 2.6 0 0 1 12 9a2.6 2.6 0 0 1 5 1.5C17 14 12 17 12 17z' fill='%23e8505b'/%3E%3C/svg%3E"); }
.wn-tr { display: inline-block; margin: 0 4px 3px 0; padding: 1px 8px; border-radius: 999px; background: var(--c); color: #fff; font-style: normal; font-size: 11px; font-weight: 900; }
.wn-msg { position: absolute; left: 50%; top: calc(64px + var(--wn-safe-t)); transform: translateX(-50%); z-index: 90; max-width: 88%; padding: 10px 16px; border-radius: 14px; background: rgba(58, 42, 20, .92); color: #fff; font-weight: 800; font-size: 14px; text-align: center; animation: wnPop .25s ease-out; }
.wn-float { position: absolute; z-index: 60; transform: translate(-50%, -100%); padding: 3px 8px; border-radius: 8px; background: rgba(58, 42, 20, .9); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; pointer-events: none; animation: wnUp .9s ease-out forwards; }
@keyframes wnPop { from { transform: translate(-50%, 8px) scale(.9); opacity: 0; } }
@keyframes wnUp { to { transform: translate(-50%, -160%); opacity: 0; } }

/* ---------- タイトル ---------- */
.wn-title { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(16px + var(--wn-safe-t)) 20px calc(16px + var(--wn-safe-b)); text-align: center; overflow-y: auto; }
.wn-title__logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.wn-title__logo img { width: min(84vw, 420px); }
.wn-title__logo b { font-size: clamp(28px, 9vw, 44px); font-weight: 900; color: #fff; -webkit-text-stroke: 7px var(--wn-line); paint-order: stroke fill; letter-spacing: .04em; }
.wn-title__logo b.is-big { font-size: clamp(48px, 16vw, 78px); color: var(--wn-y); margin-top: -2px; transform: rotate(-3deg); }
.wn-title__cast { display: flex; justify-content: center; margin: 14px 0 6px; }
.wn-title__cast img { width: clamp(58px, 17vw, 92px); height: clamp(58px, 17vw, 92px); margin: 0 -8px; border-radius: 50%; border: 3px solid var(--wn-line); background: #fff; object-fit: cover; animation: wnBob 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * .18s); }
@keyframes wnBob { 50% { transform: translateY(-8px); } }
.wn-title__lead { margin: 8px 0 4px; font-weight: 800; font-size: 14px; line-height: 1.7; }
.wn-title__go { max-width: 320px; }

/* ---------- ホーム ---------- */
.wn-top { position: relative; z-index: 5; display: flex; align-items: center; gap: 6px; padding: calc(6px + var(--wn-safe-t)) 10px 6px; background: rgba(255, 248, 230, .92); border-bottom: 3px solid var(--wn-line); }
.wn-top__back { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--wn-line); color: var(--wn-ink); font-size: 24px; font-weight: 900; text-decoration: none; line-height: 1; }
.wn-top__logo { flex: 1; min-width: 0; line-height: 1; }
.wn-top__logo img { height: 34px; }
.wn-top__logo b { display: inline-flex; flex-direction: column; font-size: 11px; font-weight: 900; white-space: nowrap; line-height: 1.05; }
.wn-top__logo b span { display: block; font-size: 18px; color: var(--wn-y2); -webkit-text-stroke: 1px var(--wn-line); letter-spacing: .02em; }
.wn-top__res { display: flex; gap: 4px; }
.wn-res { display: flex; align-items: center; gap: 2px; padding: 3px 7px 3px 4px; border-radius: 999px; background: #fff; border: 2px solid rgba(90, 61, 18, .5); font-size: 13px; font-weight: 900; }
.wn-top__set { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--wn-line); font-size: 17px; }
.wn-main { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px 18px; }
.wn-nav { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px calc(4px + var(--wn-safe-b)); background: #fff8e6; border-top: 3px solid var(--wn-line); }
.wn-nav__b { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; border-radius: 12px; font-size: 11px; font-weight: 900; color: var(--wn-sub); }
.wn-nav__b.is-on { background: var(--wn-y); color: var(--wn-ink); box-shadow: inset 0 0 0 2px var(--wn-line); }
.wn-nav__i { width: 26px; height: 26px; background: center / contain no-repeat; }
.wn-nav__i--stage { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 21V4l9 3-9 3' fill='%23e8505b' stroke='%235a3d12' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M2 21h20' stroke='%235a3d12' stroke-width='2'/%3E%3C/svg%3E"); }
.wn-nav__i--units { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23f6a13b' stroke='%235a3d12' stroke-width='1.4'%3E%3Ccircle cx='8' cy='10' r='5'/%3E%3Ccircle cx='16' cy='12' r='5'/%3E%3C/g%3E%3Cpath d='M3 22c1-4 4-5 5-5s4 1 5 5' fill='%23ffd35a' stroke='%235a3d12' stroke-width='1.4'/%3E%3C/svg%3E"); }
.wn-nav__i--home { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11l9-7 9 7' fill='%23e8705a' stroke='%235a3d12' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M5 10v11h14V10' fill='%23fff4d6' stroke='%235a3d12' stroke-width='1.6'/%3E%3Crect x='10' y='14' width='4' height='7' fill='%238a6a4a'/%3E%3C/svg%3E"); }
.wn-nav__i--daily { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='3' fill='%23fff' stroke='%235a3d12' stroke-width='1.6'/%3E%3Cpath d='M3 10h18' stroke='%235a3d12' stroke-width='1.6'/%3E%3Cpath d='M8 3v4M16 3v4' stroke='%235a3d12' stroke-width='2'/%3E%3Cpath d='M12 13l1.2 2.4 2.6.4-1.9 1.8.5 2.6-2.4-1.3-2.4 1.3.5-2.6-1.9-1.8 2.6-.4z' fill='%23ffd35a' stroke='%235a3d12' stroke-width='.8'/%3E%3C/svg%3E"); }
.wn-nav__i--shop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3l-5 4 3 3 2-1v12h8V9l2 1 3-3-5-4c-1 2-2 3-4 3s-3-1-4-3z' fill='%23ff9ec4' stroke='%235a3d12' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wn-dot { position: absolute; top: 3px; right: calc(50% - 20px); width: 10px; height: 10px; border-radius: 50%; background: var(--wn-red); border: 2px solid #fff; }
.wn-card { margin: 0 0 12px; padding: 12px; border-radius: 18px; background: var(--wn-card); border: 3px solid var(--wn-line); box-shadow: var(--wn-shadow); }
.wn-card h2 { margin: 0 0 8px; font-size: 16px; font-weight: 900; }
.wn-card h2 small { font-size: 11.5px; color: var(--wn-sub); font-weight: 800; }

/* ステージ */
.wn-chs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.wn-ch { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 14px; background: #fff; border: 2px solid var(--wn-line); font-weight: 900; line-height: 1.2; }
.wn-ch b { font-size: 14px; }
.wn-ch span { font-size: 10px; color: var(--wn-sub); }
.wn-ch.is-on { background: var(--wn-y); box-shadow: var(--wn-shadow); }
.wn-ch.is-lock { opacity: .45; }
.wn-hardsw { display: block; width: 100%; margin: 0 0 10px; padding: 7px; border-radius: 12px; background: #fff; border: 2px dashed var(--wn-red); color: var(--wn-red); font-weight: 900; font-size: 13px; }
.wn-hardsw.is-on { background: var(--wn-red); color: #fff; border-style: solid; }
.wn-own { display: flex; flex-direction: column; gap: 3px; margin: 0 0 10px; padding: 10px 12px; border-radius: 16px; background: linear-gradient(135deg, #fff, #ffeef5); border: 2px solid #f08fb0; font-size: 12.5px; font-weight: 700; line-height: 1.55; }
.wn-own b { font-size: 14px; font-weight: 900; color: #c0406e; }
.wn-own .wn-btn { margin-top: 4px; }
.wn-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wn-st { position: relative; display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; width: 100%; padding: 8px 10px; border-radius: 16px; background: #fff; border: 3px solid var(--wn-line); box-shadow: var(--wn-shadow); text-align: left; }
.wn-st:active { transform: translateY(2px); box-shadow: none; }
.wn-st__no { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--wn-y); border: 2px solid var(--wn-line); font-weight: 900; font-size: 14px; }
.wn-st.is-clear .wn-st__no { background: #bff0a0; }
.wn-st.is-boss .wn-st__no { background: #ffb3b8; }
.wn-st__n { font-weight: 900; font-size: 14.5px; line-height: 1.25; }
.wn-st__n em { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--wn-red); color: #fff; font-style: normal; font-size: 10px; vertical-align: 2px; }
.wn-st__tr { display: flex; gap: 3px; }
.wn-st__tr i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .25); }
.wn-st__stars { grid-column: 3; grid-row: 1 / 3; font-size: 17px; letter-spacing: -1px; }
.wn-st__stars i { font-style: normal; color: #ddd3bf; -webkit-text-stroke: 1px rgba(90, 61, 18, .4); }
.wn-st__stars i.is-on { color: #ffc72c; }
.wn-st__gift { position: absolute; right: 8px; top: -9px; display: flex; align-items: center; gap: 2px; padding: 1px 7px 1px 2px; border-radius: 999px; background: #fff3a8; border: 2px solid var(--wn-line); font-size: 10px; font-weight: 900; }
.wn-st__gift img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.wn-st.is-lock { opacity: .5; filter: grayscale(.6); box-shadow: none; }

/* なかま */
.wn-deck { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wn-slot { position: relative; aspect-ratio: 1 / 1.08; border-radius: 12px; background: #fff; border: 3px solid var(--sc, var(--wn-line)); overflow: hidden; }
.wn-slot img { width: 100%; height: 100%; object-fit: cover; }
.wn-slot b { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(58, 42, 20, .8); color: #fff; font-size: 11px; font-weight: 900; text-align: center; }
.wn-slot em { position: absolute; left: 2px; top: 2px; padding: 0 4px; border-radius: 6px; background: rgba(255, 255, 255, .9); font-size: 9.5px; font-style: normal; font-weight: 900; }
.wn-slot.is-empty { border-style: dashed; border-color: rgba(90, 61, 18, .35); display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--wn-sub); }
.wn-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.wn-unit { position: relative; display: flex; flex-direction: column; align-items: center; padding: 4px 2px 6px; border-radius: 14px; background: #fff; border: 3px solid var(--sc); line-height: 1.2; }
.wn-unit img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.wn-unit b { margin-top: 2px; font-size: 11.5px; font-weight: 900; }
.wn-unit span { font-size: 9.5px; font-weight: 800; color: var(--wn-sub); text-align: center; }
.wn-unit.is-lock { border-color: #ccc; }
.wn-unit__q { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 10px; background: repeating-linear-gradient(45deg, #f3ecdc 0 8px, #ebe2cd 8px 16px); color: #c9b98f; font-size: 28px; font-weight: 900; }
.wn-unit.is-deck::after { content: "出撃"; position: absolute; left: 3px; top: 3px; padding: 0 5px; border-radius: 6px; background: var(--wn-y2); color: #fff; font-size: 9.5px; font-weight: 900; }
.wn-crown { position: absolute; right: 3px; top: 3px; padding: 0 5px; border-radius: 6px; background: #ffd400; font-size: 9.5px; font-style: normal; font-weight: 900; }
.wn-up { position: absolute; right: 3px; bottom: 34px; padding: 0 5px; border-radius: 6px; background: var(--wn-green); color: #fff; font-size: 9.5px; font-style: normal; font-weight: 900; animation: wnBob 1.2s infinite; }

/* おうち */
.wn-homes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wn-homes li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid rgba(90, 61, 18, .35); }
.wn-homes li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wn-homes b { font-size: 14px; font-weight: 900; }
.wn-homes span { font-size: 12px; font-weight: 800; color: var(--wn-sub); }
.wn-homes em { font-style: normal; font-weight: 900; color: var(--wn-green); }
.wn-bar { display: block; height: 7px; border-radius: 99px; background: #eee4cf; overflow: hidden; }
.wn-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd35a, #f6a13b); }

/* 毎日 */
.wn-daily__tr { margin: 8px 0 2px; }
.wn-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.wn-qs li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid rgba(90, 61, 18, .35); }
.wn-qs li.is-done { background: #f1fbe9; border-color: var(--wn-green); }
.wn-qs__t { flex: 1; font-size: 13px; font-weight: 800; line-height: 1.4; }
.wn-qs__st { display: flex; align-items: center; font-size: 12px; font-weight: 900; white-space: nowrap; }
.wn-qs em { font-style: normal; font-size: 11.5px; font-weight: 900; color: var(--wn-sub); white-space: nowrap; }

/* きせかえ */
.wn-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.wn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 8px; border-radius: 14px; background: #fff; border: 2px solid rgba(90, 61, 18, .35); font-size: 11.5px; font-weight: 900; line-height: 1.25; text-align: center; }
.wn-item.is-on { border: 3px solid var(--wn-y2); background: #fff6d9; }
.wn-item > span:last-child { display: flex; align-items: center; gap: 2px; font-size: 11px; color: var(--wn-sub); }
.wn-item__pv { width: 100%; aspect-ratio: 1.3; border-radius: 10px; background: #eee center / cover; }
.wn-pv--castle-house { background: linear-gradient(180deg, #8fd3ff 60%, #c9a46b 60%); }
.wn-pv--castle-cake { background: radial-gradient(circle at 50% 70%, #ffd1e1 0 30%, transparent 31%), linear-gradient(180deg, #8fd3ff 60%, #c9a46b 60%); }
.wn-pv--castle-tree { background: radial-gradient(circle at 50% 40%, #5fbf5f 0 28%, transparent 29%), linear-gradient(180deg, #8fd3ff 60%, #c9a46b 60%); }
.wn-pv--castle-light { background: linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%), linear-gradient(180deg, #8fd3ff 60%, #6cc3e8 60%); }
.wn-pv--castle-palace { background: radial-gradient(circle at 50% 45%, #ffe08a 0 22%, transparent 23%), linear-gradient(180deg, #c9b8ff 60%, #c9a46b 60%); }
.wn-pv--bg-day { background: linear-gradient(180deg, #8fd3ff, #e9f8ff 65%, #9ed89a 65%); }
.wn-pv--bg-sunset { background: linear-gradient(180deg, #ff9a6b, #ffe0a8 65%, #c9a46b 65%); }
.wn-pv--bg-night { background: linear-gradient(180deg, #1b2250, #4a4a8a 65%, #3a2f66 65%); }
.wn-pv--bg-snow { background: linear-gradient(180deg, #b9cde0, #f2f6fb 65%, #fff 65%); }
.wn-pv--bg-sakura { background: linear-gradient(180deg, #ffc4dc, #fff2f7 65%, #f6b3cb 65%); }
.wn-pv--fx-confetti { background: repeating-linear-gradient(45deg, #ffd35a 0 6px, #ff7aa8 6px 12px, #6cc3e8 12px 18px); }
.wn-pv--fx-hearts { background: radial-gradient(circle, #ff7aa8 0 5px, transparent 6px) 0 0 / 16px 16px, #fff0f6; }
.wn-pv--fx-fire { background: radial-gradient(circle, #ffd35a 0 3px, transparent 4px) 0 0 / 12px 12px, #1b2250; }

/* ---------- シート ---------- */
.wn-sheet { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; }
.wn-sheet__bg { position: absolute; inset: 0; background: rgba(40, 25, 5, .45); animation: wnFade .2s; }
@keyframes wnFade { from { opacity: 0; } }
.wn-sheet__box { position: relative; max-height: calc(100% - 24px - var(--wn-safe-t)); display: flex; flex-direction: column; min-height: 0; border-radius: 24px 24px 0 0; background: var(--wn-cream); border: 3px solid var(--wn-line); border-bottom: 0; animation: wnSlide .25s ease-out; }
@keyframes wnSlide { from { transform: translateY(40px); opacity: 0; } }
.wn-sheet__body { min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(18px + var(--wn-safe-b)); }
.wn-sheet h3 { margin: 0 34px 8px 0; font-size: 18px; font-weight: 900; }
.wn-x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--wn-line); font-size: 20px; font-weight: 900; line-height: 1; }
.wn-rng { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 900; }
.wn-rng input { flex: 1; accent-color: var(--wn-y2); }
.wn-chk { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-weight: 900; }
.wn-howto { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.65; font-weight: 700; }
.wn-howto li { margin-bottom: 8px; }
.wn-howto b { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 6px; background: var(--wn-y); }
.wn-confirm p { font-weight: 700; line-height: 1.6; }

/* 動物の詳しい画面 */
.wn-us__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-right: 40px; }
.wn-us__tab { position: relative; padding: 6px 0; border-radius: 10px; background: #fff; border: 2px solid var(--sc); font-size: 11.5px; font-weight: 900; }
.wn-us__tab.is-on { background: var(--sc); color: #fff; }
.wn-us__tab.is-lock { opacity: .45; }
.wn-us__tab i { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); padding: 0 5px; border-radius: 6px; background: var(--wn-y2); color: #fff; font-size: 9px; font-style: normal; white-space: nowrap; }
.wn-us__hero { position: relative; display: flex; justify-content: center; margin: 10px 0 4px; padding: 6px; border-radius: 18px; background: var(--sl); border: 3px solid var(--sc); }
.wn-us__hero img { width: min(52vw, 210px); aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.wn-us__say { position: absolute; left: 8px; bottom: 8px; max-width: 60%; padding: 5px 9px; border-radius: 12px; background: #fff; border: 2px solid var(--sc); font-size: 12px; font-weight: 900; }
.wn-us__n { margin: 6px 0 4px !important; font-size: 17px !important; }
.wn-us__n small { display: block; font-size: 12px; color: var(--wn-sub); }
.wn-us__n .wn-crown { position: static; display: inline-block; margin-top: 3px; }
.wn-us__st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 6px 0; }
.wn-us__st div { padding: 4px 6px; border-radius: 10px; background: #fff; border: 2px solid rgba(90, 61, 18, .25); }
.wn-us__st dt { font-size: 10.5px; font-weight: 800; color: var(--wn-sub); }
.wn-us__st dd { margin: 0; font-size: 15px; font-weight: 900; }
.wn-us__role { margin: 4px 0 0; font-size: 13px; font-weight: 900; }
.wn-us__sk { margin: 6px 0; padding-left: 18px; font-size: 12.5px; font-weight: 800; line-height: 1.6; }
.wn-us__sk .is-style { color: var(--sc); }
.wn-us__lv { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 2px solid rgba(90, 61, 18, .35); }
.wn-us__lv b { font-size: 18px; font-weight: 900; }
.wn-us__lv small { font-size: 12px; color: var(--wn-sub); }

/* 出撃準備 */
.wn-prep__meta { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: var(--wn-sub); }
.wn-foes { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.wn-foes li { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 14px; background: #fff; border: 2px solid rgba(90, 61, 18, .25); }
.wn-foes li.is-boss { border-color: var(--wn-red); background: #fff1f1; }
.wn-foe { width: 48px; height: 48px; flex: none; }
.wn-foes b { display: block; font-size: 13.5px; font-weight: 900; }
.wn-foes span { display: block; font-size: 11.5px; font-weight: 700; color: var(--wn-sub); }
.wn-prep h4 { margin: 8px 0 6px; font-size: 14px; font-weight: 900; }
.wn-prep h4 small { font-size: 11px; color: var(--wn-sub); }
.wn-deck.is-small { gap: 4px; }

/* ランキング */
.wn-rtabs, .wn-lgs { display: flex; gap: 5px; margin-bottom: 8px; }
.wn-rtabs button, .wn-lgs button { flex: 1; padding: 6px 2px; border-radius: 10px; background: #fff; border: 2px solid var(--wn-line); font-size: 12.5px; font-weight: 900; }
.wn-lgs button { font-size: 11px; border-width: 1.5px; }
.wn-rtabs .is-on, .wn-lgs .is-on { background: var(--wn-y); }
.wn-rlist ol { list-style: none; margin: 0; padding: 0; }
.wn-rlist li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed rgba(90, 61, 18, .25); font-weight: 800; }
.wn-rlist li.is-me { background: #fff3c4; border-radius: 10px; }
.wn-rlist li > b { width: 26px; text-align: center; font-size: 15px; }
.wn-rlist li img, .wn-rlist li > i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eee; }
.wn-rlist li button { flex: 1; text-align: left; font-weight: 900; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-rlist li span { font-weight: 900; font-variant-numeric: tabular-nums; }
.wn-rme { margin: 8px 0 0; font-weight: 900; text-align: center; }

/* ---------- 戦闘 ---------- */
.wn-app.is-battle::before { display: none; }
.wn-bt { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: #2f2615; }
.wn-bt__top { display: flex; align-items: center; gap: 6px; padding: calc(4px + var(--wn-safe-t)) 6px 4px; background: #3a2c14; }
.wn-pause, .wn-speed { flex: none; width: 38px; height: 34px; border-radius: 10px; background: #fff3c4; border: 2px solid #1e1507; font-weight: 900; font-size: 15px; }
.wn-speed { width: 44px; font-size: 14px; }
.wn-bt__hp { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5px; }
.wn-bt__ttl { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff3c4; font-size: 11px; font-weight: 900; text-align: center; }
.wn-hpb { position: relative; height: 18px; border-radius: 8px; background: #1e1507; overflow: hidden; border: 2px solid #1e1507; }
.wn-hpb > i { position: absolute; top: 0; bottom: 0; transition: width .15s; }
.wn-hpb--e > i { left: 0; background: linear-gradient(180deg, #b69aff, #7a5ad0); }
.wn-hpb--p > i { right: 0; background: linear-gradient(180deg, #ffe07a, #f6a13b); }
.wn-hpb--p.is-low > i { background: linear-gradient(180deg, #ff8a8a, #e8505b); animation: wnBlink .6s infinite; }
@keyframes wnBlink { 50% { opacity: .55; } }
.wn-hpb span { position: relative; display: block; font-size: 10.5px; font-weight: 900; color: #fff; text-align: center; line-height: 14px; text-shadow: 0 1px 1px #000; }
.wn-field { position: relative; flex: 1; min-height: 120px; overflow: hidden; touch-action: none; }
.wn-cv { display: block; }
.wn-clock { position: absolute; right: 6px; top: 4px; padding: 1px 7px; border-radius: 8px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums; pointer-events: none; }
.wn-boss { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); display: none; width: 60%; pointer-events: none; }
.wn-boss.is-on { display: block; }
.wn-boss b { display: block; color: #fff; font-size: 11px; font-weight: 900; text-align: center; text-shadow: 0 1px 2px #000; }
.wn-boss > i { display: block; height: 7px; border-radius: 6px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.wn-boss > i > i { display: block; height: 100%; background: #ff4a5a; }
.wn-banner { position: absolute; left: 0; right: 0; top: 30%; z-index: 5; display: flex; justify-content: center; pointer-events: none; animation: wnBan 1.6s ease-out forwards; }
.wn-banner span { padding: 5px 14px; border-radius: 12px; background: var(--c, #3a2c14); color: #fff; font-size: 13px; font-weight: 900; border: 2px solid rgba(0, 0, 0, .3); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.wn-banner.is-boss { top: 22%; animation-duration: 2.2s; }
.wn-banner.is-boss span { background: #d8323f; font-size: 18px; padding: 8px 20px; border: 3px solid #fff; }
@keyframes wnBan { 0% { transform: scale(.6); opacity: 0; } 12% { transform: scale(1.08); opacity: 1; } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.wn-mini { flex: none; height: 14px; padding: 0 6px; background: #3a2c14; }
.wn-mini canvas { display: block; width: 100%; height: 14px; border-radius: 4px; }
.wn-ctl { flex: none; display: grid; grid-template-columns: 76px 1fr 64px; align-items: center; gap: 6px; padding: 5px 6px; background: #4a3818; }
.wn-wal { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 46px; border-radius: 12px; background: #7a6444; border: 2px solid #1e1507; color: #fff; line-height: 1.1; }
.wn-wal.is-ok { background: linear-gradient(180deg, #b6f08a, #4fb56f); color: #1e1507; animation: wnGlow 1s infinite; }
@keyframes wnGlow { 50% { box-shadow: 0 0 0 3px rgba(182, 240, 138, .5); } }
.wn-wal__lv { font-size: 11px; font-weight: 900; }
.wn-wal__c { font-size: 15px; font-weight: 900; }
.wn-money { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 4px; height: 46px; padding-top: 6px; border-radius: 12px; background: #1e1507; color: #ffe07a; font-variant-numeric: tabular-nums; }
.wn-money b { font-size: 22px; font-weight: 900; }
.wn-money span { font-size: 12px; font-weight: 800; color: #c9b083; }
.wn-money__bar { position: absolute; left: 6px; right: 6px; bottom: 5px; height: 5px; border-radius: 4px; background: #3a2c14; overflow: hidden; }
.wn-money__bar i { display: block; height: 100%; background: #ffd35a; }
.wn-beam { position: relative; height: 56px; display: grid; place-items: center; }
.wn-beam svg { position: absolute; width: 56px; height: 56px; transform: rotate(-90deg); }
.wn-beam__bg { fill: #7a6444; stroke: #1e1507; stroke-width: 5; }
.wn-beam__fg { fill: none; stroke: #ffd35a; stroke-width: 5; stroke-dasharray: 106.8; stroke-dashoffset: 106.8; }
.wn-beam span { position: relative; color: #fff; font-size: 11px; font-weight: 900; }
.wn-beam.is-ok .wn-beam__bg { fill: #ff7aa8; }
.wn-beam.is-ok { animation: wnPulse .8s infinite; }
@keyframes wnPulse { 50% { transform: scale(1.08); } }
.wn-dps { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 4px 6px calc(6px + var(--wn-safe-b)); background: #4a3818; }
.wn-dp { position: relative; height: clamp(50px, 14.5vw, 72px); border-radius: 12px; background: #fff; border: 3px solid var(--sc); overflow: hidden; touch-action: manipulation; filter: grayscale(.75) brightness(.8); }
.wn-dp.is-ok { filter: none; }
.wn-dp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; pointer-events: none; }
.wn-dp b { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(30, 21, 7, .82); color: #ffe07a; font-size: 12px; font-weight: 900; text-align: center; line-height: 16px; pointer-events: none; }
.wn-dp__cd { position: absolute; left: 0; right: 0; top: 0; height: 0; background: rgba(20, 14, 4, .62); pointer-events: none; }
.wn-dp.is-empty { background: rgba(255, 255, 255, .08); border: 2px dashed rgba(255, 255, 255, .2); filter: none; }
.wn-dp.is-pop { animation: wnTap .22s ease-out; }
@keyframes wnTap { 40% { transform: scale(.9); } }
.wn-tut { position: absolute; left: 12px; right: 12px; z-index: 70; display: flex; justify-content: center; pointer-events: auto; animation: wnPop2 .3s ease-out; }
.wn-tut span { padding: 9px 14px; border-radius: 14px; background: #fff; border: 3px solid var(--wn-y2); font-size: 13.5px; font-weight: 900; box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
@keyframes wnPop2 { from { transform: scale(.8); opacity: 0; } }

/* 結果 */
.wn-result { text-align: center; }
.wn-result h2 { margin: 2px 0 4px; font-size: 30px; font-weight: 900; color: #fff; -webkit-text-stroke: 6px var(--wn-line); paint-order: stroke fill; }
.wn-result.is-win h2 { color: var(--wn-y); }
.wn-result.is-lose h2 { color: #9fb6d6; }
.wn-res__stars { font-size: 42px; letter-spacing: 4px; }
.wn-res__stars i { display: inline-block; font-style: normal; color: #ddd3bf; -webkit-text-stroke: 2px rgba(90, 61, 18, .5); }
.wn-res__stars i.is-on { color: #ffc72c; animation: wnStar .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d); }
@keyframes wnStar { from { transform: scale(0) rotate(-40deg); } }
.wn-res__meta { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--wn-sub); }
.wn-res__gain { list-style: none; margin: 0 auto 6px; padding: 8px 12px; max-width: 340px; border-radius: 14px; background: #fff; border: 2px solid rgba(90, 61, 18, .3); text-align: left; font-size: 14px; font-weight: 900; }
.wn-res__gain li { display: flex; align-items: center; gap: 5px; margin: 3px 0; }
.wn-newu { position: relative; margin: 10px auto; padding: 14px 10px 10px; max-width: 280px; border-radius: 18px; background: linear-gradient(160deg, #fff7c8, #ffe0f0); border: 3px solid var(--wn-y2); animation: wnPop2 .5s .4s both; }
.wn-newu em { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 2px 12px; border-radius: 999px; background: var(--wn-red); color: #fff; font-style: normal; font-size: 13px; font-weight: 900; white-space: nowrap; }
.wn-newu img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--wn-line); background: #fff; }
.wn-newu b { display: block; font-size: 17px; font-weight: 900; }
.wn-newu span { display: block; font-size: 12px; font-weight: 800; color: var(--wn-sub); }
.wn-hint { margin: 8px auto; max-width: 360px; padding: 8px 12px; border-radius: 14px; background: #eef5ff; border: 2px solid #9fb6d6; font-size: 13px; font-weight: 800; line-height: 1.6; text-align: left; }
.wn-hint b { display: block; font-size: 12px; color: #4a6a9a; }
.wn-res__btns { max-width: 360px; margin: 0 auto; }
.wn-conf { position: absolute; inset: 0; z-index: 85; pointer-events: none; overflow: hidden; }
.wn-conf i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; font-style: normal; font-size: 22px; animation: wnFall 2.6s linear forwards; }
.wn-conf--hearts i { width: auto; height: auto; }
.wn-conf--fire i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); top: 70%; animation: wnFire 1.4s ease-out forwards; box-shadow: 0 0 10px var(--c); }
@keyframes wnFall { to { transform: translate(var(--x), 110vh) rotate(540deg); } }
@keyframes wnFire { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 100% { transform: translate(var(--x), -60vh) scale(1.4); opacity: 0; } }

/* 低い画面（ブラウザの帯込みで 560 前後） */
@media (max-height: 620px) {
	.wn-top { padding-top: calc(4px + var(--wn-safe-t)); padding-bottom: 4px; }
	.wn-nav__i { width: 22px; height: 22px; }
	.wn-main { padding-top: 8px; }
	.wn-ctl { padding: 3px 6px; }
	.wn-wal, .wn-money { height: 40px; }
	.wn-money { padding-top: 3px; }
	.wn-money b { font-size: 19px; }
	.wn-beam { height: 46px; }
	.wn-beam svg { width: 46px; height: 46px; }
	.wn-dp { height: clamp(46px, 13vw, 60px); }
	.wn-title__cast img { width: 54px; height: 54px; }
	.wn-us__hero img { width: 150px; }
}
@media (min-width: 720px) {
	.wn-app { border-left: 3px solid var(--wn-line); border-right: 3px solid var(--wn-line); }
	.wn-units { grid-template-columns: repeat(6, 1fr); }
}

.is-hint { animation: wnHint .6s ease-in-out 4 !important; }
@keyframes wnHint { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--wn-y2); } }

/* 2026-09-30 見た目の直し（おやつ不足はボタンの中に・タイトルの絵） */
.wn-dp.is-poor::after { content: "おやつ不足"; position: absolute; left: 0; right: 0; top: 0; bottom: 16px; display: grid; place-items: center; background: rgba(30, 21, 7, .62); color: #ffe07a; font-size: 10.5px; font-weight: 900; pointer-events: none; }
.wn-dp.is-poor { animation: wnShake .3s; }
@keyframes wnShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.wn-title { justify-content: center; gap: 4px; }
.wn-title__kv { display: block; width: calc(100% + 40px); max-width: 680px; height: clamp(150px, 30vh, 280px); margin: 8px -20px 0; }
.wn-title__cast { display: none; }
@media (max-height: 620px) { .wn-title__kv { height: 140px; } .wn-title__logo b.is-big { font-size: 44px; } }

/* 2026-09-30 夜 背景の生成画像（置いたときだけ効く。無ければ今のグラデーション） */
.wn.has-bgt .wn-app.is-title { background: var(--wn-bgt) center / cover no-repeat, #ffe7a0; }
.wn.has-bgt .wn-app.is-title::before { display: none; }
.wn.has-bgt .wn-title__lead { padding: 6px 12px; border-radius: 14px; background: rgba(255, 248, 230, .82); }
.wn.has-bgh .wn-app.is-home { background: var(--wn-bgh) center top / 512px auto repeat, #fff4d2; }
.wn.has-bgh .wn-app.is-home::before { display: none; }

/* 横持ち（高さが低い）: 出撃ボタンを1段10個に・タイトルを詰める */
@media (orientation: landscape) and (max-height: 520px) {
	.wn-dps { grid-template-columns: repeat(10, 1fr); gap: 4px; padding-top: 3px; }
	.wn-dp { height: clamp(44px, 12vh, 56px); }
	.wn-ctl { grid-template-columns: 76px 1fr 56px; padding: 2px 6px; }
	.wn-wal, .wn-money { height: 38px; }
	.wn-money { padding-top: 2px; }
	.wn-beam { height: 42px; } .wn-beam svg { width: 42px; height: 42px; }
	.wn-title { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 6px 16px; }
	.wn-title__logo { width: 38%; } .wn-title__logo b { font-size: 24px; } .wn-title__logo b.is-big { font-size: 40px; }
	.wn-title__kv { width: 56%; height: 150px; margin: 0; }
	.wn-title__lead { width: 100%; margin: 0; font-size: 12.5px; }
	.wn-title__go { max-width: 280px; min-height: 46px; margin: 0; }
	.wn-title .wn-link { margin: 0; }
}

/* ===== 2026-10-02 ガチャのなかま・ランキングの固定編成・週末のおまつり・ログインボーナス ===== */
.wn-nav { grid-template-columns: repeat(6, 1fr); }
.wn-nav__b { font-size: 10.5px; }
.wn-nav__i--gacha { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-30 12 12)'%3E%3Cpath d='M7 12V9a5 5 0 0 1 10 0v3z' fill='%23ff7aa8' stroke='%235a3d12' stroke-width='1.5'/%3E%3Cpath d='M7 12v3a5 5 0 0 0 10 0v-3z' fill='%23ffd35a' stroke='%235a3d12' stroke-width='1.5'/%3E%3Cpath d='M9 8.5a3 3 0 0 1 2-2' stroke='%23fff' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3Cpath d='M19 4l.7 1.6 1.6.7-1.6.7L19 8.6l-.7-1.6-1.6-.7 1.6-.7z' fill='%23ffd35a' stroke='%235a3d12' stroke-width='.7'/%3E%3C/svg%3E"); }
.wn-nav__b--g span { color: #e2507e; }
.wn-gimg { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.wn-slot.is-g, .wn-dp.is-g { background: var(--rbg, #fff); }
.wn-slot.is-g img { object-fit: contain; object-position: 50% 85%; }
.wn-slot em i { margin-left: 2px; font-style: normal; color: #e2507e; }
.wn-dp.is-g img { object-fit: contain; object-position: 50% 30%; }
.wn-unit.is-g { background: #fff; }
.wn-unit.is-g .wn-gimg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: var(--rbg, #fff); }
.wn-r--UR, .wn-r--LG { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 10px var(--sc); }
.wn-r--LG { border-color: #ff4f7a; box-shadow: 0 0 0 2px #fff, 0 0 12px #ffb84d, 0 0 4px #c49bff; }
.wn-plus { position: absolute; right: 3px; top: 3px; padding: 0 5px; border-radius: 6px; background: #e2507e; color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
.wn-unit.is-g.is-deck::after { background: var(--sc); }
.wn-gcard h2 small { color: #c04cf0; }
.wn-rh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 12px 0 6px; font-size: 13px; font-weight: 900; color: var(--wn-sub); }
.wn-rh b { padding: 1px 10px; border-radius: 10px; background: var(--sc); color: #fff; font-size: 12.5px; }
.wn-rh small { flex-basis: 100%; font-size: 11px; color: var(--sc); }
.wn-rh + .wn-units:empty { display: none; }
.wn-glock { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 4px; margin-top: 6px; }
.wn-glock i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; border: 2px solid var(--sc); background: repeating-linear-gradient(45deg, #f3ecdc 0 6px, #ebe2cd 6px 12px); color: #b9a77d; font-size: 13px; font-style: normal; font-weight: 900; opacity: .8; }
.wn-us--g .wn-us__hero { padding: 10px 6px 4px; }
.wn-us--g .wn-us__hero .wn-gimg { width: min(52vw, 210px); height: min(52vw, 210px); }
.wn-us__tabs--2 { grid-template-columns: repeat(2, 1fr); }
.wn-us__tab.is-lock { opacity: .55; }
.wn-us__tab i { display: block; font-size: 9px; font-style: normal; }
.wn-rchip, .wn-pchip { position: absolute; top: 8px; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 900; color: #fff; }
.wn-rchip { left: 8px; background: var(--sc); border: 2px solid #fff; }
.wn-pchip { right: 8px; background: #e2507e; border: 2px solid #fff; }
.wn-btn--evo { background: linear-gradient(180deg, #ffe58a, #f6a13b); font-size: 15px; flex-wrap: wrap; }
.wn-btn--evo small { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; }
.wn-btn--evo:disabled { filter: grayscale(.6); opacity: .7; }
.wn-fair { margin: 8px 0 0; padding: 7px 10px; border-radius: 12px; background: #eef7ff; border: 2px dashed #5a8ee8; font-size: 12px; font-weight: 800; line-height: 1.55; color: #2b4a7a; }
.wn-fair b { color: #2b62c8; }
.wn-deck.is-fixed .wn-slot { pointer-events: none; }
.wn-event { background: linear-gradient(180deg, #fff6fb, #fffdf6); }
.wn-event.is-on { border-color: #e2507e; }
.wn-event.is-on h2 small { color: #e2507e; font-weight: 900; }
.wn-tkli { color: #c0306a; font-weight: 900; }
.wn-ic--tk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7h18v3a2 2 0 0 0 0 4v3H3v-3a2 2 0 0 0 0-4z' fill='%23ff9ec4' stroke='%235a3d12' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M15 7v10' stroke='%235a3d12' stroke-width='1.2' stroke-dasharray='2 1.5'/%3E%3C/svg%3E"); }
.wn-lb h3 { text-align: center; }
.wn-lb__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 4px; padding: 0; list-style: none; }
.wn-lb__row li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; background: #fff; border: 2px solid rgba(90, 61, 18, .25); font-size: 9.5px; font-weight: 800; color: var(--wn-sub); text-align: center; line-height: 1.2; }
.wn-lb__row li b { font-size: 10.5px; color: var(--wn-ink); }
.wn-lb__row li.is-tk { background: #fff0f6; border-color: #ff9ec4; color: #c0306a; }
.wn-lb__row li.is-got { opacity: .55; }
.wn-lb__row li.is-now { border-color: var(--wn-line); background: var(--wn-y); color: var(--wn-ink); transform: scale(1.06); }
.wn-lb__got { margin: 10px 0 0; text-align: center; font-size: 15px; font-weight: 900; }
.wn-lb__got b { color: #e2507e; font-size: 20px; }
.wn-gjoin p { font-size: 13px; line-height: 1.7; }
.wn-res__g { margin-top: 6px; }
/* 共通ガチャの画面の中の見本（.wn の外に出る） */
.wn-gpv { display: inline-flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 14px; vertical-align: middle; }
.wn-gpv .wn-gimg { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
@media (max-width: 370px) { .wn-nav__b { font-size: 9.5px; } .wn-lb__row li { font-size: 8.5px; } }
/* CROP1004 ガチャのなかまの絵を枠に収める（.wn-unit img / .wn-us__hero img の cover が .wn-gimg の contain に勝ち、横長の絵の左右が切れていた） */
.wn-unit.is-g .wn-gimg, .wn-us--g .wn-us__hero .wn-gimg, .wn-slot.is-g .wn-gimg, .wn-dp.is-g .wn-gimg, .wn-gpv .wn-gimg { object-fit: contain; box-sizing: border-box; }
.wn-unit.is-g .wn-gimg, .wn-us--g .wn-us__hero .wn-gimg { object-position: 50% 100%; padding: 6% 6% 4%; }
.wn-slot.is-g .wn-gimg { padding: 5% 6% 0; }
.wn-dp.is-g .wn-gimg { padding: 3% 4%; }
.wn-gpv .wn-gimg { padding: 6% 6% 3%; }
/* FX1004 おやつ袋を上げた時・おやつが満タンの時の光 */
[data-wal].is-fx { animation: wnWalFx .6s ease-out; }
@keyframes wnWalFx { 0% { box-shadow: 0 0 0 0 rgba(255, 224, 122, .95); } 100% { box-shadow: 0 0 0 16px rgba(255, 224, 122, 0); } }
.wn-money.is-full { box-shadow: 0 0 0 2px #ffe07a, 0 0 16px rgba(255, 211, 90, .9); animation: wnPulse 1.2s infinite; }
/* POLISH1006 空き枠に「まだ仲間でない動物」の影 */
.wn-slot.is-lock { position: relative; place-items: end center; background: rgba(255, 255, 255, .55); }
.wn-slot.is-lock img { position: absolute; inset: 6% 8% 22%; width: 84%; height: 72%; object-fit: cover; border-radius: 8px; filter: grayscale(1) blur(.5px); opacity: .32; }
.wn-slot.is-lock span { position: relative; z-index: 1; margin-bottom: 4px; padding: 0 2px; font-size: 9.5px; line-height: 1.25; font-weight: 900; color: var(--wn-sub); text-align: center; }
.wn-slot.is-lock span::before { content: '\1F512'; display: block; font-size: 12px; }
.wn-dp.is-lock img { filter: grayscale(1) brightness(.75); opacity: .4; }
