/* Article-only gacha UI. No external images, fonts, storage, or global selectors. */
.tsf {
	--tsf-blue: #0064e8;
	--tsf-ink: #123859;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 28px 0;
	padding: 20px 16px 16px;
	border: 1px solid #9edbff;
	border-radius: 16px;
	background: linear-gradient(145deg, #e6f6ff 0%, #f5fbff 72%, #e9f6ff 100%);
	color: var(--tsf-ink);
	font: normal 16px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	text-align: left;
	letter-spacing: normal;
	clear: both;
}
.tsf *, .tsf *::before, .tsf *::after { box-sizing: border-box; }
.tsf [hidden] { display: none !important; }
.tsf .tsf-heading { margin: 0 0 14px; padding: 0; text-align: center; }
.tsf .tsf-title { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; color: var(--tsf-ink); }
.tsf .tsf-title-context { display: block; margin: 0 0 3px; color: #16548b; font-size: 14px; line-height: 1.5; font-weight: 700; }
.tsf .tsf-title-main { display: block; font-size: 23px; line-height: 1.45; font-weight: 800; letter-spacing: .02em; }
.tsf .tsf-roll {
	display: block;
	width: 82%;
	max-width: 280px;
	min-height: 60px;
	margin: 0 auto;
	padding: 14px 16px;
	border: 1px solid #005bd4;
	border-radius: 999px;
	background: var(--tsf-blue);
	color: #fff;
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 750;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	box-shadow: 0 3px 0 #004bab;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .15s ease, box-shadow .15s ease;
}
.tsf .tsf-roll:hover:not(:disabled):not([aria-disabled="true"]) { background: #0055c7; }
.tsf .tsf-roll:active:not(:disabled):not([aria-disabled="true"]) { box-shadow: 0 1px 0 #004bab; }
.tsf .tsf-roll:disabled, .tsf .tsf-roll[aria-disabled="true"] { border-color: #a5c8e3; background: #e1eef7; color: #355976; box-shadow: none; cursor: default; opacity: 1; }
.tsf[data-tsf-state="rolling"] .tsf-roll { border-color: #005bd4; background: #005bcf; color: #fff; }
.tsf .tsf-results { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; border: 0; }
.tsf .tsf-card { margin: 0; padding: 0; list-style: none; border: 0; background: none; }
.tsf .tsf-card::before, .tsf .tsf-card::after { display: none; }
.tsf .tsf-spot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 68px; margin: 0; padding: 10px; border: 1px solid #b8d7ef; border-radius: 10px; background: #fff; color: var(--tsf-ink); text-decoration: none; box-shadow: 0 2px 4px #0062ab08; }
.tsf .tsf-card-copy { display: block; flex: 1 1 8em; min-width: 0; }
.tsf .tsf-name { display: block; margin: 0; color: var(--tsf-ink); font-size: 16px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; word-break: normal; }
.tsf .tsf-cta { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 48px; margin-inline-start: auto; padding: 10px; border: 1px solid #005bd4; border-radius: 8px; background: var(--tsf-blue); color: #fff; font-size: 15px; line-height: 1.5; font-weight: 700; white-space: nowrap; transition: background-color .15s ease; }
.tsf .tsf-arrow { display: inline-block; flex: 0 0 auto; color: inherit; font-size: 18px; line-height: 1; }
.tsf .tsf-spot:hover { border-color: var(--tsf-blue); background: #fbfdff; color: var(--tsf-ink); text-decoration: none; }
.tsf .tsf-spot:hover .tsf-cta, .tsf .tsf-spot:focus-visible .tsf-cta { background: #0055c7; color: #fff; }
.tsf .tsf-spot:active .tsf-cta { background: #004bab; color: #fff; }
.tsf .tsf-spot:visited { color: var(--tsf-ink); }
.tsf .tsf-spot:focus-visible, .tsf .tsf-roll:focus-visible { outline: 3px solid #004eb7; outline-offset: 3px; }
.tsf .tsf-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Show the stationary machine while idle; animate only a user-triggered draw. */
.tsf .tsf-stage { display: flex; align-items: center; justify-content: center; height: 168px; margin: 12px 0 0; padding: 0; overflow: hidden; }
.tsf .tsf-machine { position: relative; width: 116px; height: 150px; transform-origin: 50% 100%; }
.tsf .tsf-machine-lid { position: absolute; z-index: 3; top: 0; left: 14px; width: 88px; height: 12px; border: 3px solid #0756b4; border-radius: 9px 9px 3px 3px; background: #1b83f8; }
.tsf .tsf-machine-globe { position: absolute; z-index: 1; top: 7px; left: 6px; width: 104px; height: 83px; overflow: hidden; border: 3px solid #75baf2; border-radius: 23px 23px 19px 19px; background: linear-gradient(125deg, #fff 2%, #edfaff 58%, #c8eaff 100%); }
.tsf .tsf-machine-globe::after { content: ""; position: absolute; z-index: 2; top: 9px; left: 9px; width: 7px; height: 28px; border-radius: 8px; background: #fff; opacity: .9; }
.tsf .tsf-capsule { position: absolute; display: block; width: 28px; height: 28px; border: 2px solid #1671bd; border-radius: 50%; background: linear-gradient(to bottom, #36bcf8 0%, #36bcf8 48%, #fff 49%, #fff 100%); }
.tsf .tsf-capsule::after { content: ""; position: absolute; top: 4px; left: 5px; width: 5px; height: 3px; border-radius: 50%; background: #fff; opacity: .9; }
.tsf .tsf-capsule-one { top: 39px; left: 8px; transform: rotate(-25deg); }
.tsf .tsf-capsule-two { top: 40px; left: 37px; transform: rotate(30deg); border-color: #b98519; background: linear-gradient(to bottom, #ffca45 0%, #ffca45 48%, #fff 49%, #fff 100%); }
.tsf .tsf-capsule-three { top: 37px; left: 66px; transform: rotate(-40deg); border-color: #d25466; background: linear-gradient(to bottom, #ff7d91 0%, #ff7d91 48%, #fff 49%, #fff 100%); }
.tsf .tsf-capsule-four { top: 13px; left: 24px; transform: rotate(-10deg); border-color: #d25466; background: linear-gradient(to bottom, #ff7d91 0%, #ff7d91 48%, #fff 49%, #fff 100%); }
.tsf .tsf-capsule-five { top: 10px; left: 56px; transform: rotate(35deg); }
.tsf .tsf-capsule-six { top: 60px; left: 34px; border-color: #b98519; background: linear-gradient(to bottom, #ffca45 0%, #ffca45 48%, #fff 49%, #fff 100%); }
.tsf .tsf-machine-body { position: absolute; z-index: 2; top: 80px; left: 6px; width: 104px; height: 63px; border: 3px solid #0756b4; border-radius: 5px 5px 11px 11px; background: #1478e9; }
.tsf .tsf-crank { position: absolute; top: 7px; left: 12px; width: 32px; height: 32px; border: 2px solid #bddafa; border-radius: 50%; background: #fff; }
.tsf .tsf-crank-handle { position: absolute; top: 9px; left: 2px; width: 24px; height: 10px; border: 2px solid #0756b4; border-radius: 8px; background: #8cc7ff; }
.tsf .tsf-machine-slot { position: absolute; top: 12px; right: 17px; width: 5px; height: 16px; border-radius: 3px; background: #073f82; }
.tsf .tsf-machine-hatch { position: absolute; top: 38px; left: 54px; width: 34px; height: 18px; overflow: hidden; border: 2px solid #bddafa; border-radius: 9px 9px 4px 4px; background: #073f82; }
.tsf .tsf-capsule-prize { top: 0; left: 4px; width: 21px; height: 21px; border-color: #b98519; background: linear-gradient(to bottom, #ffca45 0%, #ffca45 48%, #fff 49%, #fff 100%); transform: translateY(-25px); }
.tsf .tsf-machine-foot { position: absolute; z-index: 3; bottom: 0; left: 0; width: 116px; height: 10px; border: 3px solid #0756b4; border-radius: 5px; background: #3194ff; }
.tsf[data-tsf-state="rolling"] .tsf-machine { animation: tsf-machine-shake .55s ease-in-out infinite; }
.tsf[data-tsf-state="rolling"] .tsf-crank { animation: tsf-crank-turn .9s cubic-bezier(.5, .1, .4, 1) infinite; }
.tsf[data-tsf-state="rolling"] .tsf-machine-globe .tsf-capsule { animation: tsf-capsule-mix .8s ease-in-out infinite; }
.tsf[data-tsf-state="rolling"] .tsf-capsule-two, .tsf[data-tsf-state="rolling"] .tsf-capsule-five { animation-delay: -.28s; animation-direction: reverse; }
.tsf[data-tsf-state="rolling"] .tsf-capsule-three, .tsf[data-tsf-state="rolling"] .tsf-capsule-six { animation-delay: -.5s; }
.tsf[data-tsf-state="rolling"] .tsf-capsule-prize { animation: tsf-prize-drop 2.8s ease-in-out both; }
@keyframes tsf-machine-shake { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes tsf-crank-turn { 0%, 12% { transform: rotate(0deg); } 85%, 100% { transform: rotate(360deg); } }
@keyframes tsf-capsule-mix { 0%, 100% { transform: translate(0, 0) rotate(-25deg); } 30% { transform: translate(5px, -8px) rotate(70deg); } 65% { transform: translate(-4px, 5px) rotate(155deg); } }
@keyframes tsf-prize-drop { 0%, 76% { transform: translateY(-25px) rotate(-50deg); } 90% { transform: translateY(3px) rotate(15deg); } 100% { transform: translateY(0) rotate(0); } }
@media (max-width: 380px) {
	.tsf { padding: 18px 12px 14px; }
	.tsf .tsf-title-main { font-size: 22px; }
	.tsf .tsf-spot { gap: 8px; padding: 9px; }
	.tsf .tsf-cta { padding-inline: 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.tsf *, .tsf *::before, .tsf *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
